Change: フィールド入力フォームのデザイン改善 (#672)

* Change: フィールド入力フォームのデザイン改善

* 翻訳の置き場所変更
This commit is contained in:
KMY(雪あすか) 2024-03-26 20:36:34 +09:00 committed by GitHub
parent 31559f6b59
commit 116a6b50cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 19 additions and 3 deletions

View file

@ -28,10 +28,14 @@
%label= t('simple_form.labels.defaults.fields')
%span.hint= t('simple_form.hints.account.fields')
.row
%p.fields-label= t('simple_form.labels.account.fields.name')
%p.fields-label= t('simple_form.labels.account.fields.value')
= f.simple_fields_for :fields do |fields_f|
.row
= fields_f.input :name, placeholder: t('simple_form.labels.account.fields.name'), input_html: { maxlength: 255 }
= fields_f.input :value, placeholder: t('simple_form.labels.account.fields.value'), input_html: { maxlength: 255 }
= fields_f.input :name, placeholder: fields_f.index.zero? ? t("simple_form.labels.account.fields.examples.name_#{fields_f.index + 1}") : t('simple_form.labels.account.fields.name'), input_html: { maxlength: 255 }
= fields_f.input :value, placeholder: fields_f.index.zero? ? t("simple_form.labels.account.fields.examples.value_#{fields_f.index + 1}") : t('simple_form.labels.account.fields.value'), input_html: { maxlength: 255 }
.fields-row
.fields-row__column.fields-row__column-6