change UI for logout
This commit is contained in:
@@ -30,9 +30,10 @@
|
|||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li>
|
<li>
|
||||||
<%if current_login_employee.role !="waiter" %>
|
<%if current_login_employee.role !="waiter" %>
|
||||||
<a class="delete waves-effect waves-block" style="padding:0.5rem 1rem; margin-bottom: 0rem;" data-ref="<%=logout_path%>" data-method="delete">
|
<p class="delete waves-effect waves-block p-l-30 m-t-15" data-ref="<%=logout_path%>" data-method="delete">
|
||||||
<i class="material-icons m-t-10">exit_to_app</i> Logout
|
<i class="material-icons">exit_to_app</i>
|
||||||
</a>
|
<span class="font-20 m-b-10">Logout</span>
|
||||||
|
</p>
|
||||||
<span class="hidden" id="delete_text">
|
<span class="hidden" id="delete_text">
|
||||||
<h6>Are you sure you want to Logout ?</h6>
|
<h6>Are you sure you want to Logout ?</h6>
|
||||||
<!-- <h6>This action can't be undo. </h6> -->
|
<!-- <h6>This action can't be undo. </h6> -->
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-8 col-md-8 col-sm-8">
|
<div class="col-lg-8 col-md-8 col-sm-8">
|
||||||
|
<div class="card">
|
||||||
<div class="main-box-body clearfix" id="order-detail-slimscroll" style="">
|
<div class="main-box-body clearfix" id="order-detail-slimscroll" style="">
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table id="origami-crm-table" class="table table-striped">
|
<table id="origami-crm-table" class="table table-striped">
|
||||||
@@ -53,12 +53,12 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Select</th>
|
<th></th>
|
||||||
<th>Sr.no</th>
|
<th><%= t("views.right_panel.detail.sr_no") %></th>
|
||||||
<th>Name</th>
|
<th><%= t("views.right_panel.detail.name") %></th>
|
||||||
<th>Company</th>
|
<th><%= t("views.right_panel.detail.card_no") %></th>
|
||||||
<th>Contact no</th>
|
<th><%= t("views.right_panel.detail.contact_no") %></th>
|
||||||
<th>Email</th>
|
<th><%= t("views.right_panel.detail.email") %></th>
|
||||||
<!-- <th>Paypar No</th> -->
|
<!-- <th>Paypar No</th> -->
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -96,12 +96,13 @@
|
|||||||
<%= paginate @crm_customers %>
|
<%= paginate @crm_customers %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <div class="col-lg-4 col-md-4 col-sm-4" style="min-height:600px; max-height:600px; overflow-x:scroll"> -->
|
<!-- <div class="col-lg-4 col-md-4 col-sm-4" style="min-height:600px; max-height:600px; overflow-x:scroll"> -->
|
||||||
<div class="col-lg-3 col-md-3 col-sm-3" >
|
<div class="col-lg-3 col-md-3 col-sm-3" >
|
||||||
<div id="custom-slimscroll">
|
<div class="card">
|
||||||
|
<div class="body" id="custom-slimscroll">
|
||||||
<%= simple_form_for @crm_customer,:url => crm_customers_path, :method => :post do |f| %>
|
<%= simple_form_for @crm_customer,:url => crm_customers_path, :method => :post do |f| %>
|
||||||
|
|
||||||
<span class="patch_method"></span>
|
<span class="patch_method"></span>
|
||||||
@@ -111,15 +112,15 @@
|
|||||||
<%= f.error_notification %>
|
<%= f.error_notification %>
|
||||||
<%= f.hidden_field :id, :class => "form-control col-md-6 " %>
|
<%= f.hidden_field :id, :class => "form-control col-md-6 " %>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Salutation :</label><br>
|
<label><%= t("views.right_panel.detail.salutation") %> :</label><br>
|
||||||
<label class="font-13">Mr</label>
|
<label class="font-15"><%= t("views.right_panel.detail.mr") %>
|
||||||
<%= f.radio_button :salutation,"Mr", :class => "salutation mr", :value=>"Mr"%>
|
<%= f.radio_button :salutation,"Mr", :class => "salutation mr", :value=>"Mr"%></label>
|
||||||
<label class="m-l--20">Miss</label>
|
<label class="font-15 m-l-20"><%= t("views.right_panel.detail.miss") %>
|
||||||
<%= f.radio_button :salutation,"Mrs", :class => "salutation mrs", :value=>"Mrs"%>
|
<%= f.radio_button :salutation,"Mrs", :class => "salutation mrs", :value=>"Mrs"%></label>
|
||||||
<label class="m-l--20">Mrs</label>
|
<label class="font-15 m-l-20"><%= t("views.right_panel.detail.mrs") %>
|
||||||
<%= f.radio_button :salutation,"Miss", :class => "salutation miss", :value=>"Miss"%>
|
<%= f.radio_button :salutation,"Miss", :class => "salutation miss", :value=>"Miss"%></label>
|
||||||
<label class="m-l--20">Mdm</label>
|
<label class="font-15 m-l-20"><%= t("views.right_panel.detail.mdm") %>
|
||||||
<%= f.radio_button :salutation,"Mdm", :class => "salutation mdm", :value=>"Mdm"%>
|
<%= f.radio_button :salutation,"Mdm", :class => "salutation mdm", :value=>"Mdm"%></label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group <%= (flash["errors"]) ? "has-error" : "" %>">
|
<div class="form-group <%= (flash["errors"]) ? "has-error" : "" %>">
|
||||||
@@ -134,11 +135,11 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Gender :</label><br>
|
<label><%= t("views.right_panel.detail.gender") %> :</label><br>
|
||||||
<label>Male</label>
|
<label><%= t("views.right_panel.detail.male") %>
|
||||||
<%= f.radio_button :gender,"Male", :class => "gender male", :value=>"Male", :style=>"width: 30px"%>
|
<%= f.radio_button :gender,"Male", :class => "gender male", :value=>"Male", :style=>"width: 30px"%></label>
|
||||||
<label>Female</label>
|
<label><%= t("views.right_panel.detail.female") %>
|
||||||
<%= f.radio_button :gender,"Female", :class => "gender female", :value=>"Female", :style=>"width: 30px"%>
|
<%= f.radio_button :gender,"Female", :class => "gender female", :value=>"Female", :style=>"width: 30px"%></label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -180,16 +181,16 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Sr.No</label>
|
<label><%= t("views.right_panel.detail.sr_no") %></label>
|
||||||
<input type="text" name="" value="<%=@count_customer%>" class="form-control" readonly="true">
|
<input type="text" name="" value="<%=@count_customer%>" class="form-control" readonly="true">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Date Of Birth</label>
|
<label><%= t("views.right_panel.detail.date_of_birth") %></label>
|
||||||
<%= f.text_field :date_of_birth,:value=>"01-01-1990",:class=>"form-control datepicker"%>
|
<%= f.text_field :date_of_birth,:value=>"01-01-1990",:class=>"form-control datepicker"%>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Select Customer Type</label>
|
<label><%= t("views.right_panel.detail.select_customer_type") %></label>
|
||||||
<select class="form-control col-md-12" id="customer_type" name="customer[customer_type]" style="height: 40px" >
|
<select class="form-control col-md-12" id="customer_type" name="customer[customer_type]" style="height: 40px" >
|
||||||
<% Lookup.where("lookup_type = ?", "customer_type" ).each do |ct| %>
|
<% Lookup.where("lookup_type = ?", "customer_type" ).each do |ct| %>
|
||||||
<option value="<%= ct.value %>">
|
<option value="<%= ct.value %>">
|
||||||
@@ -212,7 +213,7 @@
|
|||||||
<% end -%>
|
<% end -%>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Paypar Account No:</label>
|
<label><%= t("views.right_panel.detail.paypar_account_no") %>:</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input type="text" class="form-control" id="paypar_account_no" name="customer[paypar_account_no]" readonly />
|
<input type="text" class="form-control" id="paypar_account_no" name="customer[paypar_account_no]" readonly />
|
||||||
<div class="input-group-addon"><span class="fa fa-credit-card"></span></div>
|
<div class="input-group-addon"><span class="fa fa-credit-card"></span></div>
|
||||||
@@ -220,9 +221,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Select Member Group</label>
|
<label><%= t("views.right_panel.detail.select_membership_group") %></label>
|
||||||
<select class="form-control col-md-12" name="member_group_id">
|
<select class="form-control col-md-12" name="member_group_id">
|
||||||
<option value="">Select Membership Group</option>
|
<option value=""><%= t("views.right_panel.detail.select_membership_group") %></option>
|
||||||
<% Lookup.where("lookup_type = ?", "member_group_type" ).each do |member| %>
|
<% Lookup.where("lookup_type = ?", "member_group_type" ).each do |member| %>
|
||||||
<option value="<%= member.value %>">
|
<option value="<%= member.value %>">
|
||||||
<%= member.name %></option>
|
<%= member.name %></option>
|
||||||
@@ -231,12 +232,13 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<%= f.submit "Submit",:class => 'btn btn-primary btn-lg waves-effect', :id => 'submit_customer' %>
|
<%= f.submit t("views.btn.submit"),:class => 'btn btn-primary btn-lg waves-effect', :id => 'submit_customer' %>
|
||||||
<!-- <%= f.button :submit, "Update",:class => 'btn bg-blue btn-block', :disabled =>'', :id => 'update_customer' %> -->
|
<!-- <%= f.button :submit, "Update",:class => 'btn bg-blue btn-block', :disabled =>'', :id => 'update_customer' %> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<%end%>
|
<%end%>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<!-- Column Three -->
|
<!-- Column Three -->
|
||||||
<div class="col-lg-1 col-md-1 col-sm-1">
|
<div class="col-lg-1 col-md-1 col-sm-1">
|
||||||
<button type="button" class="btn btn-default btn-block" id='back'><i class="material-icons">reply</i>Back</button>
|
<button type="button" class="btn btn-default btn-block" id='back'><i class="material-icons">reply</i>Back</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user