51 lines
2.6 KiB
HTML
51 lines
2.6 KiB
HTML
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
|
<input type="hidden" name="row[brand_id]" id="c-brand_id" value="{$row.brand_id|htmlentities}"/>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Title')}<span style="color: red;">*</span>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<input id="c-title" placeholder="请输入" data-rule="required" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<textarea id="c-description" placeholder="请输入" class="form-control" name="row[description]" rows="5">{$row.description|htmlentities}</textarea>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Cms_type')}<span style="color: red;">*</span>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<select id="c-cms_type" data-rule="required" class="form-control" name="row[cms_type]">
|
|
<option value="">请选择</option>
|
|
{volist name="typeList" id="vo"}
|
|
<option value="{$key}" {eq name="row.cms_type" value="$key"} selected {/eq}>{$vo}</option>
|
|
{/volist}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Content')}<span style="color: red;">*</span>:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<textarea id="c-content" placeholder="请输入" data-rule="required" class="form-control editor" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
|
|
<div class="radio">
|
|
{foreach name="statusList" item="vo"}
|
|
<label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
|
|
{/foreach}
|
|
</div>
|
|
|
|
</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>
|
|
</div>
|
|
</div>
|
|
</form>
|