add translations for ordergroup form

automatic_group_order_invoice
viehlieb 2023-11-19 12:04:24 +01:00
parent 06aa20ad0f
commit 636aad0b3e
3 changed files with 10 additions and 2 deletions

View File

@ -6,7 +6,7 @@
= f.input :contact_person
= f.input :contact_phone
= f.input :contact_address
= render 'shared/sepa_account_holder', f: f
= render 'sepa_account_holder', f: f
= render 'shared/custom_form_fields', f: f, type: :ordergroup
.fold-line
= f.input :break_start, as: :date_picker, label: Ordergroup.human_attribute_name('break')

View File

@ -1,5 +1,5 @@
= f.simple_fields_for :sepa_account_holder, @ordergroup.sepa_account_holder || @ordergroup.build_sepa_account_holder do |sepa_f|
= sepa_f.input :user_id, collection: f.object.users.map { |user| [user.name, user.id, { 'data-iban' => user.iban, 'data-bic' => user.bic }] }, selected: sepa_f.object.user_id, as: :select, label: 'SEPA Account Holder', include_blank: true, input_html: { id: 'user_id_select' }
= sepa_f.input :user_id, collection: f.object.users.map { |user| [user.name, user.id, { 'data-iban' => user.iban, 'data-bic' => user.bic }] }, selected: sepa_f.object.user_id, as: :select, label: I18n.t('activerecord.attributes.sepa_account_holder.holder' ) , include_blank: true, input_html: { id: 'user_id_select' }, hint: I18n.t('activerecord.attributes.sepa_account_holder.hint')
= sepa_f.hidden_field :group_id, value: @ordergroup.id
= sepa_f.input :iban
= sepa_f.input :bic

View File

@ -189,6 +189,13 @@ de:
last_user_activity: Zuletzt aktiv
name: Name
user_tokens: Mitglieder
sepa_account_holder:
bic: BIC
holder: SEPA Kontoinhaber*in
iban: IBAN
mandate_id: Mandatsreferenz-ID
mandate_date_of_signature: Datum der Mandatsunterzeichnung
hint: "Achtung: Die IBAN und BIC werden automatisch eingefüllt, sobald SEPA Kontoinhaber*in ausgewählt wird. Vorige Eintragungen werden überschrieben."
stock_article:
available: Verfügbar
price: Nettopreis
@ -294,6 +301,7 @@ de:
ordergroup:
one: Bestellgruppe
other: Bestellgruppen
sepa_account_holder: SEPA Kontoinhaber*in
stock_article: Lagerartikel
stock_taking: Inventur
supplier: Lieferant