forked from ci-bonfire/Sprint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Notice display to renderJSON method and add missing notice view (…
…by default Bootstrap theme)
- Loading branch information
Showing
4 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php if (isset($notice) && ! empty($notice)) : ?> | ||
<div class="alert alert-<?= $notice['type'] ?> alert-dismissible" id="notice" role="alert"> | ||
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> | ||
<?= $notice['message'] ?> | ||
</div> | ||
|
||
<?php else: ?> | ||
|
||
<div id="notice"></div> | ||
|
||
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,6 @@ | |
|
||
<?php else: ?> | ||
|
||
<div id="notices"></div> | ||
<div id="notice"></div> | ||
|
||
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
<?php if (isset($notice) && ! empty($notice)) : ?> | ||
<div class="alert-box <?= $notice['type'] ?>" data-alert role="alert"> | ||
<div class="alert-box <?= $notice['type'] ?>" data-alert id="notice" role="alert"> | ||
<?= $notice['message'] ?> | ||
<a href="#" class="close">×</a> | ||
</div> | ||
|
||
<?php else: ?> | ||
|
||
<div id="notice"></div> | ||
|
||
<?php endif; ?> |