www_fpvone_cn/application/admin/view/docs/add.html

80 lines
4.0 KiB
HTML
Raw Normal View History

2024-12-20 12:29:51 +08:00
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<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="">请选择分类</option>
{foreach name="typeList" id="item"}
<option value="{$key}">{$item}({$key})</option>
{/foreach}
</select>
<input type="text" name="row[type]" class="form-control hidden" id="c-type" value="" 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>
</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="">
</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="">
</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]"></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="0">
</div>
</div>
<div class="form-group">
<label for="c-md" class="control-label col-xs-12 col-sm-2">{:__('Markdown file')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-md" data-rule="required" class="form-control" name="row[md]" type="text" value="">
</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"></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" checked="checked" name="row[isnew]" type="radio" value="1"></label>
<label for="row[isnew]-no"><input id="row[isnew]-no" 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>