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