delte ui change

This commit is contained in:
yamin
2017-10-23 13:38:36 +06:30
parent 1147b81a8a
commit d3dfabd66a
3 changed files with 27 additions and 18 deletions

View File

@@ -39,17 +39,8 @@
<td><%= account.bonus %></td>
<td><%= account.rebate %></td>
<td>
<%= link_to t("views.btn.show"), settings_account_path(account),:class => 'btn btn-info btn-sm waves-effect' %>
<%= link_to t("views.btn.edit"), edit_settings_account_path(account),:class => 'btn btn-primary btn-sm waves-effect' %>
<button class="delete btn btn-danger btn-sm waves-effect" data-ref="<%= settings_account_path(account)%>" data-method="delete">
<%= t("views.btn.delete") %>
</button>
<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>
</td>
</tr>
<% end %>