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,19 +1,36 @@
<p id="notice"><%= notice %></p>
<p>
<strong>Attribute type:</strong>
<%= @settings_menu_item_attribute.attribute_type %>
</p>
<div class="page-header">
<ul class="breadcrumb">
<li><a href="<%= %>">Home</a></li>
<li>Settings</li>
<li>Menu Item Attribute</li>
<span style="float: right">
</span>
</ul>
</div>
<div class="card">
<div class="card-block">
<h4 class="card-title">Menu Item Attribute</h4>
<table class="table">
<thead>
<tr>
<th>Name</th>
<th>Value</th>
<th>Created At</th>
<th>Action</th>
</tr>
</thead>
<p>
<strong>Name:</strong>
<%= @settings_menu_item_attribute.name %>
</p>
<tbody>
<tr>
<td><%= @settings_menu_item_attribute.name %></td>
<td><%= @settings_menu_item_attribute.value rescue "-" %></td>
<td><%=l @settings_menu_item_attribute.created_at, format: :short %></td>
<td><%= link_to 'Edit', edit_settings_menu_item_attribute_path(@settings_menu_item_attribute, @settings_menu_item_attribute) %></td>
</tr>
</tbody>
</table>
</div>
</div>
<p>
<strong>Value:</strong>
<%= @settings_menu_item_attribute.value %>
</p>
<%= link_to 'Edit', edit_settings_menu_item_attribute_path(@settings_menu_item_attribute) %> |
<%= link_to 'Back', settings_menu_item_attributes_path %>
</div>