From abca17756f7bb488db32e157d4044247a2216027 Mon Sep 17 00:00:00 2001 From: phyusin Date: Thu, 23 Nov 2017 10:14:06 +0630 Subject: [PATCH 1/3] change UI for CRM/Customers --- app/views/crm/customers/_new_form.html.erb | 16 ++++++++-------- app/views/crm/customers/index.html.erb | 22 +++++++++------------- 2 files changed, 17 insertions(+), 21 deletions(-) diff --git a/app/views/crm/customers/_new_form.html.erb b/app/views/crm/customers/_new_form.html.erb index 218a7f66..2359ad57 100755 --- a/app/views/crm/customers/_new_form.html.erb +++ b/app/views/crm/customers/_new_form.html.erb @@ -5,16 +5,16 @@

-
"> @@ -60,7 +60,7 @@ <% str="[\"#{msg['contact_no']}\"]" str.gsub!('["', '') str.gsub!('"]', '') %> - <%= str %> + <%= str %> <% end %>
@@ -71,7 +71,7 @@ <% str="[\"#{msg['email']}\"]" str.gsub!('["', '') str.gsub!('"]', '') %> - <%= str %> + <%= str %> <% end %> @@ -111,7 +111,7 @@ <% str="[\"#{msg['card_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 bf98b80e..168afe28 100755 --- a/app/views/crm/customers/index.html.erb +++ b/app/views/crm/customers/index.html.erb @@ -88,22 +88,18 @@
-
-
-
-
- <%= render 'new_form', crm_customer: @crm_customer, taxes: @taxes %> -
-
+
+
+ <%= render 'new_form', crm_customer: @crm_customer, taxes: @taxes %>
- +
diff --git a/app/views/origami/in_duties/assign_in_duty.html.erb b/app/views/origami/in_duties/assign_in_duty.html.erb index 16e32dc7..f24b16d9 100755 --- a/app/views/origami/in_duties/assign_in_duty.html.erb +++ b/app/views/origami/in_duties/assign_in_duty.html.erb @@ -4,31 +4,34 @@
<%= simple_form_for([:origami,@in_duty]) do |f| %> - <%= f.error_notification %> - -
- - <%= @table.name %> -
-
- - - <%= f.collection_select :commissioner_ids, Commissioner.all, :id, :name, {prompt: 'Select Commissioner'}, {class: 'form-control'} %>

- - <%= f.text_field :in_time, :value=>DateTime.now.strftime("%Y-%m-%d / %I:%M %p"),:class=>"form-control datepicker"%>
- - <%= f.text_field :out_time, :value=>DateTime.now.strftime("%Y-%m-%d / %I:%M %p"),:class=>"form-control datepicker"%> -

-
-
-
- <%= link_to 'Back', origami_index_in_duty_path(@table.id), class: 'btn bg-default' %> -
-
- -
-
-
+
+
+ <%= f.error_notification %> +
+ + <%= @table.name %> +
+
+ + + <%= f.collection_select :commissioner_ids, Commissioner.all, :id, :name, {prompt: 'Select Commissioner'}, {class: 'form-control'} %>

+ + <%= f.text_field :in_time, :value=>DateTime.now.strftime("%Y-%m-%d / %I:%M %p"),:class=>"form-control datepicker"%>
+ + <%= f.text_field :out_time, :value=>DateTime.now.strftime("%Y-%m-%d / %I:%M %p"),:class=>"form-control datepicker"%> +

+
+
+
+ <%= link_to 'Back', origami_index_in_duty_path(@table.id), class: 'btn bg-default' %> +
+
+ +
+
+
+
+
<% end %>