Menu Item Attribute

This commit is contained in:
Nweni
2017-04-20 19:22:30 +06:30
parent d60ee09ff2
commit 037eb1f0f2
6 changed files with 93 additions and 61 deletions

View File

@@ -1,31 +1,35 @@
<p id="notice"><%= notice %></p>
<h1>Settings Menu Item Attributes</h1>
<table>
<thead>
<tr>
<th>Attribute type</th>
<th>Name</th>
<th>Value</th>
<th colspan="3"></th>
</tr>
</thead>
<tbody>
<% @settings_menu_item_attributes.each do |settings_menu_item_attribute| %>
<tr>
<td><%= settings_menu_item_attribute.attribute_type %></td>
<td><%= settings_menu_item_attribute.name %></td>
<td><%= settings_menu_item_attribute.value %></td>
<td><%= link_to 'Show', settings_menu_item_attribute %></td>
<td><%= link_to 'Edit', edit_settings_menu_item_attribute_path(settings_menu_item_attribute) %></td>
<td><%= link_to 'Destroy', settings_menu_item_attribute, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<div class="page-header">
<ul class="breadcrumb">
<li><a href="<%= %>">Home</a></li>
<li>Menu Item Attributes</li>
<span style="float: right">
<%= link_to t('.new', :default => t("helpers.links.new")),new_settings_menu_item_attribute_path,:class => 'btn btn-primary btn-sm' %>
</span>
</ul>
</div>
<br>
<div class="card">
<table class="table table-striped">
<thead>
<tr>
<th>Attribute type</th>
<th>Name</th>
<th>Value</th>
</tr>
</thead>
<%= link_to 'New Settings Menu Item Attribute', new_settings_menu_item_attribute_path %>
<tbody>
<% @settings_menu_item_attributes.each do |settings_menu_item_attribute| %>
<tr>
<td><%= link_to settings_menu_item_attribute.attribute_type, settings_menu_item_attribute_path(settings_menu_item_attribute) %></td>
<td><%= settings_menu_item_attribute.name %></td>
<td><%= settings_menu_item_attribute.value %></td>
<td><%= link_to 'Edit', edit_settings_menu_item_attribute_path(settings_menu_item_attribute) %>
| <%= link_to 'Destroy', settings_menu_item_attribute_path(settings_menu_item_attribute), method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
</div>