update adminbsb for settins

This commit is contained in:
Aung Myo
2017-10-16 18:27:57 +06:30
parent 8cecb9a524
commit 98bc14c83d
78 changed files with 1171 additions and 1398 deletions

View File

@@ -1,42 +1,59 @@
<div class="page-header">
<ul class="breadcrumb">
<li><a href="<%= %>">Home</a></li>
<li>Payment Method</li>
<span style="float: right">
<%= link_to t("views.btn.new"),new_settings_payment_method_setting_path,:class => 'btn btn-primary btn-sm' %>
</span>
</ul>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item active">Payment Method</li>
<span class="float-right">
<%= link_to t('.back', :default => t("views.btn.back")), dashboard_path %>
</span>
</ol>
</div>
<br>
<div class="card">
<table class="table table-striped">
<thead>
<tr>
<th>Payment method</th>
<th>Is active</th>
<th>Gateway communication type</th>
<th>Gateway url</th>
<th>Auth token</th>
<th>Merchant account</th>
<th colspan="3"></th>
</tr>
</thead>
<tbody>
<% @settings_payment_method_settings.each do |settings_payment_method_setting| %>
<tr>
<td><%= settings_payment_method_setting.payment_method %></td>
<td><%= settings_payment_method_setting.is_active %></td>
<td><%= settings_payment_method_setting.gateway_communication_type %></td>
<td><%= settings_payment_method_setting.gateway_url %></td>
<td><%= settings_payment_method_setting.auth_token %></td>
<td><%= settings_payment_method_setting.merchant_account_id %></td>
<td><%= link_to t("views.btn.edit"), edit_settings_payment_method_setting_path(settings_payment_method_setting) %>
| <%= link_to t("views.btn.delete"), settings_payment_method_setting_path(settings_payment_method_setting), method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
</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_payment_method_setting_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
</div>
<div class="card">
<table class="table table-striped">
<thead>
<tr>
<th>Payment method</th>
<th>Is active</th>
<th>Gateway communication type</th>
<th>Gateway url</th>
<th>Auth token</th>
<th>Merchant account</th>
<th ></th>
</tr>
</thead>
<tbody>
<% @settings_payment_method_settings.each do |settings_payment_method_setting| %>
<tr>
<td><%= settings_payment_method_setting.payment_method %></td>
<td><%= settings_payment_method_setting.is_active %></td>
<td><%= settings_payment_method_setting.gateway_communication_type %></td>
<td><%= settings_payment_method_setting.gateway_url %></td>
<td><%= settings_payment_method_setting.auth_token %></td>
<td><%= settings_payment_method_setting.merchant_account_id %></td>
<td><%= link_to t("views.btn.edit"), edit_settings_payment_method_setting_path(settings_payment_method_setting),:class => 'btn btn-primary btn-sm waves-effect' %>
<%= link_to t("views.btn.delete"), settings_payment_method_setting_path(settings_payment_method_setting), method: :delete, data: { confirm: 'Are you sure?' },:class => 'btn btn-danger 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">
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
</div>
</div>
</div>
</div>