Add summary field to the admin form for Legislative Processes, plus placeholder translations
This commit is contained in:
@@ -35,8 +35,7 @@ class Admin::Legislation::ProcessesController < Admin::Legislation::BaseControll
|
|||||||
def process_params
|
def process_params
|
||||||
params.require(:legislation_process).permit(
|
params.require(:legislation_process).permit(
|
||||||
:title,
|
:title,
|
||||||
:description_summary,
|
:summary,
|
||||||
:target_summary,
|
|
||||||
:description,
|
:description,
|
||||||
:target,
|
:target,
|
||||||
:how_to_participate,
|
:how_to_participate,
|
||||||
|
|||||||
@@ -164,6 +164,19 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="small-12 medium-4 column">
|
||||||
|
<%= f.label :summary %>
|
||||||
|
<small><%= t('admin.legislation.processes.form.use_markdown') %></small>
|
||||||
|
</div>
|
||||||
|
<div class="small-12 medium-8 column">
|
||||||
|
<%= f.text_area :summary,
|
||||||
|
label: false,
|
||||||
|
rows: 2,
|
||||||
|
placeholder: t('admin.legislation.processes.form.summary_placeholder') %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="small-12 medium-4 column">
|
<div class="small-12 medium-4 column">
|
||||||
<%= f.label :description %>
|
<%= f.label :description %>
|
||||||
|
|||||||
@@ -206,6 +206,7 @@ en:
|
|||||||
end: End
|
end: End
|
||||||
use_markdown: Use Markdown to format the text
|
use_markdown: Use Markdown to format the text
|
||||||
title_placeholder: The title of the process
|
title_placeholder: The title of the process
|
||||||
|
summary_placeholder: Short summary of the description
|
||||||
description_placeholder: Add a description of the process
|
description_placeholder: Add a description of the process
|
||||||
target_placeholder: Describe who is the target of the process
|
target_placeholder: Describe who is the target of the process
|
||||||
how_to_participate_placeholder: Describe how to participate
|
how_to_participate_placeholder: Describe how to participate
|
||||||
|
|||||||
@@ -206,6 +206,7 @@ es:
|
|||||||
end: Fin
|
end: Fin
|
||||||
use_markdown: Usa Markdown para formatear el texto
|
use_markdown: Usa Markdown para formatear el texto
|
||||||
title_placeholder: Escribe el título del proceso
|
title_placeholder: Escribe el título del proceso
|
||||||
|
summary_placeholder: Resumen corto de la descripción
|
||||||
description_placeholder: Añade una descripción del proceso
|
description_placeholder: Añade una descripción del proceso
|
||||||
target_placeholder: Describe a quién va dirigido
|
target_placeholder: Describe a quién va dirigido
|
||||||
how_to_participate_placeholder: Describe cómo participar
|
how_to_participate_placeholder: Describe cómo participar
|
||||||
|
|||||||
Reference in New Issue
Block a user