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

<div class="data.contentDatapanel">
    
    <form id="add-form" class="form-horizontal form-bordered" type="<%type%>" action="<%action%>">
        <div class="panel-group">
            <div class="panel-group" id="editor-group">
                <input type="hidden" id="module" value="wechat">
                <% if data %>
                <input type="hidden" id="id" value="<%data.id%>">
                <input type="hidden" id="status" value="<%data.status%>">
                <%/if%>
                <div class="pannel">
                    <div class="panel-heading">
                        <h4>公众号基本信息</h4>
                    </div>
                    <div class="panel-body">
                        <div class="row">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">公众号名称1:</label>
                                <div class="col-sm-3">
                                    <input type="text"  id="wechat_name1" placeholder="公众号名称1"  class="form-control" required value="<% if data%><% data.contentData[0].wechat_name %><%/if%>">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">公众号名称2:</label>
                                <div class="col-sm-3">
                                    <input type="text"  id="wechat_name2" placeholder="公众号名称2"  class="form-control" required value="<% if data%><% data.contentData[1].wechat_name %><%/if%>">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">微信号1:</label>
                                <div class="col-sm-3">
                                    <input type="text"  id="wechat_id1" placeholder="微信号1"  class="form-control" required value="<% if data%><% data.contentData[0].wechat_id %><%/if%>">
                                </div>
                                    <span class="help-inline red">请确保微信号的正确性</span>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">微信号2:</label>
                                <div class="col-sm-3">
                                    <input type="text"  id="wechat_id2" placeholder="微信号2"  class="form-control" required value="<% if data%><% data.contentData[1].wechat_id %><%/if%>">
                                </div>
                                    <span class="help-inline red">请确保微信号的正确性</span>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">图片1</label>
                                <div class="col-sm-10">
                                    <input type="file" id="wechat1_img" name="wechat1_img" class="required" value="<% if data%><% data.contentData[0].src %><%/if%>">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">图片2</label>
                                <div class="col-sm-10">
                                    <input type="file" id="wechat2_img" name="wechat2_img" class="required" value="<% if data%><% data.contentData[1].src %><%/if%>">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label" for="position">前端显示页面</label>
                                <div class="col-sm-3">
                                    <select id="templateKey" name="templateKey" tabindex="-1" value="<%if data%><% data.templateKey %><%/if%>" class="select2-offscreen" style="width: 100%" required="required">
                                        <option value="" selected="">请选择</option>
                                        <option value="guang_detail_wechat">逛页面</option>
                                        <option value="pay_success_wechat">支付完成页</option>
                                        <option value="yoho_sign_wechat">YOHO币页面</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
            <div class="pannel">
            <div class="col-md-10"></div>
            <div class="col-md-2">
                <input id="add-btn" class="btn btn-success add-btn" type="button" value="保存"></input>
            </div>
            </div>
        </div>
    </form>
</div>