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"> <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,6 +25,7 @@
<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"%>