resourceContentManage.html 3.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="/resource/index/index">资源管理</a></li>
                <li>资源内容管理</li>
            </ul>

            <div>
                <div style="width: 30%;float: left;">
                    <h4>资源内容管理</h4>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="allContents">
    <div id="times-list">

    </div>

    <div class="clearfix"></div>
    <div class="col-sm-10 col-sm-offset-2">
    <a href="javascript:;" id="copyTab" class="btn btn-info btn-sm">复制</a>
    <a href="javascript:;" id="delTab" class="btn btn-danger btn-sm">删除</a>
    <a href="javascript:;" id="saveTime" class="btn btn-info btn-sm">保存时间</a>
    </div>
    <div class="clearfix"></div>

    <div class="contentpanel" id="content-list">

    </div>
</div>

<script type="text/template" id="times-template">
    <div class="dataTab_wrapper" id="resourcePre">
        <ul class="nav" style="padding: 0; margin: 0">
            <input type="hidden" class="form-control"id="dateFromInfinity"value="1970-01-01 08:00:00">
            [[each times as item index]]
            <li class="[[index==selected?'active':'']] timesLi" data-index="[[index]]">
                <input type="text" [[(item.time=="" || item.status == "进行中") ? "disabled" : (index==selected?"":"disabled")]] class="form-control preTimes" data-index="[[index]]" jsaction="time" id="dateFrom[[index]]" prompt="时间" value="[[item.time]]" readonly required>
                <span style="display: block; line-height: 20px">[[item.status||"默认"]]</span>
            </li>
            [[/each]]
            <input type="hidden" class="form-control"id="dateFromInfinity1"value="2970-01-01 08:00:00">
        </ul>
    </div>
</script>

<!--内容模板-->
<script type="text/template" id="content-template">
    <div id="base-form">
        <div class="source-content" id="source-m">
            <!-- left -->
            <div class="content-left" id="contentLeft">
                <h4 class="title" data-type="title" style="text-align: center">[[resource.name]]</h4>
                <ul class="add-box showContain ui-sortable" id="add-content">
                </ul>
                <nav>
                    <em><i></i></em>
                    <ul class="contents clearfix">

                    </ul>
                    <input type="button" id="sub_btn" name="sub_btn" value="保存" style="float: right; margin:10px;">
                </nav>
            </div>
        </div>
    </div>
</script>
<!-- 按钮 -->
<script type="text/template" id="template_content_btns">
    [[each btns as btn index]]
    <li><a href="javascript:void(0)" name="text" class="add_btn" data-index="[[index]]">[[btn.button_name]]</a></li>
    [[/each]]
</script>

{{> resource/actions}}
{{> resource/taoyu}}
{{> resource/weiqingting}}
{{> resource/jiangming}}