UI change

This commit is contained in:
yamin
2017-10-23 11:38:10 +06:30
parent 4874bb135c
commit 1aea52619a
4731 changed files with 19031 additions and 149 deletions

0
app/views/settings/menu_item_attributes/_form.html.erb Normal file → Executable file
View File

0
app/views/settings/menu_item_attributes/edit.html.erb Normal file → Executable file
View File

9
app/views/settings/menu_item_attributes/index.html.erb Normal file → Executable file
View File

@@ -34,6 +34,7 @@
<th>Attribute type</th>
<th>Name</th>
<th>Value</th>
<th>Actions</th>
</tr>
</thead>
@@ -46,14 +47,14 @@
<td>
<%= link_to t("views.btn.edit"), edit_settings_menu_item_attribute_path(settings_menu_item_attribute),:class => 'btn btn-primary btn-sm waves-effect' %>
<button class="delete btn btn-danger btn-sm waves-effect" data-ref="<%=settings_menu_item_attribute_path(settings_menu_item_attribute)%>" data-method="delete">
<!-- <button class="delete btn btn-danger btn-sm waves-effect" data-ref="<%=settings_menu_item_attribute_path(settings_menu_item_attribute)%>" data-method="delete">
<%= t("views.btn.delete") %>
</button>
</button> -->
<!-- Start Delete confirrm text !-->
<span class="hidden" id="delete_text">
<!-- <span class="hidden" id="delete_text">
<h6>Are you sure you want to delete this row ?</h6>
<h6>This action can't be undo. </h6>
</span>
</span> -->
</td>
</tr>
<% end %>

View File

0
app/views/settings/menu_item_attributes/new.html.erb Normal file → Executable file
View File

6
app/views/settings/menu_item_attributes/show.html.erb Normal file → Executable file
View File

@@ -17,7 +17,7 @@
<th>Name</th>
<th>Value</th>
<th>Created At</th>
<th>Action</th>
<th>Actions</th>
</tr>
</thead>
@@ -26,7 +26,9 @@
<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 t("views.btn.edit"), edit_settings_menu_item_attribute_path(@settings_menu_item_attribute, @settings_menu_item_attribute) %></td>
<td><%= link_to t("views.btn.edit"), edit_settings_menu_item_attribute_path(@settings_menu_item_attribute, @settings_menu_item_attribute) %>
<%= link_to t("views.btn.delete"), settings_menu_item_attribute_path(@settings_menu_item_attribute, @settings_menu_item_attribute ), method: :delete, data: { confirm: 'Are you sure?' },:class => 'btn btn-danger btn-lg waves-effect' %>
</td>
</tr>
</tbody>
</table>

View File