Files
sx-fc/app/views/settings/employees/show.html.erb
2017-10-13 17:07:17 +06:30

51 lines
1.4 KiB
Plaintext

<!-- <div class="page-header">
<ul class="breadcrumb">
<li><a href="<%= %>">Home</a></li>
<li>Employee</li>
<span style="float: right">
<%= link_to t("views.btn.new"),new_settings_employee_path,:class => 'btn btn-primary btn-sm' %>
</span>
</ul>
</div> -->
<div class="page-header">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
<li class="breadcrumb-item">Employees</li>
<li class="breadcrumb-item active">Details</li>
<span class="float-right">
<%= link_to t('.new', :default => t("views.btn.new")), dashboard_path %>
</span>
</ol>
</div>
<br>
<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>Created At</th>
<th>Updated At</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr>
<td><%= @employee.name %></td>
<td><%= @employee.role %></td>
<td><%= @employee.created_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %></td>
<td><%= @employee.updated_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %></td>
<td>
<%= link_to t("views.btn.edit"), edit_settings_employee_path(@employee),:class => 'btn btn-primary btn-lg waves-effect' %>
</td>
</tr>
</tbody>
</table>
</div>
</div>