Remove obsolete notices in booth assignments
This code is obsolete since commit 085e6ecb.
This commit is contained in:
@@ -29,11 +29,8 @@ class Admin::Poll::BoothAssignmentsController < Admin::Poll::BaseController
|
|||||||
@booth_assignment = ::Poll::BoothAssignment.new(poll: @poll,
|
@booth_assignment = ::Poll::BoothAssignment.new(poll: @poll,
|
||||||
booth: @booth)
|
booth: @booth)
|
||||||
|
|
||||||
if @booth_assignment.save
|
@booth_assignment.save
|
||||||
notice = t("admin.poll_booth_assignments.flash.create")
|
|
||||||
else
|
|
||||||
notice = t("admin.poll_booth_assignments.flash.error_create")
|
|
||||||
end
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.js { render layout: false }
|
format.js { render layout: false }
|
||||||
end
|
end
|
||||||
@@ -44,11 +41,8 @@ class Admin::Poll::BoothAssignmentsController < Admin::Poll::BaseController
|
|||||||
@booth = Poll::Booth.find(booth_assignment_params[:booth_id])
|
@booth = Poll::Booth.find(booth_assignment_params[:booth_id])
|
||||||
@booth_assignment = ::Poll::BoothAssignment.find(params[:id])
|
@booth_assignment = ::Poll::BoothAssignment.find(params[:id])
|
||||||
|
|
||||||
if @booth_assignment.destroy
|
@booth_assignment.destroy
|
||||||
notice = t("admin.poll_booth_assignments.flash.destroy")
|
|
||||||
else
|
|
||||||
notice = t("admin.poll_booth_assignments.flash.error_destroy")
|
|
||||||
end
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.js { render layout: false }
|
format.js { render layout: false }
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1028,11 +1028,6 @@ en:
|
|||||||
poll_booth_assignments:
|
poll_booth_assignments:
|
||||||
alert:
|
alert:
|
||||||
shifts: "There are shifts associated to this booth. If you remove the booth assignment, the shifts will be also deleted. Continue?"
|
shifts: "There are shifts associated to this booth. If you remove the booth assignment, the shifts will be also deleted. Continue?"
|
||||||
flash:
|
|
||||||
destroy: "Booth not assigned anymore"
|
|
||||||
create: "Booth assigned"
|
|
||||||
error_destroy: "An error ocurred when removing booth assignment"
|
|
||||||
error_create: "An error ocurred when assigning booth to the poll"
|
|
||||||
show:
|
show:
|
||||||
location: "Location"
|
location: "Location"
|
||||||
officers: "Officers"
|
officers: "Officers"
|
||||||
|
|||||||
@@ -1029,11 +1029,6 @@ es:
|
|||||||
poll_booth_assignments:
|
poll_booth_assignments:
|
||||||
alert:
|
alert:
|
||||||
shifts: "Hay turnos asignados para esta urna. Si la desasignas, esos turnos se eliminarán. ¿Deseas continuar?"
|
shifts: "Hay turnos asignados para esta urna. Si la desasignas, esos turnos se eliminarán. ¿Deseas continuar?"
|
||||||
flash:
|
|
||||||
destroy: "Urna desasignada"
|
|
||||||
create: "Urna asignada"
|
|
||||||
error_destroy: "Se ha producido un error al desasignar la urna"
|
|
||||||
error_create: "Se ha producido un error al intentar asignar la urna"
|
|
||||||
show:
|
show:
|
||||||
location: "Ubicación"
|
location: "Ubicación"
|
||||||
officers: "Presidentes de mesa"
|
officers: "Presidentes de mesa"
|
||||||
|
|||||||
Reference in New Issue
Block a user