Kartik Visweswaran
b979d3b024
Reverted closeButton
...
Reverted name to ```closeButton``` to be in sync with the bootstrap ```Alert``` widget.
11 years ago
Kartik Visweswaran
62493188a2
Nomenclature and code realignment.
...
1. Renamed closeButton to closeButtonOptions.
2. Generate unique id for each alert box.
3. Moved parent init to the top.
11 years ago
Kartik Visweswaran
2bff5f80bc
Alert types for flash messages are now configurable.
...
Each flash variable can be mapped to a bootstrap alert type through a configuration array passed to this widget.
11 years ago
Kartik Visweswaran
8ff4c3d46d
Code & minor bug cleanup.
...
Cleaned up redundant code (and a typo missed earlier).
11 years ago
Kartik Visweswaran
8a436c4acb
Code cleanup.
...
Removed redundant declarations and checks in the code.
11 years ago
Kartik Visweswaran
c550628558
CSS Class assignment correction # 2.
...
Ensure previous CSS classes are not appended and reinitialized in the foreach loop.
11 years ago
Kartik Visweswaran
affa9589dc
CSS Class assignment corrected.
...
Used ```Html::addCssClass``` and ```Html::removeCssClass``` more effectively.
11 years ago
Kartik Visweswaran
70f41387b6
Update Alert.php to add some refinements and clean up bugs.
...
Added closeButton parameter, assignment of CSS class corrected, and added php doc comments.
11 years ago
Kartik Visweswaran
1c56edd000
Update Alert.php
11 years ago
Kartik Visweswaran
8fc77afc63
Update Alert.php to display multiple flash messages for the session.
...
The previous alert widget within the advanced/basic app does not render multiple flash messages. The current implementation allows display of all flash messages assigned through setFlash. Also a validation is done for allowed bootstrap alert types.
11 years ago
Alexander Makarov
e1061f19ac
Advanced application template: Delete flash message after it was displayed
11 years ago
Roman Revin
fae8084524
Update alert widget
12 years ago
Alexander Makarov
42397df054
fixed code style
12 years ago
Alexander Makarov
f4b10b56b6
fixes #651
12 years ago
Alexander Makarov
b02f01f6be
More on advanced app template:
...
- Unified way to use Alert
- Added link to restore password to login form
- Refactored restore password
12 years ago