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

<div class="contentpanel">
    <div class="panel panel-default" style="...">
        <div class="panel-body" style="padding-bottom: 0">
            <a id="addHotBrand" class="btn btn-success"><i class="fa fa-plus"></i> 添加品牌热搜词</a>
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="panel-col2">
                    <input type="text" value="" id="brandName-filter" placeholder="品牌"
                           class="form-control">
                </div>

                <div class="panel-col">
                    <select id="status-filter" class="form-control">
                        <option value="-1">选择状态</option>
                        <option value="0">不可用</option>
                        <option value="1">可用</option>
                    </select>
                </div>
                <div class="panel-col">
                    <a id="filter-btn" href="javascript:;" class="btn btn-info">查询</a>
                    <a id="filter-all" href="/hotSearchBrand/index" class="btn btn-info">全部</a>
                </div>
            </div>
        </div>
    </div>
    <div id="content-list"></div>
</div>
<!--内容-->
<script type="text/template" id="template">

    <div class="form-group">
        <label for="brandName" class="col-sm-2 control-label"><i class="red">*</i> 品牌名</label>

        <div class="col-sm-10">
            <input type="text" name="" value="[[brandName]]" id="brandName" class="form-control observe"
                   required="required"
                   data-field="brandName" placeholder="品牌名">
        </div>
    </div>
    <div class="form-group">
        <label for="orderBy" class="col-sm-2 control-label"><i class="red">*</i> 排序</label>

        <div class="col-sm-10">
            <input type="number" name="" value="[[orderBy]]" id="orderBy" data-field="orderBy"
                   class="form-control observe" required="required"
                   placeholder="排序">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label"><span class="red">*</span> 状态</label>

        <div class="col-sm-8">
            <label class="radio-inline">
                <input type="radio" name="status" class="observe" data-field="status" value="1">可用
            </label>
            <label class="radio-inline">
                <input type="radio" name="status" class="observe" data-field="status" value="0">不可用
            </label>
        </div>
        <input type="hidden" id="status" value="[[status]]" for="radio" required="required"
               class="observe" data-field="status" placeholder="状态">
    </div>
    [[if _state=='update']]
    [[layout template-modify]]
    [[/if]]

</script>
<!--修改页面共用部分-->
<script type="text/template" id="template-modify">
    <div class="form-group">
        <label for="creatorUsrname" class="col-sm-2 control-label">添加人</label>

        <div class="col-sm-10">
            <label id="creatorUsrname">[[creatorName]]</label>
        </div>

    </div>

    <div class="form-group">
        <label for="createdTime" class="col-sm-2 control-label">添加时间</label>

        <div class="col-sm-10">
            <label id="createdTime">[[createTime]]</label>
        </div>
    </div>

    <div class="form-group">
        <label for="modifyUsrname" class="col-sm-2 control-label">修改人</label>

        <div class="col-sm-10">
            <label id="modifyUsrname">[[modifyName]]</label>
        </div>

    </div>

    <div class="form-group">
        <label for="modifyTime" class="col-sm-2 control-label">修改时间</label>

        <div class="col-sm-10">
            <label id="modifyTime">[[modifyTime]]</label>
        </div>
    </div>
    <input type="hidden" id="id" value="[[id]]"/>
</script>

<%include '../../../common/views/__ui/footer'%>