From f220c477c17743381987d77a38785ae6311de555 Mon Sep 17 00:00:00 2001 From: Angel Perez Date: Fri, 18 May 2018 14:04:59 -0400 Subject: [PATCH] Remove `proposals_description` attr from Admin::Legislation::Processes module --- .../admin/legislation/processes_controller.rb | 1 - .../admin/legislation/proposals/_form.html.erb | 13 ------------- config/locales/en/admin.yml | 3 --- config/locales/es/admin.yml | 3 --- 4 files changed, 20 deletions(-) diff --git a/app/controllers/admin/legislation/processes_controller.rb b/app/controllers/admin/legislation/processes_controller.rb index 47c7c34c0..976318958 100644 --- a/app/controllers/admin/legislation/processes_controller.rb +++ b/app/controllers/admin/legislation/processes_controller.rb @@ -60,7 +60,6 @@ class Admin::Legislation::ProcessesController < Admin::Legislation::BaseControll :draft_publication_enabled, :result_publication_enabled, :published, - :proposals_description, :custom_list, documents_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy] ) diff --git a/app/views/admin/legislation/proposals/_form.html.erb b/app/views/admin/legislation/proposals/_form.html.erb index dd12f9492..cca190440 100644 --- a/app/views/admin/legislation/proposals/_form.html.erb +++ b/app/views/admin/legislation/proposals/_form.html.erb @@ -15,19 +15,6 @@ <% end %> -
-
- <%= label_tag t('admin.legislation.proposals.form.header_information') %> - <%= t('admin.legislation.proposals.form.header_information_description') %> -
-
- <%= f.text_area :proposals_description, - label: false, - rows: 5, - placeholder: t('admin.legislation.proposals.form.header_information_placeholder') %> -
-
-
<%= label_tag t('admin.legislation.proposals.form.custom_categories') %> diff --git a/config/locales/en/admin.yml b/config/locales/en/admin.yml index 0292df944..3f7c22af5 100644 --- a/config/locales/en/admin.yml +++ b/config/locales/en/admin.yml @@ -369,9 +369,6 @@ en: title: Proposals back: Back form: - header_information: Information header - header_information_description: Provide information about the proposals. This text will be displayed as an alert in the Proposals section inside this Process. Use Markdown to format the text. - header_information_placeholder: Add information for the proposals' header custom_categories: Categories custom_categories_description: Categories that users can select creating the proposal. draft_versions: diff --git a/config/locales/es/admin.yml b/config/locales/es/admin.yml index 5d44c9a17..441bb23e6 100644 --- a/config/locales/es/admin.yml +++ b/config/locales/es/admin.yml @@ -369,9 +369,6 @@ es: title: Propuestas back: Volver form: - header_information: Encabezado de información - header_information_description: Proporciona información sobre el recorrido de las propuestas. Este texto se mostrará como una alerta en el encabezado de la sección de Propuestas dentro de este proceso. Usa Markdown para formatear el texto. - header_information_placeholder: Añade información para el encabezado de las las propuestas custom_categories: Categorías custom_categories_description: Categorías que el usuario puede seleccionar al crear la propuesta. draft_versions: