Add flash messages. Redirect to edit action after update

This commit is contained in:
Fernando Blat
2017-01-05 12:56:55 +01:00
parent 6c8060af38
commit ed714f7c7d
5 changed files with 63 additions and 9 deletions

View File

@@ -84,6 +84,14 @@ en:
title: Hidden debates
legislation:
processes:
create:
notice: Process created successfully
error: Process couldn't be created
update:
notice: Process updated successfully
error: Process couldn't be updated
destroy:
notice: Process deleted successfully
edit:
back: Back
submit_button: Save changes
@@ -123,6 +131,14 @@ en:
draft_texts: Text
questions: Debate
draft_versions:
create:
notice: Draft created successfully
error: Draft couldn't be created
update:
notice: Draft updated successfully
error: Draft couldn't be updated
destroy:
notice: Draft deleted successfully
edit:
back: Back
submit_button: Save changes
@@ -157,6 +173,14 @@ en:
final_version: Final version
status: Status
questions:
create:
notice: Question created successfully
error: Question couldn't be created
update:
notice: Question updated successfully
error: Question couldn't be updated
destroy:
notice: Question deleted successfully
edit:
back: Back
title: "Edit “%{question_title}”"

View File

@@ -82,6 +82,14 @@ es:
title: Debates ocultos
legislation:
processes:
create:
notice: Proceso creado correctamente
error: No se ha podido crear el proceso
update:
notice: Proceso actualizado correctamente
error: No se ha podido actualizar el proceso
destroy:
notice: Proceso eliminado correctamente
edit:
back: Volver
submit_button: Guardar cambios
@@ -121,6 +129,14 @@ es:
draft_texts: Texto
questions: Debate
draft_versions:
create:
notice: Borrador creado correctamente
error: No se ha podido crear el borrador
update:
notice: Borrador actualizado correctamente
error: No se ha podido actualizar el borrador
destroy:
notice: Borrador eliminado correctamente
edit:
back: Volver
submit_button: Guardar cambios
@@ -155,6 +171,14 @@ es:
final_version: Versión final
status: Estado
questions:
create:
notice: Pregunta creada correctamente
error: No se ha podido crear la pregunta
update:
notice: Pregunta actualizada correctamente
error: No se ha podido actualizar la pregunta
destroy:
notice: Pregunta eliminada correctamente
edit:
back: Volver
title: "Editar “%{question_title}”"