update.html 6.89 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>
            
            <div>
                <div style="width: 30%;float: left;">
                    <h4>创建店铺</h4>
                </div>
            </div>
        </div>
    </div>
</div>

{{#data}}
<form id="storeForm" role="form" class="form-horizontal form-bordered" method="post" action="{{action}}">
<input type="hidden" id="shopsId" value="{{ shopsId}}">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
	<div class="panel panel-default">
		<div class="panel-heading">
			<h3 class="panel-title">创建店铺</h3>
		</div>
		<div class="panel-body">
			<div class="row">
				<div class="form-group">
					<div class="col-sm-1 control-label">
						<label>店铺名称:</label>
					</div>
					<div class="col-sm-9">
						<input form="storeForm" name="shopName" id="shopName" type="text" class="form-control" value="{{ shopName}}" placeholder="店铺名称">
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-1 control-label">
						<label>店铺类型:</label>
					</div>
					<div class="col-sm-9">
					<select name="shopNature" id="shopNature" value='{{shopNature}}' style="width: 280px;" tabindex="-1" title="" class="select2-offscreen brandBtn-group brandBtn-group-lg">
						<option value="">店铺类型</option>
							<option value="1">旗舰店</option>
							<option value="2">直营店</option>
					</select>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-1 control-label">
						<label>店铺域名:</label>
					</div>
					<div class="col-sm-6">
						<div class="input-group">
							<input type="text"  form="storeForm" name="shopDomain" id="shopDomain" class="form-control" value="{{ shopDomain}}" placeholder="店铺域名" aria-describedby="basic-addon2">
							<span class="input-group-addon" id="basic-addon2">@example.com</span>
						</div>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-1 control-label">
						<label>官方网址:</label>
					</div>
					<div class="col-sm-9">
						<div id="homepage" class="input-group Add col-sm-6" style="float: left;">
						</div>
							<input id="otherUrl" type="hidden" value="{{ otherUrl}}">

							<button type="button" data-type="0" class="btn btn-info urlAdd" style="margin-left: 8px;">新增</button>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-1 control-label">
						<label>其他平台网址:</label>
					</div>
					<div class="col-sm-9">
						<div id="homeurl"class="input-group Add col-sm-6 col-sm-6" style="float: left;">
							
						</div>
							<input id="websiteUrl" type="hidden" value="{{ websiteUrl}}">
							<button type="button" data-type="1" class="btn btn-info urlAdd" style="margin-left: 8px;">新增</button>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-1 control-label">
						<label>代表实体店:</label>
					</div>
					<div  class="col-sm-9">
						<div id="homeaddress" class="input-group Add col-sm-6" style="float: left;">
						</div>
							<input id="shopAddress" type="hidden" value="{{ shopAddress}}">
							<button type="button" data-type="2" class="btn btn-info urlAdd" style="margin-left: 8px;">新增</button>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-1 control-label">
						<label>店铺Logo:</label>
					</div>
                    <div class="col-sm-8">
                     <ul class="upload-image-list" style="-webkit-padding-start: 0px;padding-left: 0px;">
                        <li class="fileinput-button"><a class="fileinput-button-icon" id="forselectIdImage" href="javascript:void(0);">
                            <img alt="" src="{{shopLogo}}">
                            <input type="hidden" id="shopLogo" value="11" required>
                            +</a></li>
                    </ul>
                    </div>
				</div>
				<div class="form-group">
					<div class="col-sm-1 control-label">
						<label>店铺简介:</label>
					</div>
					<div class="col-sm-7">
						<textarea class="form-control" form="storeForm" rows="10" name="shopIntro" id="shopIntro">{{shopIntro}}</textarea>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-1 control-label">
						<label>店铺模式:</label>
					</div>
					<div class="col-sm-9">					
					<select name="shopsType" id="shopsType" value='{{shopsType}}' style="width: 280px;" tabindex="-1" title="" class="select2-offscreen brandBtn-group brandBtn-group-lg">
						<option value="">店铺模式</option>
							<option value="1">单品店</option>
							<option value="2">多品店</option>
					</select>
					</div>
				</div>

				<div class="form-group">
					<div class="col-sm-1 control-label">
						<label>关联品牌:</label>
					</div>
					<div class="col-sm-9">					
						<a class="btn btn-info" data-toggle="modal" href='#modal-id'>添加供应商</a>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-8 col-sm-offset-1">									
						<table class="table table-hover" id='updateBrand'>
						<thead>
							<tr>
								<th>品牌</th>
								<th>供应商</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
						</tbody>
						</table>
					</div>
				</div>

				<button type="button" data-oncheck='1' class="check btn btn-success">提交审核</button>
				<button type="button" data-oncheck='2' class="check btn btn-info">暂存</button>
				<button onclick="history.go(-1);" type="button" class="btn btn-danger">取消</button>
			</div>
		</div>
		 
	</div>
</div>
</form>
{{/data}}
<div class="modal fade" id="modal-id">
	<div class="modal-dialog">
		<div class="modal-content" id="saveBrand">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title">添加供应商关系</h4>
			</div>
			<div class="modal-body">
                <select name="time-sort" id="brand-name" tabindex="-1" title="" class="select2-offscreen brandBtn-group">
                      <option value="-1">选择品牌</option>
                    {{# supplierName}}
                    <option value="{{value}}">{{name}}</option>
                    {{/ supplierName}} 
                </select>
				<table id="savebrand" class="table table-hover">
					<thead>
						<tr>
							<th>选择</th>
							<th>品牌</th>
							<th>供应商</th>
						</tr>
					</thead>
					<tbody>
					</tbody>
				</table>
				
			</div>
			<div class="modal-footer">
				<button id="addBrand" type="button" class="btn btn-primary">保存</button>
			</div>
		</div>
	</div>
</div>