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,16 +1,37 @@
<p id="notice"><%= notice %></p>
<div class="page-header">
<ul class="breadcrumb">
<li><a href="<%= root_path %>">Home</a></li>
<li><a href="<%= settings_employees_path %>">Employee</a></li>
<span style="float: right">
</span>
</ul>
</div>
<div class="card">
<div class="card-block">
<h4 class="card-title">Employee</h4>
<table class="table">
<thead>
<tr>
<th>Name</th>
<th>Role</th>
<th>Action</th>
</tr>
</thead>
<p>
<strong>Name:</strong>
<%= @employee.name %>
</p>
<tbody>
<tr>
<td><%= @employee.name %></td>
<td><%= @employee.role %></td>
<td>
<%= link_to 'Edit', edit_settings_employee_path(@employee) %>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p>
<strong>Role:</strong>
<%= @employee.role %>
</p>
</div>
<p>
<strong>Employee ID:</strong>
<%= @employee.emp_id %>
</p>