Custom content blocks for top_links and footer

This commit is contained in:
Amaia Castro
2017-03-24 17:12:33 +01:00
parent ae3690ab5f
commit c1de2dced4
24 changed files with 435 additions and 10 deletions

View File

@@ -46,6 +46,9 @@ en:
site_customization/image:
one: Custom image
other: Custom images
site_customization/content_block:
one: Custom content block
other: Custom content blocks
attributes:
budget:
name: "Name"
@@ -119,6 +122,13 @@ en:
updated_at: Updated at
more_info_flag: Show in more information page
print_content_flag: Print content button
site_customization/image:
name: Name
image: Image
site_customization/content_block:
name: Name
locale: locale
body: Body
errors:
models:
user:

View File

@@ -46,6 +46,9 @@ es:
site_customization/image:
one: Imagen
other: Imágenes
site_customization/content_block:
one: Bloque
other: Bloques
attributes:
budget:
name: "Nombre"
@@ -114,6 +117,13 @@ es:
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
site_customization/image:
name: Nombre
image: Imagen
site_customization/content_block:
name: Nombre
locale: Idioma
body: Contenido
errors:
models:
user:

View File

@@ -210,6 +210,7 @@ en:
site_customization:
pages: Custom Pages
images: Custom Images
content_blocks: Custom content blocks
moderators:
index:
title: Moderators
@@ -479,6 +480,31 @@ en:
sms_code_not_confirmed: Has not confirmed the sms code
title: Incomplete verifications
site_customization:
content_blocks:
create:
notice: Content block created successfully
error: Content block couldn't be created
update:
notice: Content block updated successfully
error: Content block couldn't be updated
destroy:
notice: Content block deleted successfully
edit:
title: Editing content block
back: Back
errors:
form:
error: Error
index:
create: Create new content block
delete: Delete
title: Content blocks
new:
back: Back
title: Create new content block
content_block:
body: Body
name: Name
images:
index:
title: Custom images
@@ -493,7 +519,7 @@ en:
pages:
create:
notice: Page created successfully
error: Process couldn't be created
error: Page couldn't be created
update:
notice: Page updated successfully
error: Page couldn't be updated

View File

@@ -210,6 +210,7 @@ es:
site_customization:
pages: Personalizar páginas
images: Personalizar imágenes
content_blocks: Personalizar bloques
moderators:
index:
title: Moderadores
@@ -479,6 +480,31 @@ es:
sms_code_not_confirmed: No ha introducido su código de seguridad
title: Verificaciones incompletas
site_customization:
content_blocks:
create:
notice: Bloque creado correctamente
error: No se ha podido crear el bloque
update:
notice: Bloque actualizado correctamente
error: No se ha podido actualizar el bloque
destroy:
notice: Bloque borrado correctamente
edit:
title: Editar bloque
back: Volver
errors:
form:
error: Error
index:
create: Crear nuevo bloque
delete: Borrar
title: Bloques
new:
back: Volver
title: Crear nuevo bloque
content_block:
body: Contenido
name: Nombre
images:
index:
title: Personalizar imágenes

View File

@@ -226,6 +226,7 @@ Rails.application.routes.draw do
namespace :site_customization do
resources :pages, except: [:show]
resources :images, only: [:index, :update, :destroy]
resources :content_blocks, except: [:show]
end
end