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
|
||||
params.require(:legislation_process).permit(
|
||||
:title,
|
||||
:description_summary,
|
||||
:target_summary,
|
||||
:summary,
|
||||
:description,
|
||||
:target,
|
||||
:how_to_participate,
|
||||
|
||||
@@ -164,6 +164,19 @@
|
||||
</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="small-12 medium-4 column">
|
||||
<%= f.label :description %>
|
||||
|
||||
@@ -206,6 +206,7 @@ en:
|
||||
end: End
|
||||
use_markdown: Use Markdown to format the text
|
||||
title_placeholder: The title of the process
|
||||
summary_placeholder: Short summary of the description
|
||||
description_placeholder: Add a description of the process
|
||||
target_placeholder: Describe who is the target of the process
|
||||
how_to_participate_placeholder: Describe how to participate
|
||||
|
||||
@@ -206,6 +206,7 @@ es:
|
||||
end: Fin
|
||||
use_markdown: Usa Markdown para formatear el texto
|
||||
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
|
||||
target_placeholder: Describe a quién va dirigido
|
||||
how_to_participate_placeholder: Describe cómo participar
|
||||
|
||||
Reference in New Issue
Block a user