74 lines
2.6 KiB
Plaintext
74 lines
2.6 KiB
Plaintext
|
|
<div class="page-header">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
|
|
<li class="breadcrumb-item active">Account</li>
|
|
<span class="float-right">
|
|
<%= link_to t('.back', :default => t("views.btn.back")), dashboard_path %>
|
|
</span>
|
|
</ol>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
|
|
<div class="m-b-10 clearfix">
|
|
<%= link_to t("views.btn.new"),new_settings_account_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
|
|
</div>
|
|
<div class="card">
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Title</th>
|
|
<th>Account Type</th>
|
|
<th>Discount</th>
|
|
<th>Point</th>
|
|
<th>Bonus</th>
|
|
<th>Rebate</th>
|
|
|
|
<th style="">Action</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% @settings_accounts.each do |account| %>
|
|
<tr>
|
|
<td><%= account.title %></td>
|
|
<td><%= %><%= account.account_type == 1 ? "Expense" : "Income"%></td>
|
|
<td><%= account.discount %></td>
|
|
<td><%= account.point %></td>
|
|
<td><%= account.bonus %></td>
|
|
<td><%= account.rebate %></td>
|
|
<td>
|
|
<%= 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 %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
|
|
<div class="card">
|
|
<div class="body">
|
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
|
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
|
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
|
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
|
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|