编辑
This commit is contained in:
parent
39715e1591
commit
02014a5de8
|
|
@ -6,7 +6,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
|
<label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
|
||||||
<div class="col-xs-12 col-sm-8">
|
<div class="col-xs-12 col-sm-8">
|
||||||
<input id="c-title" data-role="required" class="form-control" name="row[title]" type="text">
|
<input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label col-xs-12 col-sm-2">售价/日租价格:</label>
|
<label class="control-label col-xs-12 col-sm-2">售价/日租价格:</label>
|
||||||
<div class="col-xs-12 col-sm-8">
|
<div class="col-xs-12 col-sm-8">
|
||||||
<input id="c-price" class="form-control" step="0.01" name="row[price]" type="number">
|
<input id="c-price" data-rule="required" class="form-control" step="0.01" name="row[price]" type="number">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'cascader'], function
|
||||||
const checked = String(field.value) === String(opt.value) ? 'checked' : '';
|
const checked = String(field.value) === String(opt.value) ? 'checked' : '';
|
||||||
html += `
|
html += `
|
||||||
<label class="radio-inline">
|
<label class="radio-inline">
|
||||||
<input data-rule="required" type="radio" name="row[${field.name}]" value="${opt.value}" ${checked}> ${opt.key}
|
<input type="radio" name="row[${field.name}]" value="${opt.value}" ${checked}> ${opt.key}
|
||||||
</label>`;
|
</label>`;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -160,7 +160,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'cascader'], function
|
||||||
const unit = opts.unit ?? '';
|
const unit = opts.unit ?? '';
|
||||||
html += `
|
html += `
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input data-rule="required" type="number" name="row[${field.name}]"
|
<input type="number" name="row[${field.name}]"
|
||||||
class="form-control" placeholder="${unit}"
|
class="form-control" placeholder="${unit}"
|
||||||
min="${min}" max="${max}" value="${val}">
|
min="${min}" max="${max}" value="${val}">
|
||||||
<span class="input-group-addon">${unit}</span>
|
<span class="input-group-addon">${unit}</span>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user