Edit.html
3.35 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
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<form id="materialForm" role="form" class="form-horizontal form-bordered" method="post" action="<%action%>">
<input type="hidden" id="id" value="<%material.id%>">
<div class="contentpanel">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><%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">
<select name="productSortSelect" id="maxSortId" value="<%material.maxSortId%>" class="form-control" required></select>
</div>
</div>
<div class="form-group">
<div class="col-sm-1 control-label">
<label>材质名称: </label>
</div>
<div class="col-sm-9">
<input form="materialForm" type="text" id="caption" value="<%material.caption%>" class="form-control" maxlength="20" required>
</div>
</div>
<div class="form-group">
<div class="col-sm-1 control-label">
<label>英文名称: </label>
</div>
<div class="col-sm-9">
<input form="materialForm" type="text" id="encaption" value="<%material.encaption%>" class="form-control" maxlength="100" required>
</div>
</div>
<div class="form-group">
<div class="col-sm-1 control-label">
<label>图片: </label>
</div>
<div class="col-sm-9">
<input type="file" name="materialPic" value="<%material.imageUrl%>" id="imageUrl" required>
</div>
</div>
<div class="form-group">
<div class="col-sm-1 control-label">
<label>备注: </label>
</div>
<div class="col-sm-9">
<textarea form="materialForm" name="materialRemark" id="remark" rows="6" maxlength="474" class="form-control" required><%material.remark%></textarea>
</div>
</div>
<div style="text-align: center;">
<a href="javascript:;" class="btn btn-success submit-btn">提交</a>
<a href="/goods/material/index" class="btn btn-danger cancel-btn">取消</a>
</div>
</div>
</div>
</div>
</div>
</form>
<!-- 一级商品分类列表 -->
<script type="text/template" id="max-sort-template">
<option value="">请选择分类</option>
<%each maxSortIds as sort index%>
<option value="<%sort.id%>"><%sort.sortName%></option>
<%/each%>
</script>
<%include '../../../common/views/__ui/footer'%>