update show detail template of backend

This commit is contained in:
Aung Myo
2017-07-05 11:51:43 +06:30
parent 7f6a306097
commit 602a0d010a
7 changed files with 263 additions and 225 deletions

View File

@@ -1,70 +1,78 @@
<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>
<strong>Name:</strong>
<%= @print_setting.name %>
</p>
<p>
<strong>Unique code:</strong>
<%= @print_setting.unique_code %>
</p>
<p>
<strong>Template:</strong>
<%= @print_setting.template %>
</p>
<p>
<strong>Db name:</strong>
<%= @print_setting.db_name %>
</p>
<p>
<strong>Db type:</strong>
<%= @print_setting.db_type %>
</p>
<p>
<strong>Db username:</strong>
<%= @print_setting.db_username %>
</p>
<p>
<strong>Db password:</strong>
<%= @print_setting.db_password %>
</p>
<p>
<strong>Printer name:</strong>
<%= @print_setting.printer_name %>
</p>
<p>
<strong>Api settings:</strong>
<%= @print_setting.api_settings %>
</p>
<p>
<strong>Page width:</strong>
<%= @print_setting.page_width %>
</p>
<p>
<strong>Page height:</strong>
<%= @print_setting.page_height %>
</p>
<p>
<strong>Print copies:</strong>
<%= @print_setting.print_copies %>
</p>
<%= link_to 'Edit', edit_print_setting_path(@print_setting) %> |
<ul class="breadcrumb">
<li><a href="<%= root_path %>">Home</a></li>
<li><a href="<%= print_settings_path %>">Print Setting</a></li>
<span style="float: right">
<li>
<%= link_to 'Edit', edit_print_setting_path(@print_setting) %> |
<%= link_to 'Back', print_settings_path %>
</li>
</span>
</ul>
</div>
<div class="card">
<div class="card-block">
<table class="table">
<tbody>
<tr>
<th>Name</th>
<td><%= @print_setting.name %></td>
</tr>
<tr>
<th>Unique code</th>
<td><%= @print_setting.unique_code %></td>
</tr>
<tr>
<th>Template</th>
<td><%= @print_setting.template %></td>
</tr>
<tr>
<th>Db name</th>
<td><%= @print_setting.db_name %></td>
</tr>
<tr>
<th>Db type</th>
<td><%= @print_setting.db_type %></td>
</tr>
<tr>
<th>Db username</th>
<td><%= @print_setting.db_username %></td>
</tr>
<tr>
<th>Db password</th>
<td><%= @print_setting.db_password %></td>
</tr>
<tr>
<th>Printer name</th>
<td><%= @print_setting.printer_name %></td>
</tr>
<tr>
<th>Api settings</th>
<td><%= @print_setting.api_settings %></td>
</tr>
<tr>
<th>Page width</th>
<td><%= @print_setting.page_width %></td>
</tr>
<tr>
<th>Page height</th>
<td><%= @print_setting.page_height %></td>
</tr>
<tr>
<th>Print copies</th>
<td><%= @print_setting.print_copies %></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>