update confirm box

This commit is contained in:
Aung Myo
2017-10-19 18:17:56 +06:30
parent 034685e1e9
commit 78c6304748
21 changed files with 364 additions and 556 deletions

View File

@@ -1,4 +1,4 @@
<!-- Search Bar -->
Search Bar -->
<!-- <div class="search-bar">
<div class="search-icon">
<i class="material-icons">search</i>
@@ -20,27 +20,26 @@
<span class="navbar-brand-txt">SX Restaurant</span>
</a>
</div>
<div class="navbar-right">
<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<span>Admin</span>
<!-- <i class="material-icons">keyboard_arrow_down</i> -->
<!-- Start Delete confirrm text !-->
<span class="hidden" id="delete_text">
<h6>Are you sure you want to Logout ?</h6>
<!-- <h6>This action can't be undo. </h6> -->
</span>
<div class="navbar-right">
<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<% if current_login_employee %>
<span><%= current_login_employee.name %></span>
<% end %>
</a>
<ul class="dropdown-menu">
<!-- For Translation
<li>
<div class="switch">
<label>
<input type="checkbox" id="localize">
မြန်မာ
</label>
</div>
</li> -->
<li>
<%= link_to (t :logout),logout_path, method: :delete, data: {confirm: 'Are you sure?'} %>
<!-- <form action="<%=logout_path%>" method="DELETE">
<button type="text" class="delete" value="x" >DELETE</button>
</form> -->
<!-- <a href="<%= logout_path %>"><i class="material-icons">input</i>Sign Out</a> -->
<%if current_login_employee.role !="waiter" %>
<%= link_to (t :logout),logout_path, method: :delete, data: {confirm: 'Are you sure?'} %>
<%end%>
<p class="delete" style="" data-ref="<%=logout_path%>" data-method="delete">Logout</a>
</li>
</ul>
<a href="javascript:void(0);" class="js-right-sidebar" data-close="true">
@@ -51,3 +50,7 @@
</nav>
<!-- #Top Bar
<!-- <form action="<%=logout_path%>" method="DELETE">
<button type="text" class="delete" value="x" >DELETE</button>
</form> -->
<!-- <a href="<%= logout_path %>"><i class="material-icons">input</i>Sign Out</a>