69 lines
3.8 KiB
Plaintext
Executable File
69 lines
3.8 KiB
Plaintext
Executable File
<div class="page-header">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
|
|
<li class="breadcrumb-item active">Commissions</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_commission_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
|
|
</div>
|
|
<div class="card">
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Product Name</th>
|
|
<th>Commission Type</th>
|
|
<th>Amount</th>
|
|
<th>Active</th>
|
|
<th colspan="2">Actions</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% @commissions.each do |commission| %>
|
|
<tr>
|
|
<td><%= commission.menu_item.name rescue '-' %></td>
|
|
<td><%= commission.commission_type rescue '-' %></td>
|
|
<td><%= commission.amount rescue '-' %></td>
|
|
<td><%= commission.is_active rescue '-' %></td>
|
|
<td><%= link_to t("views.btn.show"), settings_commission_path(commission), :class => "btn btn-info btn-sm waves-effect" %>
|
|
<%= link_to t("views.btn.edit"), edit_settings_commission_path(commission), :class => "btn btn-info btn-sm waves-effect" %></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">
|
|
<h5><i class="material-icons md-18">view_headline <%= t("views.right_panel.header.page_detail") %></i></h5>
|
|
<p>
|
|
1) <%= t("views.right_panel.detail.product") %> <%= t("views.right_panel.detail.name_txt2") %> - <%= t("views.right_panel.detail.product_txt") %> <%= t("views.right_panel.detail.name_txt2") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.commission_txt") %> <br>
|
|
2) <%= t("views.right_panel.detail.commission_type") %> - <%= t("views.right_panel.detail.commission_type_txt") %> <br>
|
|
3) <%= t("views.right_panel.detail.amount") %> - <%= t("views.right_panel.detail.amount_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.commission_txt") %> <br>
|
|
4) <%= t("views.right_panel.detail.active") %> - <%= t("views.right_panel.detail.status_txt2") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.commission_txt") %> <br>
|
|
5) <%= t("views.right_panel.detail.actions") %> - <%= t("views.right_panel.detail.actions_txt") %> <%= t("views.right_panel.detail.commission_txt") %> <br>
|
|
</p>
|
|
<h5><i class="material-icons md-18">list <%= t("views.right_panel.header.button_lists") %></i> </h5>
|
|
<p>
|
|
1) <%= t("views.right_panel.button.new") %> - <%= t("views.right_panel.detail.new_btn_txt") %> <%= t("views.right_panel.detail.commission_txt") %> <br>
|
|
2) <%= t("views.right_panel.button.show") %> - <%= t("views.right_panel.detail.show_btn_txt") %> <%= t("views.right_panel.detail.commission_txt") %> <br>
|
|
2) <%= t("views.right_panel.button.edit") %> - <%= t("views.right_panel.detail.edit_btn_txt") %> <%= t("views.right_panel.detail.commission_txt") %> <br>
|
|
</p>
|
|
<h5><i class="material-icons md-18">list <%= t("views.right_panel.header.link_lists") %></i> </h5>
|
|
<p>
|
|
1) <%= t("views.right_panel.button.home") %> - <%= t("views.right_panel.detail.home_txt") %> <br>
|
|
2) <%= t("views.right_panel.button.back") %> - <%= t("views.right_panel.detail.back_txt") %> <%= t("views.right_panel.detail.dashboard_txt") %> <br>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|