adds officer search to admin polls

This commit is contained in:
Juanjo Bazán
2016-12-27 12:36:16 +01:00
parent 122fd5f9ff
commit ee8c057a46
9 changed files with 58 additions and 3 deletions

View File

@@ -315,6 +315,9 @@ en:
booths_search:
button: Search
placeholder: Search booth by name
poll_officers_search:
button: Search
placeholder: Search poll officers
poll_questions_search:
button: Search
placeholder: Search poll questions

View File

@@ -315,6 +315,9 @@ es:
booths_search:
button: Buscar
placeholder: Buscar urna por nombre
poll_officers_search:
button: Buscar
placeholder: Buscar presidentes de mesa
poll_questions_search:
button: Buscar
placeholder: Buscar preguntas

View File

@@ -189,6 +189,7 @@ Rails.application.routes.draw do
end
resources :polls do
get :search_booths, on: :member
get :search_officers, on: :member
get :search_questions, on: :member
patch :add_question, on: :member
patch :remove_question, on: :member
@@ -196,6 +197,7 @@ Rails.application.routes.draw do
resources :booths
resources :booth_assignments, only: [:create, :destroy]
resources :officer_assignments, only: [:new, :create, :destroy]
resources :questions
end