Cleaner required labels on server creation
This commit is contained in:
parent
232c05c31d
commit
62313eeac5
1 changed files with 2 additions and 2 deletions
|
@ -377,10 +377,10 @@ $(document).ready(function () {
|
||||||
}
|
}
|
||||||
}).done(function (data) {
|
}).done(function (data) {
|
||||||
$.each(data, function (i, item) {
|
$.each(data, function (i, item) {
|
||||||
var isRequired = (item.required === 1) ? '<code>Required</code>' : '';
|
var isRequired = (item.required === 1) ? '<span class="label label-primary">Required</span> ' : '';
|
||||||
var dataAppend = ' \
|
var dataAppend = ' \
|
||||||
<div class="form-group col-md-12">\
|
<div class="form-group col-md-12">\
|
||||||
<label for="var_ref_' + item.id + '" class="control-label">' + item.name + '</label> ' + isRequired + '\
|
<label for="var_ref_' + item.id + '" class="control-label">' + isRequired + item.name + '</label> \
|
||||||
<div>\
|
<div>\
|
||||||
<input type="text" autocomplete="off" name="env_' + item.env_variable + '" class="form-control" value="' + item.default_value + '" />\
|
<input type="text" autocomplete="off" name="env_' + item.env_variable + '" class="form-control" value="' + item.default_value + '" />\
|
||||||
<p class="text-muted"><small>' + item.description + '</small></p>\
|
<p class="text-muted"><small>' + item.description + '</small></p>\
|
||||||
|
|
Loading…
Reference in a new issue