47 lines
1.2 KiB
Plaintext
47 lines
1.2 KiB
Plaintext
|
|
<div class="page-header">
|
|
<ul class="breadcrumb">
|
|
<li><a href="<%= %>">Home</a></li>
|
|
<li>Account</li>
|
|
<span style="float: right">
|
|
<%= link_to t('.new', :default => t("helpers.links.new")),new_settings_account_path,:class => 'btn btn-primary btn-sm' %>
|
|
</span>
|
|
</ul>
|
|
</div>
|
|
|
|
<br>
|
|
<div class="card">
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Title</th>
|
|
<th>Account Type</th>
|
|
<!-- <th>Can get Discount</th> -->
|
|
<th>Can get Points</th>
|
|
<!-- <th>Can get Bonus</th> -->
|
|
<th>Can rebate</th>
|
|
|
|
<th style="">Action</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% @settings_accounts.each do |account| %>
|
|
<tr>
|
|
<td><%= account.title %></td>
|
|
<td><%= account.account_type %></td>
|
|
<!-- <td><%= account.discount %></td> -->
|
|
<td><%= account.point %></td>
|
|
<!-- <td><%= account.bonus %></td> -->
|
|
<td><%= account.rebate %></td>
|
|
<td>
|
|
<%= link_to 'Edit', edit_settings_account_path(account) %> |
|
|
<%= link_to 'Destroy', settings_account_path(account), method: :delete, data: { confirm: 'Are you sure?' } %>
|
|
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|