<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('.new', :default => t("helpers.links.new")),new_print_setting_path,:class => 'btn btn-primary btn-sm' %>
  </span>
 </ul>
</div>

<br />
<div class="card">
  <table class="table table-striped">
    <thead>
      <tr>
        <th>Name</th>
        <th>Unique code</th>
        <th>Template</th>
        <!-- <th>Db name</th>
        <th>Db type</th>
        <th>Db username</th>
        <th>Db password</th> -->
        <th>Printer name</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 colspan="3"></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.db_name %></td>
          <td><%= print_setting.db_type %></td>
          <td><%= print_setting.db_username %></td>
          <td><%= print_setting.db_password %></td> -->
          <td><%= print_setting.printer_name %></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 'Show', print_setting %></td>
          <td><%= link_to 'Edit', edit_print_setting_path(print_setting) %></td>
          <td><%= link_to 'Destroy', print_setting, method: :delete, data: { confirm: 'Are you sure?' } %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>
