product-attr.html 10.5 KB
<div class="pageheader">
    <div class="media">
        <div class="pageicon pull-left">
            <i class="fa fa-th-list"></i>
        </div>
        <div class="media-body">
            <ul class="breadcrumb">
                <li><a href="#"><i class="glyphicon glyphicon-home"></i></a></li>
                <li><a href="#">产品属性管理</a></li>
                <li>产品属性列表</li>
            </ul>
            <h4>产品属性列表</h4>
        </div>
    </div>
    <!-- media -->
</div>

<div class="contentpanel">
    <div class="row">
        <div class="col-md-3">
            <div class="panel panel-default noborder pattrscroll">
                <div class="panel-body">
                    <div class="pannel-scroll">
                        <ul class="list-group">
                            {{# data}}
                            <li class="list-group-item level{{sortLevel}} {{# child}}hidden{{/ child}}" data-parent="{{parentId}}" data-val="{{id}}" data-status="close">
                                <span class="icon expand-icon glyphicon glyphicon-plus"></span>
                                {{sortName}}
                            </li>
                            {{/ data}}
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-9">
            <div class="panel panel-default">
                <div class="panel-heading noborder">
                    <button class="btn btn-success model-attr-btn" disabled data-toggle="modal" data-target="#addAttr">
                        <i class="glyphicon-plus"></i>添加属性
                    </button>
                </div>
            </div>
            <div id="attr-table" class="table-responsive">
                <!--<table class="table table-bordered">
                    <thead>
                    <tr>
                        <th width="15%">属性名称</th>
                        <th width="15%">属性类型</th>
                        <th width="15%">输入类型</th>
                        <th width="15%">是否必选</th>
                        <th width="15%">是否可搜索</th>
                        <th width="25%">操作</th>
                    </tr>
                    </thead>
                    <tbody></tbody>
                </table>-->
            </div>
        </div>
    </div>
</div>

<!--模态框-->
<div class="modal fade" id="addAttr" tabindex="-1" role="dialog" aria-labelledby="addAttr">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="addAttrTitle">添加属性</h4>
            </div>
            <div class="modal-body">
                <form id="add-attr-form" class="form-horizontal form-bordered" method="post" action="/product/attr/add">
                    <div class="form-group">
                        <label class="col-md-3 control-label">
                            属性名称<i>*</i>
                        </label>

                        <div class="col-md-6">
                            <input id="attributeName" class="form-control width300" type="text" placeholder="属性名称" required>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">
                            销售类型<i>*</i>
                        </label>

                        <div class="col-md-6">
                            <select id="saleType" class="attr-select width300" data-placeholder="销售类型" required>
                                <option value="0">请选择</option>
                                <option value="1">销售属性</option>
                                <option value="2">非销售属性</option>
                                <option value="3">扩展属性</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">
                            输入类型<i>*</i>
                        </label>

                        <div class="col-md-6">
                            <select id="inputType" class="attr-select width300" data-placeholder="输入类型" required>
                                <option value="0">请选择</option>
                                <option value="radio">单选按钮</option>
                                <option value="checkbox">复选框</option>
                                <option value="select">下拉列表</option>
                                <option value="input">单行文本框</option>
                                <option value="textarea">多行文本框</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">
                            是否必选
                        </label>

                        <div class="col-md-6">
                            <select id="isMust" class="attr-select width300" data-placeholder="是否必选">
                                <option value="0">请选择</option>
                                <option value="Y"></option>
                                <option value="N"></option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">
                            启用搜索
                        </label>

                        <div class="col-md-6">
                            <select id="isSearch" class="attr-select width300" data-placeholder="启用搜索">
                                <option value="0">请选择</option>
                                <option value="Y"></option>
                                <option value="N"></option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">
                            最大输入值
                        </label>

                        <div class="col-md-6">
                            <input id="maxValueLen" class="form-control width300" type="text" placeholder="最大输入值">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">
                            是否允许别名
                        </label>

                        <div class="col-md-6">
                            <select id="isAllowAlias" class="attr-select width300" data-placeholder="是否允许别名">
                                <option value="0">请选择</option>
                                <option value="Y"></option>
                                <option value="N"></option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">
                            排序
                        </label>

                        <div class="col-md-6">
                            <input id="orderBy" class="form-control width300" type="text" placeholder="排序">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">
                            属性值<i>*</i>
                        </label>

                        <div class="col-md-6">
                            <input id="attributeValues" class="form-control width300" type="text" placeholder="属性值" required>
                        </div>
                    </div>

                    <!--新增-->
                    <div class="form-group">
                        <label class="col-md-3 control-label">
                            展示位置
                        </label>

                        <div class="col-md-6">
                            <select id="displayPosition" class="attr-select width300" data-placeholder="展示位置" required>
                                <option value="0">请选择</option>
                                <option value="1">基础商品-非销售属性</option>
                                <option value="2">网售信息-上架后补全信息</option>
                                <option value="3">网售信息-商品参数</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">
                            备注
                        </label>

                        <div class="col-md-6">
                            <textarea id="remark" class="form-control width300" rows="2" name="remark"></textarea>
                        </div>
                    </div>


                    <div class="form-group hidden">
                        <label class="col-md-3 control-label">
                            ID<i>*</i>
                        </label>

                        <div class="col-md-6">
                            <input id="categoryId" class="form-control width300" value="" type="text" placeholder="ID">
                        </div>
                    </div>
                    <div class="form-group hidden">
                        <label class="col-md-3 control-label">
                            attributeId<i>*</i>
                        </label>

                        <div class="col-md-6">
                            <input id="attributeId" class="form-control width300" value="" type="text" placeholder="attributeId">
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default m-t-20 add-attr-btn-close" data-dismiss="modal">关闭</button>
                <button type="button" class="add-attr-btn btn btn-primary m-t-20">添加</button>
            </div>
        </div>
    </div>
</div>