update validation error message style
This commit is contained in:
parent
35246b0a94
commit
4b1d288de9
3 changed files with 15 additions and 13 deletions
|
@ -26,16 +26,16 @@ public class FessMessages extends FessLabels {
|
|||
/** The serial version UID for object serialization. (Default) */
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** The key of the message: <label class="has-error"> */
|
||||
/** The key of the message: <ul class="has-error"> */
|
||||
public static final String ERRORS_HEADER = "{errors.header}";
|
||||
|
||||
/** The key of the message: </label> */
|
||||
/** The key of the message: </ul> */
|
||||
public static final String ERRORS_FOOTER = "{errors.footer}";
|
||||
|
||||
/** The key of the message: <i class="fa fa-times-circle-o"></i> */
|
||||
/** The key of the message: <li><i class="fa fa-exclamation-circle"></i> */
|
||||
public static final String ERRORS_PREFIX = "{errors.prefix}";
|
||||
|
||||
/** The key of the message: */
|
||||
/** The key of the message: </li> */
|
||||
public static final String ERRORS_SUFFIX = "{errors.suffix}";
|
||||
|
||||
/** The key of the message: {item} must be false. */
|
||||
|
@ -344,7 +344,7 @@ public class FessMessages extends FessLabels {
|
|||
/**
|
||||
* Add the created action message for the key 'errors.header' with parameters.
|
||||
* <pre>
|
||||
* message: <label class="has-error">
|
||||
* message: <ul class="has-error">
|
||||
* comment: ------------
|
||||
* </pre>
|
||||
* @param property The property name for the message. (NotNull)
|
||||
|
@ -359,7 +359,7 @@ public class FessMessages extends FessLabels {
|
|||
/**
|
||||
* Add the created action message for the key 'errors.footer' with parameters.
|
||||
* <pre>
|
||||
* message: </label>
|
||||
* message: </ul>
|
||||
* </pre>
|
||||
* @param property The property name for the message. (NotNull)
|
||||
* @return this. (NotNull)
|
||||
|
@ -373,7 +373,7 @@ public class FessMessages extends FessLabels {
|
|||
/**
|
||||
* Add the created action message for the key 'errors.prefix' with parameters.
|
||||
* <pre>
|
||||
* message: <i class="fa fa-times-circle-o"></i>
|
||||
* message: <li><i class="fa fa-exclamation-circle"></i>
|
||||
* </pre>
|
||||
* @param property The property name for the message. (NotNull)
|
||||
* @return this. (NotNull)
|
||||
|
@ -387,7 +387,7 @@ public class FessMessages extends FessLabels {
|
|||
/**
|
||||
* Add the created action message for the key 'errors.suffix' with parameters.
|
||||
* <pre>
|
||||
* message:
|
||||
* message: </li>
|
||||
* </pre>
|
||||
* @param property The property name for the message. (NotNull)
|
||||
* @return this. (NotNull)
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
# ----------------------------------------------------------
|
||||
# Lasta Taglib
|
||||
# ------------
|
||||
errors.header=<label class="has-error">
|
||||
errors.footer=</label>
|
||||
errors.prefix=<i class="fa fa-times-circle-o"></i>
|
||||
errors.suffix=
|
||||
errors.header=<ul class="has-error">
|
||||
errors.footer=</ul>
|
||||
errors.prefix=<li><i class="fa fa-exclamation-circle"></i>
|
||||
errors.suffix=</li>
|
||||
|
||||
# ----------------------------------------------------------
|
||||
# Javax Validator
|
||||
|
|
|
@ -47,8 +47,10 @@
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
label.has-error {
|
||||
ul.has-error {
|
||||
color: #dd4b39 !important;
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.form-group .has-error + .form-control {
|
||||
|
|
Loading…
Add table
Reference in a new issue