resourceSortManage.html 2.79 KB
<div class="pageheader">
    <div class="media">
        <div class="pageicon pull-left">
            <i class="fa fa-th-list"></i>
        </div>
        <div class="media-body">
            <ul class="breadcrumb">
                <li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
                <li><a href="">资源分类管理</a></li>
                <li>资源分类列表</li>
            </ul>

            <div>
                <div style="width: 30%;float: left;">
                    <h4>资源分类列表</h4>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="contentpanel">
    <div class="panel-heading">
        <a class="btn btn-success " id="add-resource"><i class="fa fa-plus"></i> 添加资源分类</a>
    </div>

    <div class="panel panel-default" style="margin-bottom: 10px">
        <div id="content-list"></div>
    </div>
</div>

<script type="text/template" id="sourceSort-template">
    <div class="panel-body" id="base-form">
        <div class="form-group">
            <label class="col-sm-3 control-label">名称 <span class="asterisk">*</span></label>
            <div class="col-sm-9">
                <input type="hidden" value="[[sortId]]", id="sortId" />
                <input type="text" name="platform_name" class="form-control" value="[[sortName]]" id="sortName" placeholder="请填写平台名称" required="required">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">所属平台<span class="asterisk">*</span></label>
            <div class="col-sm-9">
                <select class="form-control attr_input" data-index='[[__index]]' value="[[platformId||'']]" id="platformId" required>
                    <option value="">请选择</option>
                    [[each platforms as item index]]
                        <option value="[[item.platformId]]">[[item.platformName]]</option>
                    [[/each]]
                </select>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">状态 <span class="asterisk">*</span></label>
            <div class="col-sm-9">
                <div class="rdio rdio-primary">
                    <input type="radio" id="male" value="1" name="status">
                    <label for="male">开启</label>
                </div><!-- rdio -->
                <div class="rdio rdio-primary">
                    <input type="radio" value="0" id="female" name="status">
                    <label for="female">关闭</label>
                </div><!-- rdio -->
                <label id="genderError" class="error"></label>
            </div>
            <input type="hidden" value="[[status]]" id="status" for="radio" />
        </div><!-- form-group -->

    </div>
</script>