banner配置增加跳转URL

This commit is contained in:
“xxq250” 2022-07-27 16:17:25 +08:00
parent 8b85fc11c2
commit 4e6e654e1f
2 changed files with 10 additions and 2 deletions

View File

@ -15,6 +15,12 @@
</label>
<%= p.text_field :title,class: "form-control input-lg",required: true%>
</div>
<div class="form-group">
<label>
跳转URL
</label>
<%= p.text_field :url, class: "form-control",placeholder: ""%>
</div>
<div class="form-group">
<label>
排序等级

View File

@ -4,8 +4,9 @@
<th width="5%">序号</th>
<th width="20%">标题</th>
<th width="20%">图片</th>
<th width="20%">排序等级</th>
<th width="25%">操作</th>
<th width="25%">跳转URL</th>
<th width="10%">排序等级</th>
<th width="20%">操作</th>
</tr>
</thead>
<tbody>
@ -15,6 +16,7 @@
<td><%= list_index_no((params[:page] || 1).to_i, index) %></td>
<td><%= banner.title %></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 class="action-container">
<%= link_to "编辑", edit_admins_topic_banner_path(banner), remote: true, class: "action" %>