From 12483aba9777fa6a693a054510b4b000a0e25163 Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Mon, 26 Jun 2017 11:10:08 +0630 Subject: [PATCH] update crm customer --- app/views/crm/customers/_new_form.html.erb | 40 +++++++++------------ app/views/crm/customers/index.html.erb | 2 -- app/views/crm/customers/show.html.erb | 2 ++ app/views/origami/customers/index.html.erb | 42 +++++++--------------- 4 files changed, 31 insertions(+), 55 deletions(-) diff --git a/app/views/crm/customers/_new_form.html.erb b/app/views/crm/customers/_new_form.html.erb index eb121c14..d52c0456 100644 --- a/app/views/crm/customers/_new_form.html.erb +++ b/app/views/crm/customers/_new_form.html.erb @@ -11,24 +11,20 @@ <% str="[\"#{msg['name']}\"]" str.gsub!('["', '') str.gsub!('"]', '') %> - <%= str %> + <%= str %> <% end -%>

- - - - + + <%= f.radio_button :salutation,"Mr", :class => "salutation mr", :value=>"Mr", :style=>"width: 30px"%> + + <%= f.radio_button :salutation,"Mrs", :class => "salutation mrs", :value=>"Mrs", :style=>"width: 30px"%> + + <%= f.radio_button :salutation,"Miss", :class => "salutation miss", :value=>"Miss", :style=>"width: 30px"%> + + <%= f.radio_button :salutation,"Mdm", :class => "salutation mdm", :value=>"Mdm", :style=>"width: 30px"%>
"> @@ -37,18 +33,16 @@ <% str="[\"#{msg['name']}\"]" str.gsub!('["', '') str.gsub!('"]', '') %> - <%= str %> + <%= str %> <% end -%>

- - + + <%= f.radio_button :gender,"Male", :class => "gender male", :value=>"Male", :style=>"width: 30px"%> + + <%= f.radio_button :gender,"Female", :class => "gender female", :value=>"Female", :style=>"width: 30px"%>
@@ -62,7 +56,7 @@ <% str="[\"#{msg['company']}\"]" str.gsub!('["', '') str.gsub!('"]', '') %> - <%= str %> + <%= str %> <% end -%>
"> @@ -72,7 +66,7 @@ <% str="[\"#{msg['contact_no']}\"]" str.gsub!('["', '') str.gsub!('"]', '') %> - <%= str %> + <%= str %> <% end -%>
@@ -83,7 +77,7 @@ <% str="[\"#{msg['contact_no']}\"]" str.gsub!('["', '') str.gsub!('"]', '') %> - <%= str %> + <%= str %> <% end -%> diff --git a/app/views/crm/customers/index.html.erb b/app/views/crm/customers/index.html.erb index 3270262e..a5ce8550 100644 --- a/app/views/crm/customers/index.html.erb +++ b/app/views/crm/customers/index.html.erb @@ -130,10 +130,8 @@ $(document).on('click',".customer_tr",function(){ $('.selectpicker > option[value="'+data.membership_type+'"]').attr('selected','selected'); if (data.gender == 'Male') { $('.male').prop( "checked", true ) - $('.female').prop( "checked", false ) }else{ $('.female').prop( "checked", true ) - $('.male').prop( "checked", false ) } if(data.salutation == 'Mr') { diff --git a/app/views/crm/customers/show.html.erb b/app/views/crm/customers/show.html.erb index 0dead477..c6ec25c2 100644 --- a/app/views/crm/customers/show.html.erb +++ b/app/views/crm/customers/show.html.erb @@ -55,12 +55,14 @@
+ <% if @response["status"] == true && $response["data"] != "[]"%> <% if @response["status"] == true %> <% end %> + <% end %> diff --git a/app/views/origami/customers/index.html.erb b/app/views/origami/customers/index.html.erb index 2557e787..d1886423 100644 --- a/app/views/origami/customers/index.html.erb +++ b/app/views/origami/customers/index.html.erb @@ -88,18 +88,14 @@

- - - - + + <%= f.radio_button :salutation,"Mr", :class => "salutation mr", :value=>"Mr", :style=>"width: 30px"%> + + <%= f.radio_button :salutation,"Mrs", :class => "salutation mrs", :value=>"Mrs", :style=>"width: 30px"%> + + <%= f.radio_button :salutation,"Miss", :class => "salutation miss", :value=>"Miss", :style=>"width: 30px"%> + + <%= f.radio_button :salutation,"Mdm", :class => "salutation mdm", :value=>"Mdm", :style=>"width: 30px"%>
"> @@ -115,12 +111,10 @@

- - + + <%= f.radio_button :gender,"Male", :class => "gender male", :value=>"Male", :style=>"width: 30px"%> + + <%= f.radio_button :gender,"Female", :class => "gender female", :value=>"Female", :style=>"width: 30px"%>
@@ -327,16 +321,4 @@ }) -class CreateDiningQueues < ActiveRecord::Migration[5.1] - def change - create_table :dining_queues do |t| - t.string :name - t.string :contact_no - t.string :queue_no - t.string :status - t.references :dining_facility, foreign_key: true - t.timestamps - end - end -end
Membership TransactionsCurrent Balance : <%= @response["data"][0]["balance"]%>
Date Redeem