Adds ballot sheets controller and main views

This commit is contained in:
María Checa
2018-06-21 18:09:50 +02:00
committed by Javi Martín
parent 3ccdf039e4
commit ccf8d3a8e2
14 changed files with 275 additions and 9 deletions

View File

@@ -13,6 +13,12 @@ class Officing::BaseController < ApplicationController
raise CanCan::AccessDenied unless current_user.try(:poll_officer?)
end
def check_officer_assignment
if @officer_assignment.blank?
go_back_to_new(t("officing.results.flash.error_wrong_booth"))
end
end
def load_officer_assignment
@officer_assignments ||= current_user.poll_officer.
officer_assignments.