banner配置增加跳转URL
This commit is contained in:
parent
8b85fc11c2
commit
4e6e654e1f
|
@ -15,6 +15,12 @@
|
||||||
</label>
|
</label>
|
||||||
<%= p.text_field :title,class: "form-control input-lg",required: true%>
|
<%= p.text_field :title,class: "form-control input-lg",required: true%>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>
|
||||||
|
跳转URL
|
||||||
|
</label>
|
||||||
|
<%= p.text_field :url, class: "form-control",placeholder: ""%>
|
||||||
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>
|
<label>
|
||||||
排序等级
|
排序等级
|
||||||
|
|
|
@ -4,8 +4,9 @@
|
||||||
<th width="5%">序号</th>
|
<th width="5%">序号</th>
|
||||||
<th width="20%">标题</th>
|
<th width="20%">标题</th>
|
||||||
<th width="20%">图片</th>
|
<th width="20%">图片</th>
|
||||||
<th width="20%">排序等级</th>
|
<th width="25%">跳转URL</th>
|
||||||
<th width="25%">操作</th>
|
<th width="10%">排序等级</th>
|
||||||
|
<th width="20%">操作</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -15,6 +16,7 @@
|
||||||
<td><%= list_index_no((params[:page] || 1).to_i, index) %></td>
|
<td><%= list_index_no((params[:page] || 1).to_i, index) %></td>
|
||||||
<td><%= banner.title %></td>
|
<td><%= banner.title %></td>
|
||||||
<td><img style="width:150px" src="<%= banner.image %>" /></td>
|
<td><img style="width:150px" src="<%= banner.image %>" /></td>
|
||||||
|
<td><a href="<%= banner.url %>"><%= banner.url %></a> </td>
|
||||||
<td><%= banner.order_index %></td>
|
<td><%= banner.order_index %></td>
|
||||||
<td class="action-container">
|
<td class="action-container">
|
||||||
<%= link_to "编辑", edit_admins_topic_banner_path(banner), remote: true, class: "action" %>
|
<%= link_to "编辑", edit_admins_topic_banner_path(banner), remote: true, class: "action" %>
|
||||||
|
|
Loading…
Reference in New Issue