Admin for custom pages

This commit is contained in:
Amaia Castro
2017-03-17 12:20:36 +01:00
parent 019037ebdd
commit 255b57cc85
20 changed files with 440 additions and 1 deletions

View File

@@ -40,6 +40,9 @@ en:
spending_proposal:
one: "Spending proposal"
other: "Spending proposals"
site_customization/page:
one: Custom page
other: Custom pages
attributes:
budget:
name: "Name"
@@ -103,6 +106,16 @@ en:
signable_type: "Signable type"
signable_id: "Signable ID"
document_numbers: "Documents numbers"
site_customization/page:
content: Content
created_at: Created at
subtitle: Subtitle
slug: Slug
status: Status
title: Title
updated_at: Updated at
more_info_flag: Show in more information page
print_content_flag: Print content button
errors:
models:
user:
@@ -134,3 +147,7 @@ en:
document_number:
not_in_census: 'Not verified by Census'
already_voted: 'Already voted this proposal'
site_customization/page:
attributes:
slug:
slug_format: "must be letters, numbers, _ and -"

View File

@@ -40,6 +40,9 @@ es:
spending_proposal:
one: "Propuesta de inversión"
other: "Propuestas de inversión"
site_customization/page:
one: Página
other: Páginas
attributes:
budget:
name: "Nombre"
@@ -98,6 +101,16 @@ es:
signable_type: "Tipo de hoja de firmas"
signable_id: "ID Propuesta ciudadana/Propuesta inversión"
document_numbers: "Números de documentos"
site_customization/page:
content: Contenido
created_at: Creada
subtitle: Subtítulo
slug: Slug
status: Estado
title: Título
updated_at: última actualización
more_info_flag: Mostrar en la página de más información
print_content_flag: Botón de imprimir contenido
errors:
models:
user:
@@ -129,3 +142,7 @@ es:
document_number:
not_in_census: 'No verificado por Padrón'
already_voted: 'Ya ha votado esta propuesta'
site_customization/page:
attributes:
slug:
slug_format: "deber ser letras, números, _ y -"

View File

@@ -207,6 +207,8 @@ en:
spending_proposals: Spending proposals
stats: Statistics
signature_sheets: Signature Sheets
site_customization:
pages: Custom Pages
moderators:
index:
title: Moderators
@@ -475,3 +477,34 @@ en:
phone_not_given: Phone not given
sms_code_not_confirmed: Has not confirmed the sms code
title: Incomplete verifications
site_customization:
pages:
create:
notice: 'Page created successfully.'
error: Process couldn't be created
update:
notice: 'Page updated successfully.'
error: Page couldn't be updated
destroy:
notice: Page deleted successfully
edit:
title: Editing %{page_title}
back: Back
errors:
form:
error: Error
form:
options: Options
index:
create: Create new page
delete: Delete
title: Custom Pages
see_page: See page
new:
back: Back
title: Create new custom page
page:
created_at: Created at
status: Status
title: Title
updated_at: Updated at

View File

@@ -207,6 +207,8 @@ es:
spending_proposals: Propuestas de inversión
stats: Estadísticas
signature_sheets: Hojas de firmas
site_customization:
pages: Páginas
moderators:
index:
title: Moderadores
@@ -475,3 +477,34 @@ es:
phone_not_given: No ha dado su teléfono
sms_code_not_confirmed: No ha introducido su código de seguridad
title: Verificaciones incompletas
site_customization:
pages:
create:
notice: 'Página creada correctamente.'
error: No se ha podido crear la página
update:
notice: 'Página actualizada correctamente.s'
error: No se ha podido actualizar la página
destroy:
notice: Página eliminada correctamente
edit:
title: Editar %{page_title}
back: Volver
errors:
form:
error: Error
form:
options: Opciones
index:
create: Crear nueva página
delete: Borrar
title: Páginas
see_page: Ver página
new:
back: Back
title: Página nueva
page:
created_at: Creada
status: Estado
title: Título
updated_at: Última actualización

View File

@@ -222,6 +222,10 @@ Rails.application.routes.draw do
end
resources :geozones, only: [:index, :new, :create, :edit, :update, :destroy]
namespace :site_customization do
resources :pages
end
end
namespace :moderation do