From c82540986cd7ffef655d5725f20df8ad5341bee8 Mon Sep 17 00:00:00 2001 From: echarp Date: Tue, 5 Feb 2019 15:06:47 +0100 Subject: [PATCH] Helper added to the repetition rule, on the nth day --- app/views/events/_form.html.haml | 4 ++-- config/locales/views/en.yml | 7 +++++-- config/locales/views/fr.yml | 8 +++++--- config/locales/views/pt-BR.yml | 7 +++++-- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/app/views/events/_form.html.haml b/app/views/events/_form.html.haml index f8d6445e..ecfade43 100644 --- a/app/views/events/_form.html.haml +++ b/app/views/events/_form.html.haml @@ -73,10 +73,10 @@ = f.text_field :tag_list, value: f.object.tag_list.to_s - unless @event.moderated? - .field.repeat{ title: t('.rule_helper') } + .field.repeat{ title: t('.repeat_helper') } = f.label :repeat = f.number_field :repeat, in: 0..40 - .field.rule.required + .field.rule.required{ title: t('.rule_helper') } = f.label :rule %span.radios - Event::RULES.each do |rule| diff --git a/config/locales/views/en.yml b/config/locales/views/en.yml index 5b5a1b01..0880cb63 100644 --- a/config/locales/views/en.yml +++ b/config/locales/views/en.yml @@ -86,8 +86,6 @@ it more readable or agreable." ok: Your event was updated form: title_helper: No address nor date, please - rule_helper: Repeated events will be generated during validation. You - will receive by mail all edition and cancellation links description_helper: You can copy-paste another page here address_helper: The address and city generate a [ map](http://www.openstreetmap.org){:target="_blank"} @@ -101,6 +99,11 @@ it more readable or agreable." contact's will be used tags_helper: Separated with spaces, contain letters, numbers and hyphens. Add the event's organisation(s), but not the city or region. + repeat_helper: Repeated events will be generated during validation. You + will receive by mail all edition and cancellation links + rule_helper: The "Nth day of the month", for example "1st thursday of the + month" ou "3rd saturday of the month", is deducted from the very first + event save: Validate visualise: Visualise cancel: diff --git a/config/locales/views/fr.yml b/config/locales/views/fr.yml index c3e89802..5f38d0d7 100644 --- a/config/locales/views/fr.yml +++ b/config/locales/views/fr.yml @@ -96,9 +96,6 @@ l’évènement pour la rendre plus complète, plus lisible ou plus attrayante." ok: Votre événement a été mis à jour form: title_helper: Ni lieu ni date, SVP - rule_helper: Les événements répétés seront générés lors de la - validation. Vous recevrez par mail tous les liens d'édition et - d'annulation description_helper: Vous pouvez copier-coller une autre page web ici address_helper: L'adresse et la ville sont utilisées pour afficher une [ carte](http://www.openstreetmap.org){:target="_blank"} @@ -113,6 +110,11 @@ l’évènement pour la rendre plus complète, plus lisible ou plus attrayante." tags_helper: Séparés par des espaces, constitués de lettres, chiffres et tirets. Ajoutez le nom de la ou des organisations de l'événement, mais pas de ville ou région. + repeat_helper: Les événements répétés seront générés lors de la + validation. Vous recevrez par mail tous les liens d'édition et + d'annulation + rule_helper: Le "Nème jour du mois", par exemple "1er jeudi du mois" ou + "3ème samedi du mois", est déduit à partir du tout premier évènement save: Valider visualise: Visualiser cancel: diff --git a/config/locales/views/pt-BR.yml b/config/locales/views/pt-BR.yml index dd6d7c5e..6c167fd2 100644 --- a/config/locales/views/pt-BR.yml +++ b/config/locales/views/pt-BR.yml @@ -87,8 +87,6 @@ completa, deixando o texto mais legível e agradável. ok: Seu evento foi atualizado form: title_helper: Menos de 5 palavras, sem endereço ou data - rule_helper: Eventos repetidos serão gerados durante a aprovação. Você - receberá por e-mail os links para edição ou cancelamento description_helper: Você pode copiar o conteúdo de outra página aqui address_helper: Será gerado um mapa associado a cidade no [OpenStreetMap](http://www.openstreetmap.org){:target="_blank"}, e será @@ -102,6 +100,11 @@ completa, deixando o texto mais legível e agradável. informado, será usado o e-mail do contato informado acima tags_helper: Separado por espaço, contendo letras, número e hífens. Para associar este evento a uma organização, adicione o nome igual ao que está cadastrado. Por exemplo, se a organização é Curitiba Livre, coloque desta forma Curitiba-Livre. Não coloque a cidade ou o estado como tags. + repeat_helper: Eventos repetidos serão gerados durante a aprovação. Você + receberá por e-mail os links para edição ou cancelamento + rule_helper: The "Nth day of the month", for example "1st thursday of the + month" ou "3rd saturday of the month", is deducted from the very first + event save: Enviar visualise: Visualizar cancel: