UI change

This commit is contained in:
yamin
2017-10-23 11:38:10 +06:30
parent 4874bb135c
commit 1aea52619a
4731 changed files with 19031 additions and 149 deletions

14
app/views/settings/employees/show.html.erb Normal file → Executable file
View File

@@ -29,7 +29,7 @@
<th>Role</th>
<th>Created At</th>
<th>Updated At</th>
<th>Action</th>
<th>Actions</th>
</tr>
</thead>
@@ -41,6 +41,18 @@
<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' %>
<%if @employee.role != "administrator"%>
<!-- <button class="delete btn btn-danger btn-sm waves-effect" data-ref="<%=settings_employee_path(@employee)%>" data-method="delete">
<%= t("views.btn.delete") %>
</button>
<span class="hidden" id="delete_text">
<h6>Are you sure you want to delete this row ?</h6>
<h6>This action can't be undo. </h6>
</span> -->
<%= link_to t("views.btn.delete"), settings_employee_path(@item, @employee ), method: :delete, data: { confirm: 'Are you sure?' },:class => 'btn btn-danger btn-lg waves-effect' %>
<%end%>
</td>
</tr>
</tbody>