Index.html 2.7 KB
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>

<div class="contentpanel">
    <div style="margin-bottom: 20px">
        <a class="btn btn-success" id="add"><i class="fa fa-plus"></i> 添加文章分类</a>
    </div>
    <div class="panel">
        <div class="panel-body nopadding">
            <div id="list" class="dataTables_wrapper no-footer"></div>
        </div>
    </div>
</div>

<script type="text/template" id="template">
    <div class="form-group" id="maxsord">
        <label for="parentId" class="col-sm-2 control-label">一级分类名:</label>
        <div class="col-sm-10">
            <input type="hidden" name="" value="[[id]]" id="id" class="form-control" pattern="" title="">
            <select id="parentId" value="[[parentId]]" class="form-control">
                <option value="0">请选择分类</option>
            </select>
        </div>
    </div>

    <div class="form-group">
        <label for="name" class="col-sm-2 control-label">分类名:</label>
        <div class="col-sm-10">
            <input type="text" value="[[name]]" name="content" id="name" placeholder="分类名" required="required" class="form-control">
        </div>
    </div>

    <div class="form-group">
        <label for="orderBy" class="col-sm-2 control-label">排序:</label>
        <div class="col-sm-10">
            <input type="number" value="[[orderBy||0]]" name="content" id="orderBy" placeholder="排序" required="required" class="form-control">
        </div>
    </div>

    <div class="form-group">
        <label for="advertCode" class="col-sm-2 control-label">广告码:</label>
        <div class="col-sm-10">
            <input type="text" value="[[advertCode]]" name="content" id="advertCode" placeholder="广告码" required="required" class="form-control">
        </div>
    </div>

    <div class="form-group">
        <label for="status" class="col-sm-2 control-label" style="margin-top: 10px">是否启用:</label>
        <div class="col-sm-10 radio">
            <label><input type="radio" value="1" name="status" kl_vkbd_parsed="true">开启</label>
            <label><input type="radio" value="0" name="status" kl_vkbd_parsed="true" checked>关闭</label>
        </div>
        <input id="status" type="hidden" value="[[status]]" for="radio"  kl_vkbd_parsed="true">
    </div>
</script>



<!-- <div class="form-group">
        <label for="advertCode" class="col-sm-2 control-label">是否BLK:</label>
        <div class="col-sm-10">
            <select class="form-control" id="appType" value="[[appType]]">
                <option value="0">否</option>
                <option value="1">是</option>
            </select>
        </div>
    </div>-->