Authored by 陶雨

资源位内容修改table样式

... ... @@ -14,10 +14,10 @@
<tbody>
[[each contentData.data as item index]]
<tr>
<td>
<td align="center">
[[index+1]]
</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="[[index]].src"/>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="[[index]].src"/>
</td>
<td>
<div class="form-group ">
... ... @@ -138,18 +138,18 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>品牌图标</th>
<th>品牌名称</th>
<th>操作</th>
<td align="center"><strong>品牌图标</strong></td>
<td align="center"><strong>品牌名称</strong></td>
<td align="center"><strong>操作</strong></td>
</tr>
</thead>
<tbody>
[[each contentData.data.list as item index]]
<tr>
<td>
<td align="center">
<input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/>
</td>
<td>
<td align="center">
<div class="form-group">
[[if contentData.template_name=='kidsBrands']]
<input class="form-control observe" type="text" value="[[item.title]]" data-field="list.[[index]].title">
... ... @@ -238,18 +238,18 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>序号</th>
<th>标签名称</th>
<th>导航链接</th>
<td align="center"><strong>序号</strong></td>
<td align="center"><strong>标签名称</strong></td>
<td align="center"><strong>导航链接</strong></td>
</tr>
</thead>
<tbody>
[[each contentData.data.nav as item index]]
<tr>
<td>
<td align="center">
[[index+1]]
</td>
<td>
<td align="center">
<div class="form-group">
<div class="col-sm-10">
<input value="[[item.name]]" class="form-control observe" required="required" data-field="nav.[[index]].name" placeholder="标签名称"/>
... ... @@ -290,18 +290,18 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>序号</th>
<th>图片</th>
<th>选项</th>
<td align="center"><strong>序号</strong></td>
<td align="center"><strong>图片</strong></td>
<td align="center"><strong>选项</strong></td>
</tr>
</thead>
<tbody>
[[each contentData.data as item index]]
<tr>
<td>
<td align="center">
[[index+1]]
</td>
<td>
<td align="center">
<div class="form-group">
<div class="col-sm-10">
<input type="file" name="file" value="[[item.image.src]]" class="form-control observe" data-field="[[index]].image.src" required placeholder="图片"/>
... ...
... ... @@ -28,15 +28,15 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>序号</th>
<th>资源位</th>
<th>选项</th>
<td align="center"><strong>序号</strong></td>
<td align="center"><strong>资源位</strong></td>
<td align="center"><strong>选项</strong></td>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td><input type="file" name="file" placeholder="图片" value="[[contentData.data.image.src]]" data-field="image.src" class="observe" required="required"/></td>
<td align="center">1</td>
<td align="center"><input type="file" name="file" placeholder="图片" value="[[contentData.data.image.src]]" data-field="image.src" class="observe" required="required"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -60,33 +60,36 @@
</script>
<!--多标签图片-->
<script type="text/template" id="multiLabelImage-template">
[[each contentData.data.label as item index]]
<div class="form-group">
[[each contentData.data.label as item index]]
<label class="control-label">标签[[index+1]]:</label>
<input type="text" class="observe" placeholder="名称" value="[[item.title]]" data-field="label.[[index]].title" required="required" style="width: 100px">
<label class="control-label">跳转目的</label>
<select name="goTo" class="observe" value="[[item.url.action]]" data-field="label.[[index]].url.action" style="width: 120px" >
[[layout action_template]]
</select>
<label>跳转地址</label>
<input type="text" class="observe" placeholder="跳转地址" value="[[item.url.url]]" data-field="label.[[index]].url.url" style="width: 120px" /><br>
[[/each]]
<div class="col-sm-12">
<label>标签[[index+1]]:</label>
<input type="text" class="observe form-control" placeholder="名称" value="[[item.title]]" data-field="label.[[index]].title" required="required" style="display:inline-block;width: 100px">
<label>跳转目的</label>
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="label.[[index]].url.action" style="display:inline-block;width: 160px">
[[layout action_template]]
</select>
<label>跳转地址</label>
<input type="text" class="observe form-control" placeholder="跳转地址" value="[[item.url.url]]" data-field="label.[[index]].url.url" style="display:inline-block;width: 160px" />
</div>
</div>
[[/each]]
<a href="JavaScript:;" class="btn btn-primary btn-xs addBtn" data-event="multiLabelImage.label">添加标签</a>
<div>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>序号</th>
<th>资源位</th>
<th>选项</th>
<td align="center"><strong>序号</strong></td>
<td align="center"><strong>资源位</strong></td>
<td align="center"><strong>选项</strong></td>
</tr>
</thead>
<tbody>
[[each contentData.data.image as item index]]
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" data-field="image.[[index]].src" class="observe" required="required"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" data-field="image.[[index]].src" class="observe" required="required"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -143,8 +146,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" data-field="top_image.[[index]].src" class="observe" required="required"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" data-field="top_image.[[index]].src" class="observe" required="required"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -173,8 +176,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" data-field="list.[[index]].src" class="observe" required="required"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" data-field="list.[[index]].src" class="observe" required="required"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -233,8 +236,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -267,8 +270,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -327,8 +330,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -361,8 +364,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -398,8 +401,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -432,8 +435,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -474,8 +477,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="left.list.[[index]].src" required/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="left.list.[[index]].src" required/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -514,8 +517,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="right.list.[[index]].src" required/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="right.list.[[index]].src" required/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -560,8 +563,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -631,8 +634,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" data-field="list.[[index]].src" class="observe"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" data-field="list.[[index]].src" class="observe"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -734,8 +737,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="banner_image.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="banner_image.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -774,8 +777,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="left.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="left.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -808,8 +811,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -842,8 +845,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="right.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="right.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -893,8 +896,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -952,8 +955,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="blocks.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="blocks.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -1007,8 +1010,8 @@
<tbody>
[[each contentData.data.imgs as item index]]
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="imgs.[[index]].src"/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="imgs.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -1059,8 +1062,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src" required/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src" required/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -1118,9 +1121,9 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td><button class="btn btn-danger btn-sm delBtn" type="button" data-event="carouselBanner.list" data-index="[[index]]">删除</button></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td align="center"><button class="btn btn-danger btn-sm delBtn" type="button" data-event="carouselBanner.list" data-index="[[index]]">删除</button></td>
</tr>
</tbody>
</table>
... ... @@ -1155,8 +1158,8 @@
</thead>
<tbody>
<tr>
<td>1</td>
<td><input type="file" name="file" value="[[contentData.data.src]]" class="observe" data-field="src" required/></td>
<td align="center">1</td>
<td align="center"><input type="file" name="file" value="[[contentData.data.src]]" class="observe" data-field="src" required/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ... @@ -1199,8 +1202,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="[[index]].src" required/></td>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="[[index]].src" required/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
... ...
... ... @@ -72,8 +72,8 @@
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td>
<td align="center">[[index+1]]</td>
<td align="center">
<input type="file" name="file" id="src-[[index]]" value="[[item.src]]"
data-field="[[index]].src" data-index="[[index]]" required/>
</td>
... ...