编辑
This commit is contained in:
parent
39715e1591
commit
02014a5de8
|
|
@ -6,7 +6,7 @@
|
|||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
|
||||
<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>
|
||||
|
||||
|
|
@ -26,13 +26,13 @@
|
|||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">售价/日租价格:</label>
|
||||
<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 class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">原价/月租每月(元):</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-re_price" class="form-control" step="0.01" name="row[re_price]" type="number">
|
||||
<input id="c-re_price" class="form-control" step="0.01" name="row[re_price]" type="number">
|
||||
</div>
|
||||
</div>
|
||||
<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' : '';
|
||||
html += `
|
||||
<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>`;
|
||||
});
|
||||
}
|
||||
|
|
@ -160,7 +160,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'cascader'], function
|
|||
const unit = opts.unit ?? '';
|
||||
html += `
|
||||
<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}"
|
||||
min="${min}" max="${max}" value="${val}">
|
||||
<span class="input-group-addon">${unit}</span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user