employee login and authentication with session

This commit is contained in:
Min Zeya Phyo
2017-04-14 22:47:44 +06:30
parent c1e61c1a39
commit db75780267
27 changed files with 137 additions and 96 deletions

View File

@@ -13,20 +13,19 @@
<table class="table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Role</th>
<th colspan="3"></th>
<th style="width:40%">Name</th>
<th style="width:40%">Role</th>
<th style="width:20%">Action</th>
</tr>
</thead>
<tbody>
<% @employees.each do |employee| %>
<tr>
<td><%= employee.name %></td>
<td><%= link_to employee.name, employee[:setting] %></td>
<td><%= employee.role %></td>
<td><%= link_to 'Show', employee[:setting] %></td>
<td><%= link_to 'Edit', edit_settings_employee_path(employee) %></td>
<td><%= link_to 'Destroy', employee[:setting], method: :delete, data: { confirm: 'Are you sure?' } %></td>
<td>
<%= link_to 'Edit', edit_settings_employee_path(employee) %> | <%= link_to 'Destroy', employee[:setting], method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>