print setting ui updated
This commit is contained in:
@@ -18,5 +18,6 @@
|
|||||||
|
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<%= f.button :submit %>
|
<%= f.button :submit %>
|
||||||
|
<%= link_to 'Back', print_settings_path, :class => "btn btn-default" %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1,6 +1,13 @@
|
|||||||
<h1>Editing Print Setting</h1>
|
<div class="span12">
|
||||||
|
<div class="page-header">
|
||||||
|
<ul class="breadcrumb">
|
||||||
|
<li><a href="<%= root_path %>">Home</a></li>
|
||||||
|
<li><a href="<%= print_settings_path %>">Print Setting</a></li>
|
||||||
|
<li>Edit</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<%= render 'form', print_setting: @print_setting %>
|
||||||
|
<br />
|
||||||
|
</div>
|
||||||
|
|
||||||
<%= render 'form', print_setting: @print_setting %>
|
|
||||||
|
|
||||||
<%= link_to 'Show', @print_setting %> |
|
|
||||||
<%= link_to 'Back', print_settings_path %>
|
|
||||||
|
|||||||
@@ -1,49 +1,55 @@
|
|||||||
<p id="notice"><%= notice %></p>
|
<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>
|
||||||
|
|
||||||
<h1>Print Settings</h1>
|
<br />
|
||||||
|
<div class="card">
|
||||||
<table>
|
<table class="table table-striped">
|
||||||
<thead>
|
<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 colspan="3"></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
|
|
||||||
<tbody>
|
|
||||||
<% @print_settings.each do |print_setting| %>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= print_setting.name %></td>
|
<th>Name</th>
|
||||||
<td><%= print_setting.unique_code %></td>
|
<th>Unique code</th>
|
||||||
<td><%= print_setting.template %></td>
|
<th>Template</th>
|
||||||
<td><%= print_setting.db_name %></td>
|
<!-- <th>Db name</th>
|
||||||
<td><%= print_setting.db_type %></td>
|
<th>Db type</th>
|
||||||
<td><%= print_setting.db_username %></td>
|
<th>Db username</th>
|
||||||
<td><%= print_setting.db_password %></td>
|
<th>Db password</th> -->
|
||||||
<td><%= print_setting.printer_name %></td>
|
<th>Printer name</th>
|
||||||
<td><%= print_setting.api_settings %></td>
|
<th>Api settings</th>
|
||||||
<td><%= print_setting.page_width %></td>
|
<th>Page width</th>
|
||||||
<td><%= print_setting.page_height %></td>
|
<th>Page height</th>
|
||||||
<td><%= print_setting.print_copies %></td>
|
<th>Print copies</th>
|
||||||
<td><%= link_to 'Show', print_setting %></td>
|
<th colspan="3"></th>
|
||||||
<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>
|
</tr>
|
||||||
<% end %>
|
</thead>
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<br>
|
<tbody>
|
||||||
|
<% @print_settings.each do |print_setting| %>
|
||||||
<%= link_to 'New Print Setting', new_print_setting_path %>
|
<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><%= 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>
|
||||||
|
|||||||
@@ -1,5 +1,15 @@
|
|||||||
<h1>New Print Setting</h1>
|
<div class="span12">
|
||||||
|
<div class="page-header">
|
||||||
|
<ul class="breadcrumb">
|
||||||
|
<li><a href="<%= root_path %>">Home</a></li>
|
||||||
|
<li><a href="<%= print_settings_path %>">Print Setting</a></li>
|
||||||
|
<li>New</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<%= render 'form', print_setting: @print_setting %>
|
||||||
|
<br />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<%= render 'form', print_setting: @print_setting %>
|
|
||||||
|
|
||||||
<%= link_to 'Back', print_settings_path %>
|
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
<p id="notice"><%= notice %></p>
|
<p id="notice"><%= notice %></p>
|
||||||
|
<div class="page-header">
|
||||||
|
<ul class="breadcrumb">
|
||||||
|
<li><a href="<%= root_path %>">Home</a></li>
|
||||||
|
<li><a href="<%= print_settings_path %>">Print Setting</a></li>
|
||||||
|
<li>Show</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
<p>
|
<p>
|
||||||
<strong>Name:</strong>
|
<strong>Name:</strong>
|
||||||
<%= @print_setting.name %>
|
<%= @print_setting.name %>
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
|
|
||||||
<div class="span12">
|
<div class="span12">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
<li><a href="<%= root_path %>">Home</a></li>
|
<li><a href="<%= root_path %>">Home</a></li>
|
||||||
<li><a href="<%= settings_employees_path %>">Employees</a></li>
|
<li><a href="<%= settings_employees_path %>">Employees</a></li>
|
||||||
<li>Edit</li>
|
<li>Edit</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<%= render 'form', employee: @employee %>
|
<%= render 'form', employee: @employee %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
|
|
||||||
<div class="span12">
|
<div class="span12">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
<li><a href="<%= root_path %>">Home</a></li>
|
<li><a href="<%= root_path %>">Home</a></li>
|
||||||
<li><a href="<%= settings_employees_path %>">Employees</a></li>
|
<li><a href="<%= settings_employees_path %>">Employees</a></li>
|
||||||
<li>New</li>
|
<li>New</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<%= render 'form', employee: @employee %>
|
<%= render 'form', employee: @employee %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user