Files
sx-fc/app/views/print_settings/index.html.erb
2017-10-16 19:23:25 +06:30

74 lines
2.8 KiB
Plaintext

<p id="notice"><%= notice %></p>
<div class="page-header">
<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>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-10 col-lg-10">
<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>
<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| %>
<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-2 col-lg-2">
<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>