Edit.html 4.36 KB
<%include '../../common/__ui/header'%>
<%include '../../common/__partail/ListHeader'%>

<div class="panel panel-default">
    <div class="panel-heading">
        <h4 class="panel-title"><%pageName%></h4>
    </div><!-- panel-heading -->
    <div class="panel-body">
        <div class="row" id="edit-content" data-id="<%id%>" url="<%url%>">

        </div><!-- row -->
    </div><!-- panel-body -->
    <div class="panel-footer">
        <div class="row">
            <div class="col-sm-9 col-sm-offset-3">
                <a id="save_btn" class="btn btn-primary mr5">保存</a>
                <a href="/operations/webshare/index" class="btn btn-primary mr5">取消</a>
            </div>
        </div>
    </div><!-- panel-footer -->
</div>

<script type="text/template" id="edit-template">
    <div class="form-group">
        <label class="col-sm-2 control-label">分享名称</label>
        <div class="col-sm-8">
            <input maxlength="128" type="text" name="title" class="form-control observe" placeholder="活动分享名称" required="" value="[[title]]" data-field="title">
            <p style="color:#999">注:分享名称必填</p>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">分享主标题</label>
        <div class="col-sm-8">
            <input maxlength="128" type="text" name="share_title_main" class="form-control observe" placeholder="分享主标题" value="[[shareTitleMain]]" data-field="shareTitleMain">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">分享副标题</label>
        <div class="col-sm-8">
            <input maxlength="128" type="text" name="share_title_sub" class="form-control observe" placeholder="分享副标题" value="[[shareTitleSub]]" data-field="shareTitleSub">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">分享图片</label>
        <div class="col-sm-8">
            <input type="file" name="shareImage" data-field="shareImage" value="[[shareImage]]" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">大图</label>
        <div class="col-sm-8">
            <input type="file" name="bigImage" data-field="bigImage" value="[[bigImage]]" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">跳转链接</label>
        <div class="col-sm-8">
            <input type="text" name="share_url" class="form-control observe" placeholder="跳转链接" required="" value="[[shareUrl]]" data-field="shareUrl">
            <p style="color:#999">注:必填,链接中不能有英文单引号</p>
        </div>
    </div><!-- form-group -->
    <div class="form-group" hidden id="choose-status">
        <label class="col-sm-2 control-label">状态</label>
        <div class="col-sm-8">
            <select name="status" id="status" style="width:120px;" tabindex="-1" value="[[status]]" class="form-control observe" data-field="status">
                <option value="">选择状态</option>
                <option value="0">关闭</option>
                <option value="1">开启</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">分享领劵的劵ID</label>
        <div class="col-sm-8">
            <input maxlength="10" type="text" name="coupon_id" class="form-control observe" placeholder="分享领劵的劵ID" value="[[couponId]]" data-field="couponId">
            <p style="color:#999; margin-top: 5px">注:劵ID必须为数字且长度不能超过10</p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">劵生效的起止时间</label>

        <div class="col-sm-8">
            <div class="col-sm-4">
                <input type="text" class="form-control observe" jsaction="time:end:couponEndTime" data-field="couponStartTime" id="couponStartTime"
                       placeholder="开始时间" value="[[couponStartTime]]" readonly >
            </div>
            <div class="col-sm-4">
                <input type="text" class="form-control observe"  jsaction="time:start:couponStartTime" data-field="couponEndTime" id="couponEndTime"
                       placeholder="结束时间" value="[[couponEndTime]]" readonly >
            </div>
        </div>
    </div>
</script>