resourceManage.html 4.11 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="panel panel-default" style="margin-bottom:10px;">
    <div class="panel-heading">
        <a class="btn btn-success " id="add-resource"><i class="fa fa-plus"></i> 添加资源位</a>
    </div>
    <div class="panel-body">
        <div class="row">
            <div class="panel-col">
                <input type="text" id="inputResourceName" placeholder="请输入资源名" class="form-control" />
            </div>
            <div class="panel-col" id="category-content">

            </div>
            <div class="panel-col" id="platform-content">
            </div>
            <a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
            <a id="filter-all" href="/resource/index/index1" class="btn btn-info">全部</a>
        </div>
    </div>
</div>

<div class="contentpanel">
    <div class="panel panel-default" style="margin-bottom: 10px">
        <input type="hidden" id="url" value="/runManage/subjectManage/subjectList"/>
        <div id="content-list"></div>
    </div>
</div>

<script type="text/template" id="search-category">
    <select id="choose-category" title="" class="select2-offscreen brandBtn-group">
        <option value="">选择分类</option>
        [[each data as item index]]
        <option value="[[item.sortId]]">[[item.sortName]]</option>
        [[/each]]
    </select>
</script>

<script type="text/template" id="search-platform">
    <select id="choose-platform" title="" class="select2-offscreen brandBtn-group">
        <option value="">选择平台</option>
        [[each data as item index]]
        <option value="[[item.platformId]]">[[item.platformName]]</option>
        [[/each]]
    </select>
</script>

<script type="text/template" id="edit-template">
    <div class="modal-body" id="base-form">
        <div class="form-group">
            <label class="col-sm-2 control-label">名称</label>
            <div class="col-sm-8">
                <input type="text" id="name" name="name" value="[[name]]" class="form-control">
            </div>
        </div><!-- form-group -->
        <div class="form-group">
            <label class="col-sm-2 control-label">分类</label>
            <div class="col-sm-8">
                <select id="sortId" name="sortId">
                    <option value="0">请选择资源分类</option>
                </select>
            </div>
        </div><!-- form-group -->

        <div class="form-group">
            <label class="col-sm-2 control-label">平台</label>
            <div class="col-sm-8">
                <select id="platformId" name="platformId">
                    <option value="0">请选择资源平台</option>
                    <option selected="" value="1">yohoApp</option>
                    <option value="5">web</option>
                    <option value="6">yohoipad</option>
                    <option value="9">wap</option>
                </select>
            </div>
        </div><!-- form-group -->

        <div class="form-group" hidden>
            <label class="col-sm-2 control-label">位置码</label>
            <div class="col-sm-8">
                <input type="text" disabled="disabled" value="[[code]]" class="form-control">
            </div>
        </div><!-- form-group -->

        <div class="form-group">
            <label class="col-sm-2 control-label">匹配码</label>
            <div class="col-sm-8">
                <input type="text" id="matchCode" value="[[matchCode]]" class="form-control">
            </div>
        </div><!-- form-group -->

        <input type="hidden" id="id" value="[[id]]">
    </div>
</script>