summaryrefslogtreecommitdiffstats
path: root/application/views
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-07-14 16:49:47 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-07-14 16:49:47 +0200
commit7873bfbe586d73a0385b8b3c2c796d56a89e7031 (patch)
treedbc9d915079e3f173385a7469a2c667e9c886fa2 /application/views
parent572a5cbbbf5cc9b51f4ddffa08fe24badf9b711f (diff)
Add sucess alert when saving profile
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/views')
-rw-r--r--application/views/header.php11
-rw-r--r--application/views/user/profile.php3
2 files changed, 12 insertions, 2 deletions
diff --git a/application/views/header.php b/application/views/header.php
index 7ed605bf3..deafa1ef5 100644
--- a/application/views/header.php
+++ b/application/views/header.php
@@ -71,3 +71,14 @@ if (is_cli_client() && !isset($force_full_html)) {
</div>
<div class="container">
+ <?php
+ if (isset($alerts)) {
+ foreach ($alerts as $alert) { ?>
+ <div class="alert alert-block alert-<?php echo $alert["type"]; ?>" style="text-align: center">
+ <button type="button" class="close" data-dismiss="alert">&times;</button>
+ <?php echo $alert["message"]; ?>
+ </div>
+ <?php
+ }
+ }
+ ?>
diff --git a/application/views/user/profile.php b/application/views/user/profile.php
index b11231f29..bcd740612 100644
--- a/application/views/user/profile.php
+++ b/application/views/user/profile.php
@@ -1,4 +1,4 @@
-<?php echo form_open("user/save_profile", array("class" => "form-horizontal")); ?>
+<?php echo form_open("user/profile", array("class" => "form-horizontal")); ?>
<div class="control-group">
<label class="control-label" for="inputUsername">Username</label>
@@ -29,5 +29,4 @@
<button type="submit" class="btn btn-primary" name="process">Save changes</button>
</div>
</div>
-
</form>