addCreatedAtInEmployee

This commit is contained in:
yamin
2017-08-09 15:25:16 +06:30
parent a03e38179f
commit 1b14589927

View File

@@ -13,8 +13,9 @@
<table class="table table-striped">
<thead>
<tr>
<th style="width:40%">Name</th>
<th style="width:40%">Role</th>
<th style="width:20%">Name</th>
<th style="width:20%">Role</th>
<th style="width:20%">Created At</th>
<th style="width:20%">Action</th>
</tr>
</thead>
@@ -24,13 +25,14 @@
<tr>
<td><%= link_to employee.name,settings_employee_path(employee) %></td>
<td><%= employee.role %></td>
<td><%= employee.created_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %></td>
<td>
<%= link_to 'Edit', edit_settings_employee_path(employee) %>
<%= link_to 'Edit', edit_settings_employee_path(employee) %>
<%if employee.role != "administrator"%>
| <%= link_to 'Destroy', settings_employee_path(employee) , method: :delete, data: { confirm: 'Are you sure?' } %>
<%end%>
<%end%>
</td>
</tr>
<% end %>