diff --git a/app/views/articles/_form.html.haml b/app/views/articles/_form.html.haml index ece82629..78dcdf7c 100644 --- a/app/views/articles/_form.html.haml +++ b/app/views/articles/_form.html.haml @@ -3,7 +3,7 @@ = f.hidden_field :supplier_id .modal-header = link_to t('ui.marks.close').html_safe, '#', class: 'close', data: {dismiss: 'modal'} - %h3= t '.title' + %h3= @article.new_record? ? t('.title_new') : t('.title_edit') .modal-body = f.input :availability = f.input :name diff --git a/config/locales/de.yml b/config/locales/de.yml index 336e60ff..a1a06ebc 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -347,7 +347,8 @@ de: unit_quantity_desc: Gebindegröße unit_quantity_short: GebGr form: - title: Neuen Artikel einfügen + title_edit: Artikel bearbeiten + title_new: Neuen Artikel einfügen import_search_results: action_import: importieren already_imported: schon importiert diff --git a/config/locales/en.yml b/config/locales/en.yml index f7d6a301..a48acd92 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -347,7 +347,8 @@ en: unit_quantity_desc: Unit quantity unit_quantity_short: Quantity form: - title: Add new article + title_edit: Edit article + title_new: Add new article import_search_results: action_import: import already_imported: already imported diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 1509dc31..2ce74783 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -347,7 +347,8 @@ fr: unit_quantity_desc: Unités par lot unit_quantity_short: U/L form: - title: Ajouter un nouvel article + title_edit: + title_new: Ajouter un nouvel article import_search_results: action_import: importer already_imported: déjà importé diff --git a/config/locales/nl.yml b/config/locales/nl.yml index 4ad4c336..9a4731a0 100644 --- a/config/locales/nl.yml +++ b/config/locales/nl.yml @@ -347,7 +347,8 @@ nl: unit_quantity_desc: Groothandelsverpakkingsgrootte unit_quantity_short: Gr.Eenh. form: - title: Nieuw artikel toevoegen + title_edit: Artikel bewerken + title_new: Nieuw artikel toevoegen import_search_results: action_import: importeren already_imported: reeds geïmporteerd