ContentManage.html 2.63 KB
<%include '../../common/__ui/header'%>
<%include '../../common/__partail/ListHeader'%>

<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>

<%include '../__partail/actions'%>
<%include '../__partail/taoyu'%>
<%include '../__partail/weiqingting'%>
<%include '../__partail/jiangming'%>