From 06eb56acf44cbfb7e2c2a19cfa36a810e1d854c9 Mon Sep 17 00:00:00 2001 From: Viehlieb <3feuerba@informatik.uni-hamburg.de> Date: Thu, 23 Dec 2021 01:32:43 +0100 Subject: [PATCH] add tax_number, payment_method and automatic invoice options to be editable in admin configs --- app/views/admin/configs/_tab_foodcoop.html.haml | 1 + app/views/admin/configs/_tab_payment.html.haml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/app/views/admin/configs/_tab_foodcoop.html.haml b/app/views/admin/configs/_tab_foodcoop.html.haml index 5aea80c2..efea4d81 100644 --- a/app/views/admin/configs/_tab_foodcoop.html.haml +++ b/app/views/admin/configs/_tab_foodcoop.html.haml @@ -7,4 +7,5 @@ = config_input c, :country, as: :string, input_html: {class: 'input-xlarge'} = config_input c, :email, required: true, input_html: {class: 'input-xlarge'} = config_input c, :phone, input_html: {class: 'input-medium'} + = config_input c, :tax_number, input_html: {class: 'input-medium'} = config_input form, :homepage, required: true, as: :url, input_html: {class: 'input-xlarge'} diff --git a/app/views/admin/configs/_tab_payment.html.haml b/app/views/admin/configs/_tab_payment.html.haml index 3fd7ca0a..de7ea627 100644 --- a/app/views/admin/configs/_tab_payment.html.haml +++ b/app/views/admin/configs/_tab_payment.html.haml @@ -13,6 +13,9 @@ = config_input form, :charge_members_manually, as: :boolean = config_input form, :use_iban, as: :boolean = config_input form, :use_self_service, as: :boolean += form.fields_for :group_order_invoices do |field| + = config_input field, :use, as: :boolean + = config_input field, :payment_method, as: :string, input_html: {class: 'input-mini'} %h4= t '.schedule_title' = form.simple_fields_for :order_schedule do |fields|