scaffold models
This commit is contained in:
31
app/views/settings/menu_item_attributes/index.html.erb
Normal file
31
app/views/settings/menu_item_attributes/index.html.erb
Normal file
@@ -0,0 +1,31 @@
|
||||
<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>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New Settings Menu Item Attribute', new_settings_menu_item_attribute_path %>
|
||||
Reference in New Issue
Block a user