Edit.html 3.43 KB
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__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">
                <% if data %>
                <input type="hidden" id="id" value="<%data.id%>">
                <%/if%>
                <div class="pannel">
                    <div class="panel-body">
                        <div class="row">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">SKN:</label>
                                <div class="col-sm-3"> <p class="form-control-static"><% data.productSkn %></p> </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">商品信息:</label>
                                <div class="col-sm-3"> <p class="form-control-static">
                                    名称:<% data.productName %><br/>
                                    品牌:<% data.brand %><br/>
                                    品类:<% data.sort %>
                                    </p> </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">促销短语:</label>
                                <div class="col-sm-3">
                                    <input type="text"  id="promotionPhrase" placeholder="示例:【量贩销售】2件8折" class="form-control" required maxlength="80" value="<% if data%><% data.promotionPhrase %><%/if%>">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">起购件数:</label>
                                <div class="col-sm-3">
                                    <input type="text"  id="minCount" placeholder="" class="form-control" required maxlength="10" value="<% if data%><% data.minCount %><%/if%>">
                                    <span class="help-inline red">支持 2 以上的正整数</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">折扣:</label>
                                <div class="col-sm-3">
                                    <input type="text"  id="discount" placeholder="折扣" class="form-control" required maxlength="10" value="<% if data%><% data.discount %><%/if%>">
                                    <span class="help-inline red">支持0.01-1之间的数字,到小数点后2位</span>
                                </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>
                <a class="btn btn-default btn-sm" href="/product/batch/index">取消</a>
            </div>
            </div>
        </div>
    </form>
</div>