88 lines
4.7 KiB
HTML
88 lines
4.7 KiB
HTML
|
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
||
|
<input type="hidden" id="c-id" value="{$row.id|htmlentities}"/>
|
||
|
<div class="form-group">
|
||
|
<label for="c-type" class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<div class="input-group">
|
||
|
<select id="c-select-type" class="form-control">
|
||
|
<option value="" {if $row.type==''}selected{/if}>请选择分类</option>
|
||
|
{foreach name="typeList" id="item"}
|
||
|
<option value="{$key}" {if $row.type==$key}selected{/if}>{$item}({$key})</option>
|
||
|
{/foreach}
|
||
|
</select>
|
||
|
<input type="text" name="row[type]" class="form-control hidden" id="c-type" value="{$row.type|htmlentities}" placeholder="请使用英文或拼音,然后在配置中添加语言包"/>
|
||
|
<span class="input-group-btn">
|
||
|
<a class="btn btn-default btn-custom-type" href="javascript:">自定义分类</a>
|
||
|
</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Parent')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<select name="row[parent]" id="c-parent" class="form-control selectpicker">
|
||
|
<option value="">无</option>
|
||
|
{$parentOptions}
|
||
|
</select>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="c-keywords" class="control-label col-xs-12 col-sm-2">{:__('Keywords')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-keywords" data-rule="" class="form-control" name="row[keywords]" data-role="tagsinput" type="text" value="{$row.keywords|htmlentities}">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="c-description" class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<textarea id="c-description" data-rule="" class="form-control" name="row[description]">{$row.description|htmlentities}</textarea>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="c-order" class="control-label col-xs-12 col-sm-2">{:__('Order')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-order" data-rule="required" class="form-control" name="row[order]" type="number" value="{$row.order|htmlentities}">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-name" class="form-control" disabled type="text" value="{$row.name|htmlentities}">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Markdown file')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<input id="c-markdownfile" class="form-control" name="row[md]" {if !$allowEditName}disabled{/if} type="text" value="{$row.relative|htmlentities}">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="c-source" class="control-label col-xs-12 col-sm-2">{:__('Source')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<textarea id="c-source" data-rule="required" class="form-control" name="row[source]" rows="15">{$row.source|htmlentities}</textarea>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label class="control-label col-xs-12 col-sm-2">{:__('Isnew')}:</label>
|
||
|
<div class="col-xs-12 col-sm-8">
|
||
|
<div class="mt-1">
|
||
|
<label for="row[isnew]-yes"><input id="row[isnew]-yes" {:$row['isnew']?'checked':''} name="row[isnew]" type="radio" value="1"> 是</label>
|
||
|
<label for="row[isnew]-no"><input id="row[isnew]-no" {:$row['isnew']?'':'checked'} name="row[isnew]" type="radio" value="0"> 否</label>
|
||
|
</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>
|
||
|
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|