From db8ef08499bcc8e13da19c3f86cba8033ae6757f Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Wed, 15 Mar 2023 15:34:51 +0100 Subject: [PATCH] loca --- app/views/admin/research/journals/papers/_form.html.erb | 6 +++--- config/locales/research/en.yml | 2 ++ config/locales/research/fr.yml | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/views/admin/research/journals/papers/_form.html.erb b/app/views/admin/research/journals/papers/_form.html.erb index 6404c3b69..4769cdfe2 100644 --- a/app/views/admin/research/journals/papers/_form.html.erb +++ b/app/views/admin/research/journals/papers/_form.html.erb @@ -30,9 +30,9 @@ } %> <%= f.association :volume, collection: @journal.volumes, label: Research::Journal::Volume.model_name.human %> <%= f.input :published %> - <%= f.input :published_at, html5: true %> - <%= f.input :accepted_at, html5: true %> - <%= f.input :received_at, html5: true %> + <%= f.input :published_at, html5: true, as: :date %> + <%= f.input :accepted_at, html5: true, as: :date %> + <%= f.input :received_at, html5: true, as: :date %> <%= f.input :keywords, as: :text, input_html: { rows: 2 } %> <%= f.association :people, collection: current_university.people.researchers.ordered, as: :check_boxes %> <%= f.association :kind, collection: @journal.kinds.ordered if @journal.kinds.any? %> diff --git a/config/locales/research/en.yml b/config/locales/research/en.yml index b38348b1a..0194e6b2b 100644 --- a/config/locales/research/en.yml +++ b/config/locales/research/en.yml @@ -61,6 +61,8 @@ en: pdf: PDF published: Published? published_at: Published at + accepted_at: Accepted at + received_at: Received at references: References kind: Kind of paper people: Authors diff --git a/config/locales/research/fr.yml b/config/locales/research/fr.yml index 230046973..662de36a6 100644 --- a/config/locales/research/fr.yml +++ b/config/locales/research/fr.yml @@ -62,6 +62,8 @@ fr: pdf: PDF published: Publié ? published_at: Publié le + accepted_at: Accepté le + received_at: Reçu le references: Références kind: Type de papier people: Auteur·e·s -- GitLab