Add 'field required asterisk'

This commit is contained in:
bfederle 2012-01-23 15:26:03 -08:00
parent 3f3e69b842
commit bc3eef9223
2 changed files with 12 additions and 0 deletions

View File

@ -2827,6 +2827,13 @@ Dialogs*/
margin-top: 2px;
}
.field-required {
color: #EE7B7B;
font-size: 14px;
padding: 0 3px 0 0;
font-weight: bold;
}
.ui-dialog div.form-container div.value {
width: 61%;
float: left;

View File

@ -58,6 +58,11 @@
$('<label>').html(field.label + ':')
);
// Add 'required asterisk' if field is required
if (field.validation && field.validation.required) {
$name.find('label').prepend($('<span>').addClass('field-required').html('*'));
}
// Input area
var $value = $('<div>').addClass('value')
.appendTo($formItem);