Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: move message error out of alert, just text-danger
Dev: 2 error type errorALert (for form) and errorWarning
- Loading branch information
Showing
4 changed files
with
26 additions
and
106 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
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
File renamed without changes.
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,17 @@ | ||
<?php | ||
/** | ||
* $aErrors string[] | ||
* | ||
*/ | ||
?> | ||
<?php if(count($aErrors) > 1) : ?> | ||
<ul class='text-danger list-unstyled' role='alert'> | ||
<?php foreach($aErrors as $key=>$error) : ?> | ||
<li><?php echo $error; ?></li> | ||
<?php endforeach; ?> | ||
</ul> | ||
<?php else: ?> | ||
<p class='text-danger' role='alert'> | ||
<?php echo reset($aErrors); ?> | ||
</p> | ||
<?php endif; ?> |