add.html
5.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
<div class="col-xs-12 col-sm-8">
<textarea id="c-content" data-rule="required" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Spec_type')}:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-spec_type" data-rule="required" class="form-control selectpicker" name="row[spec_type]">
{foreach name="specTypeList" item="vo"}
<option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
{/foreach}
</select>
</div>
</div>
<!-- 活动规格属性 start -->
<div class="goods-spec-many form-group">
<!-- <label class="control-label col-xs-12 col-sm-2"></label>-->
<div class="goods-spec-box col-xs-12 col-sm-11" style="background-color: white;">
<!-- 规格属性 -->
<div class="spec-attr"></div>
<!-- 添加规格:按钮 -->
<div class="spec-group-button">
<button type="button" class="btn-addSpecGroup btn btn-xs btn-success">添加规格</button>
</div>
<!-- 添加规格:表单 -->
<div class="spec-group-add">
<div class="spec-group-add-item form-group">
<label class="control-label form-require">规格名 </label>
<input type="text" class="input-specName tpl-form-input"
placeholder="请输入规格名称">
</div>
<div class="spec-group-add-item form-group">
<label class="control-label form-require">规格值 </label>
<input type="text" class="input-specValue tpl-form-input"
placeholder="请输入规格值">
</div>
<div class="spec-group-add-item margin-top">
<button type="button" class="btn-addSpecName btn btn-xs btn-success"> 确定
</button>
<button type="button" class="btn-cancleAddSpecName btn btn-xs btn-default"> 取消
</button>
</div>
</div>
<!-- 商品多规格sku信息 -->
<div class="goods-sku scrollable-horizontal">
<!-- 分割线 -->
<div class="goods-spec-line"></div>
<!-- sku 批量设置 -->
<div class="spec-batch form-inline">
<div class="form-group">
<label class="control-label">批量设置</label>
</div>
<div class="form-group">
<input type="number" data-type="price" placeholder="报名费用">
</div>
<div class="form-group">
<button type="button" class="btn-specBatchBtn btn btn-sm btn-secondary
radius">确定
</button>
</div>
</div>
<!-- sku table -->
<table class="spec-sku-tabel table table-bordered table-centered margin-bottom-xs text-nowrap"></table>
</div>
</div>
</div>
<div class="goods-spec-single">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">报名费用:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-price" data-rule="required" class="form-control form-control" name="spec[price]" type="number" value="0">
</div>
</div>
</div>
<!-- 活动规格属性 end -->
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('House_ids')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-house_ids" data-rule="required" data-source="house/index" data-multiple="true" class="form-control selectpage" name="row[house_ids]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-start_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{:date('Y-m-d H:i:s')}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-end_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_time]" type="text" value="{:date('Y-m-d H:i:s')}">
</div>
</div>
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">
<button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
</div>
</div>
</form>
{include file="house_activity/spec_many_template" /}
<link rel="stylesheet" href="__CDN__/assets/addons/litestore/css/litestoregoods.css">