Index.html 5.16 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="addVideo" href="javascript:;" class="btn btn-success"><span class="glyphicon glyphicon-cloud-upload"></span> 添加新视频 </a>
        </div>
        <div class="panel-body">
            <div class="row">
               
                <div class="panel-col">
                    <input type="text" value="" name="productSkn" id="content-filter1" placeholder="SKN"
                           class="form-control">
                </div>
                <div class="panel-col">
                    <input type="text" value="" name="videoName" id="content-filter2" placeholder="视频名称"
                           class="form-control">
                </div>
               
                <div class="panel-col2">
                    <a id="filter-btn" href="javascript:;" class="btn btn-info">查询</a>
                    <a id="filter-all" href="/video/index" class="btn btn-info">全部</a>
                </div>
            </div>
        </div>
    </div>
    <div id="content-list"></div>
</div>


<script type="text/template" id="template">
    <div class="rows">
        <div class="form-group">
            <label class="col-sm-2 control-label" for="englishName">视频名称<span class="red">*</span></label>

            <div class="col-sm-3">
                <input type="text" value="[[englishName]]" class="form-control observe" id="englishName"
                       placeholder="视频名称" required="required" data-field="englishName"/>
            </div>    
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label" for="avatar">视频<span class="red">*</span></label>
            <div class="col-sm-6">
                <div class="cover-image-list col-sm-10">
                    <ul class="cover-image-list col-sm-10" id="addPic" style="padding: 0;margin: 0;">
                        <li class="cover-image-item fileinput-button">
                            <div class="goods-img">
                                <a class="fileinput-button-icon" href="javascript:void(0);">+</a>
                                <input type="file" class="goods-img-upload picfile" name="picfile" required="required" id="picfile" placeholder="图片"  multiple="true">

                            </div>
                        </li>
                         <span style="font-color:red">ps:只支持MP4格式</span>
                    </ul>                    
                </div>                
            </div>
        </div>
        
        <div class="form-group">
            <label class="col-sm-2 control-label" for="englishName">关联SKN<span class="red">*</span></label>

            <div class="col-sm-3">
                <input type="text" value="[[englishName]]" class="form-control observe" id="englishName"
                       placeholder="关联SKN" required="required" data-field="englishName"/>
            </div>    
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label" for="englishName">备注<span class="red">*</span></label>

            <div class="col-sm-3">
                <input type="text" value="[[englishName]]" class="form-control observe" id="englishName"
                       placeholder="备注" required="required" data-field="englishName"/>
            </div>    
        </div>

    </div>
</script>

<!--上传图片-->
<script type="text/template" id="template1">
    <div class="rows">
        [[if __state=='update']]
        <div class="form-group">
            <label class="col-sm-2">SKN</label>

            <div class="col-sm-6">
                <input type="text" value=[[productSkn]] class="form-control" disabled="disabled">
            </div>
        </div>
        [[/if]]
        <div class="form-group">
            <label class="col-sm-2 control-label">图片</label>
            <div class="cover-image-list col-sm-10">
                <ul class="cover-image-list col-sm-10" id="addPic" style="padding: 0;margin: 0;">
                    <li class="cover-image-item fileinput-button">
                        <div class="goods-img">
                            <a class="fileinput-button-icon" href="javascript:void(0);">+</a>
                            <input type="file" class="goods-img-upload picfile" name="picfile" required="required" id="picfile" placeholder="图片"  multiple="true">
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</script>
<!--图片列表-->
<script type="text/template" id="template2">
    [[each pictureBoList as _item _index]]
    <li class="cover-image-item image-list" data-index=[[_index]]>
        <div class="goods-img">
            <a class="fileinput-button-icon" href="javascript:void(0);">
                <img src="[[_item.fileName]]?imageView/2/w/100/h/100">
            </a>
            <i class="remove-item-btn remove1 glyphicon glyphicon-remove-circle" data-index="[[_index]]"></i>
        </div>
    </li>
    [[/each]]
</script>