stores officer booth on sign in

This commit is contained in:
rgarcia
2017-02-14 03:35:12 +01:00
committed by Javi Martín
parent 5835d12694
commit b4499321d3
14 changed files with 218 additions and 20 deletions

View File

@@ -16,6 +16,10 @@ en:
no_polls: You are not officing final recounts in any active poll
select_poll: Select poll
add_results: Add results
booth:
new:
title: "Choose your booth"
success: "You are officing booth %{booth}"
results:
flash:
create: "Results saved"

View File

@@ -16,6 +16,10 @@ es:
no_polls: No tienes permiso para recuento final en ninguna votación reciente
select_poll: Selecciona votación
add_results: Añadir resultados
booth:
new:
title: "Escoge tu urna"
success: "Estás presidiendo la urna %{booth}"
results:
flash:
create: "Datos guardados"

View File

@@ -4,6 +4,7 @@ namespace :officing do
resources :results, only: [:new, :create, :index]
end
resource :booth, controller: "booth", only: [:new, :create]
resource :residence, controller: "residence", only: [:new, :create]
resources :voters, only: [:new, :create]
root to: "dashboard#index"