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,54 +1,73 @@
<p id="notice"><%= notice %></p>
<div class="page-header">
<ul class="breadcrumb">
<li><a href="<%= %>">Home</a></li>
<li>Print Settings</li>
<span style="float: right">
<%= link_to t("views.btn.new"),new_print_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">Print Settings</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>Name</th>
<th>Unique code</th>
<th>Template</th>
<th>Printer name</th>
<th>Font</th>
<th>Api settings</th>
<th>Page width</th>
<th>Page height</th>
<th>Print copies</th>
<th>Precision</th>
<th>Delimiter</th>
<th>Heading_space</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<% @print_settings.each do |print_setting| %>
<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_print_setting_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
</div>
<div class="card">
<table class="table table-striped">
<thead>
<tr>
<td><%= print_setting.name %></td>
<td><%= print_setting.unique_code %></td>
<td><%= print_setting.template %></td>
<td><%= print_setting.printer_name %></td>
<td><%= print_setting.font %></td>
<td><%= print_setting.api_settings %></td>
<td><%= print_setting.page_width %></td>
<td><%= print_setting.page_height %></td>
<td><%= print_setting.print_copies %></td>
<td><%= print_setting.precision %></td>
<td><%= print_setting.delimiter %></td>
<td><%= print_setting.heading_space %></td>
<td><%= link_to t("views.btn.show"), print_setting %> | <%= link_to t("views.btn.edit"), edit_print_setting_path(print_setting) %></td>
<!-- <td><%= link_to t("views.btn.delete"), print_setting, method: :delete, data: { confirm: 'Are you sure?' } %></td> -->
<th>Name</th>
<th>Unique code</th>
<!-- <th>Template</th> -->
<th>Printer name</th>
<th>Font</th>
<!-- <th>Api settings</th> -->
<th>Page width</th>
<th>Page height</th>
<th>Print copies</th>
<th>Precision</th>
<th>Delimiter</th>
<th>Heading_space</th>
<th>Action</th>
</tr>
<% end %>
</tbody>
</table>
</thead>
<tbody>
<% @print_settings.each do |print_setting| %>
<tr>
<td><%= print_setting.name %></td>
<td><%= print_setting.unique_code %></td>
<!-- <td><%= print_setting.template %></td> -->
<td><%= print_setting.printer_name %></td>
<td><%= print_setting.font rescue '-' %></td>
<!-- <td><%= print_setting.api_settings %></td> -->
<td><%= print_setting.page_width %></td>
<td><%= print_setting.page_height %></td>
<td><%= print_setting.print_copies %></td>
<td><%= print_setting.precision %></td>
<td><%= print_setting.delimiter %></td>
<td><%= print_setting.heading_space %></td>
<td>
<%= link_to t("views.btn.show"), print_setting,:class => 'btn btn-primary btn-sm waves-effect' %>
<%= link_to t("views.btn.edit"), edit_print_setting_path(print_setting),:class => 'btn btn-info btn-sm waves-effect' %></td>
<!-- <td><%= link_to t("views.btn.delete"), print_setting, method: :delete, data: { confirm: 'Are you sure?' } %></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>