From 2154a614c230cf8f3223c93c93fd518bd0f1b6c1 Mon Sep 17 00:00:00 2001 From: decabeza Date: Thu, 8 Feb 2018 19:06:41 +0100 Subject: [PATCH] Adds new legislation processes section on help page --- app/views/pages/help/_menu.html.erb | 5 +++++ app/views/pages/help/_processes.html.erb | 20 ++++++++++++++++++++ app/views/pages/help/index.html.erb | 4 ++++ config/locales/en/pages.yml | 7 +++++++ config/locales/es/pages.yml | 7 +++++++ 5 files changed, 43 insertions(+) create mode 100644 app/views/pages/help/_processes.html.erb diff --git a/app/views/pages/help/_menu.html.erb b/app/views/pages/help/_menu.html.erb index fdc4d2c13..b9e5c3074 100644 --- a/app/views/pages/help/_menu.html.erb +++ b/app/views/pages/help/_menu.html.erb @@ -21,6 +21,11 @@ <%= link_to t("pages.help.menu.polls"), "#polls", class: "button hollow expanded" %> <% end %> + <% if feature?(:legislation) %> +
  • + <%= link_to t("pages.help.menu.processes"), "#processes", class: "button hollow expanded" %> +
  • + <% end %>
  • <%= link_to t("pages.help.menu.other"), "#other", class: "button hollow expanded" %>
  • diff --git a/app/views/pages/help/_processes.html.erb b/app/views/pages/help/_processes.html.erb new file mode 100644 index 000000000..f1be22747 --- /dev/null +++ b/app/views/pages/help/_processes.html.erb @@ -0,0 +1,20 @@ +
    +
    +

    + <%= t("pages.help.processes.title") %> +

    + +

    + <% link = link_to(t("pages.help.processes.link"), legislation_processes_path) %> + <%= t("pages.help.processes.description", link: link).html_safe %> +

    +
      +
    • + <% link = link_to(t("pages.help.processes.link"), legislation_processes_path) %> + <% sign_up_link = t("pages.help.processes.sign_up", org: setting['org_name']) %> + <% sign_up = link_to(sign_up_link, new_user_registration_path) %> + <%= t("pages.help.processes.feature", link: link, sign_up: sign_up).html_safe %> +
    • +
    +
    +
    diff --git a/app/views/pages/help/index.html.erb b/app/views/pages/help/index.html.erb index 3ab4ae595..c4ec61d40 100644 --- a/app/views/pages/help/index.html.erb +++ b/app/views/pages/help/index.html.erb @@ -33,6 +33,10 @@ <% if feature?(:polls) %> <%= render "pages/help/polls" %> <% end %> + + <% if feature?(:legislation) %> + <%= render "pages/help/processes" %> + <% end %>
    <%= render "pages/help/sidebar" %> diff --git a/config/locales/en/pages.yml b/config/locales/en/pages.yml index 349fe705c..3c605016f 100644 --- a/config/locales/en/pages.yml +++ b/config/locales/en/pages.yml @@ -13,6 +13,7 @@ en: budgets: "Participatory budgets" polls: "Polls" other: "Other information of interest" + processes: "Processes" debates: title: "Debates" description: "In the %{link} section you can present and share your opinion with other people on issues of concern to you related to the city. It is also a place to generate ideas that through the other sections of %{org} lead to concrete actions by the City Council." @@ -48,6 +49,12 @@ en: feature_1_link: "register in %{org_name}" feature_2: "All registered voters over the age of 16 can vote." feature_3: "The results of all votes are binding on the municipal government." + processes: + title: "Processes" + description: "In the %{link} section, citizens participate in the drafting and modification of regulations affecting the city and can give their opinion on municipal policies in previous debates." + link: "processes" + feature: "To participate in a process you have to %{sign_up} and check the %{link} page periodically to see which regulations and policies are being discussed and consulted." + sign_up: "sign up on %{org}" faq: title: "Technical problems?" description: "Read the FAQs and solve your questions." diff --git a/config/locales/es/pages.yml b/config/locales/es/pages.yml index 72a114863..76808faf6 100644 --- a/config/locales/es/pages.yml +++ b/config/locales/es/pages.yml @@ -13,6 +13,7 @@ es: budgets: "Presupuestos participativos" polls: "Votaciones" other: "Otra información de interés" + processes: "Procesos legislativos" debates: title: "Debates" description: "En la sección de %{link} puedes exponer y compartir tu opinión con otras personas sobre temas que te preocupan relacionados con la ciudad. También es un espacio donde generar ideas que a través de las otras secciones de %{org} lleven a actuaciones concretas por parte del Ayuntamiento." @@ -48,6 +49,12 @@ es: feature_1_link: "registrarte en %{org_name}" feature_2: "Pueden votar todas las personas empadronadas en la ciudad mayores de 16 años." feature_3: "Los resultados de todas las votaciones son vinculantes para el gobierno municipal." + processes: + title: "Procesos legislativos" + description: "En la sección de %{link} la ciudadanía participa en la elaboración y modificación de normativa que afecta a la ciudad y puede dar su opinión sobre las políticas municipales en debates previos." + link: "procesos legislativos" + feature: "Para participar en un proceso hay que %{sign_up} y consultar la página de %{link} periódicamente para saber qué normativas y políticas se están debatiendo y consultando." + sign_up: "registrarse en %{org}" faq: title: "¿Problemas técnicos?" description: "Lee las preguntas frecuentes y resuelve tus dudas."