Finalize check fields
Some checks failed
/ Run tests (push) Failing after 4m20s
/ Build, push and deploy image (push) Has been skipped
/ Run system tests (push) Has been cancelled

This commit is contained in:
david 2024-09-11 20:44:33 +02:00
parent 63fc206c27
commit 174cf9f503
12 changed files with 73 additions and 34 deletions

View file

@ -6,6 +6,8 @@ module ApplicationHelper
delegate :filter_params, to: :controller
def multilang_form_field(form, attribute, as: :text_field)
return form.send(as, "#{attribute}_de")
col_width = as == :rich_text_area ? 12 : 12 / I18n.available_locales.count
tag.div(class: "row") do
fields = I18n.available_locales.map { _1.to_s.split("-").first }.map do |lang|