From 3955d57cf07f9679368706534655df27bb8d4921 Mon Sep 17 00:00:00 2001 From: phyusin Date: Tue, 29 May 2018 16:28:45 +0630 Subject: [PATCH] payment ui changes --- README.md | 3 +++ app/views/origami/others_payments/index.html.erb | 15 ++++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 538c08c4..5cf5715c 100755 --- a/README.md +++ b/README.md @@ -211,6 +211,9 @@ For Price 0 in receipt bill For Price 0 in receipt bill 2) settings/lookups => { type:order_by, name:Order By, value:name } +For Aston Request => Gift Voucher + 1) settings/payment_method_settings => {payment_method:'GiftVoucher', is_active:true, ...} + * ToDo list 1. Migration diff --git a/app/views/origami/others_payments/index.html.erb b/app/views/origami/others_payments/index.html.erb index 83f866fa..b77e607e 100755 --- a/app/views/origami/others_payments/index.html.erb +++ b/app/views/origami/others_payments/index.html.erb @@ -11,16 +11,21 @@ -->
-
+
- <% @payment_method_setting.where("is_active = true").each do |payment_method|%> -
<%= payment_method.payment_method %>
+ <% @payment_method_setting.where("is_active = true").each_with_index do |payment_method, payment_index|%> + <% if payment_index > 0 && payment_index%3==0 %> +
+ <% end %> +
+
<%= payment_method.payment_method %>
+
<% end %>
- -
+ +
">