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

<div class="contentpanel">
    <div class="panel panel-default" style="margin-bottom:10px;">
        <div class="panel-body">
            <div class="row">
                <a class="btn btn-info" id="add">添加</a>
            </div>
        </div>
        <div id="list">

        </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">是否启用:</label>
        <div class="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>