44 lines
2.9 KiB
HTML
44 lines
2.9 KiB
HTML
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
|
<div class="alert alert-warning-light">
|
|
<b>温馨提示</b><br>
|
|
模型在使用相应的模板前,请确保添加相应的字段,否则前台页面浏览时会报错
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<input id="c-name" data-rule="required; length(~30)" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="c-table" class="control-label col-xs-12 col-sm-2">{:__('Table')}:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<input id="c-table" data-rule="required; length(5~20); tablename" class="form-control" name="row[table]" readonly="" type="text" value="{$row.table}">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="c-channeltpl" class="control-label col-xs-12 col-sm-2">{:__('Channeltpl')}:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<input id="c-channeltpl" data-rule="required; length(5~30)" class="form-control selectpage" name="row[channeltpl]" data-source="cms/ajax/get_template_list" data-params='{"type":"channel"}' data-primary-key="name" data-field="name" type="text" value="{$row.channeltpl}" placeholder="自定义模板文件必须以channel开头">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="c-listtpl" class="control-label col-xs-12 col-sm-2">{:__('Listtpl')}:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<input id="c-listtpl" data-rule="required; length(5~30)" class="form-control selectpage" name="row[listtpl]" data-source="cms/ajax/get_template_list" data-params='{"type":"list"}' data-primary-key="name" data-field="name" type="text" value="{$row.listtpl}" placeholder="自定义模板文件必须以list开头">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="c-showtpl" class="control-label col-xs-12 col-sm-2">{:__('Showtpl')}:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<input id="c-showtpl" data-rule="required; length(5~30)" class="form-control selectpage" name="row[showtpl]" data-source="cms/ajax/get_template_list" data-params='{"type":"show"}' data-primary-key="name" data-field="name" type="text" value="{$row.showtpl}" placeholder="自定义模板文件必须以show开头">
|
|
</div>
|
|
</div>
|
|
<div class="form-group layer-footer">
|
|
<label class="control-label col-xs-12 col-sm-2"></label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
|
|
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
|
|
</div>
|
|
</div>
|
|
</form>
|