From f3cf30d41788eb26ad2dfa8d11ed0f748ce5ce4d Mon Sep 17 00:00:00 2001 From: Felix Wolfsteller Date: Wed, 14 Oct 2020 20:48:24 +0200 Subject: [PATCH] style form i18n (#31) --- app/views/admin/styles/_form.html.haml | 4 ++++ config/locales/models.de.yml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/app/views/admin/styles/_form.html.haml b/app/views/admin/styles/_form.html.haml index 34da11a..ba63a9e 100644 --- a/app/views/admin/styles/_form.html.haml +++ b/app/views/admin/styles/_form.html.haml @@ -12,18 +12,22 @@ %li= message .field + -# i18n-tasks-use t('activerecord.attributes.style.name') = f.label :name = f.text_field :name .field + -# i18n-tasks-use t('activerecord.attributes.style.description') = f.label :description = f.text_field :description -#.field -# = f.label :start_date -# = f.date_field :start_date .field + -# i18n-tasks-use t('activerecord.attributes.style.image') = f.label :image = f.file_field :image, direct_upload: true .field + -# i18n-tasks-use t('activerecord.attributes.style.active') = f.label :active = f.check_box :active .actions diff --git a/config/locales/models.de.yml b/config/locales/models.de.yml index 31e318a..99e803f 100644 --- a/config/locales/models.de.yml +++ b/config/locales/models.de.yml @@ -50,6 +50,11 @@ de: name: Name note: Hinweis pricing_note: Hinweis zu Kosten + style: + name: Name + description: Beschreibung + image: Bild + active: Aktiv? site_setting: value: Wert user: