<%= f.select :date,
shift_dates_select_options(@polls),
@@ -22,7 +30,7 @@
<%= f.hidden_field :booth_id, value: @booth.id %>
-
+
<%= f.submit t("admin.poll_shifts.new.add_shift"),
class: "button expanded margin-top" %>
diff --git a/app/views/admin/poll/shifts/_shifts.html.erb b/app/views/admin/poll/shifts/_shifts.html.erb
index f2de53548..63cbe0690 100644
--- a/app/views/admin/poll/shifts/_shifts.html.erb
+++ b/app/views/admin/poll/shifts/_shifts.html.erb
@@ -4,6 +4,7 @@
| <%= t("admin.poll_shifts.new.date") %> |
<%= t("admin.poll_shifts.new.officer") %> |
+ <%= t("admin.poll_shifts.new.task") %> |
<%= t("admin.poll_shifts.new.shift") %> |
@@ -12,6 +13,7 @@
| <%= l(shift.date.to_date, format: :long) %> |
<%= shift.officer_name %> |
+ <%= t("admin.poll_shifts.#{shift.task}") %> |
<%= link_to t("admin.poll_shifts.new.remove_shift"),
admin_booth_shift_path(@booth, shift),
diff --git a/config/locales/en/admin.yml b/config/locales/en/admin.yml
index 236ffd51e..0b578feb0 100644
--- a/config/locales/en/admin.yml
+++ b/config/locales/en/admin.yml
@@ -503,6 +503,7 @@ en:
shift: "Assignment"
shifts: "Shifts in this booth"
date: "Date"
+ task: "Task"
edit_shifts: Edit shifts
new_shift: "New shift"
no_shifts: "This booth has no shifts"
@@ -512,12 +513,15 @@ en:
search_officer_placeholder: Search officer
search_officer_text: Search for an officer to assign a new shift
select_date: "Select day"
+ select_task: "Select task"
table_shift: "Shift"
table_email: "Email"
table_name: "Name"
flash:
create: "Shift added"
destroy: "Shift removed"
+ vote_collection: Collect Votes
+ recount_scrutiny: Recount & Scrutiny
poll_booth_assignments:
flash:
destroy: "Booth not assigned anymore"
diff --git a/config/locales/es/admin.yml b/config/locales/es/admin.yml
index 91af8db6c..b2d0e658c 100644
--- a/config/locales/es/admin.yml
+++ b/config/locales/es/admin.yml
@@ -503,6 +503,7 @@ es:
shift: "Asignación"
shifts: "Turnos en esta urna"
date: "Fecha"
+ task: "Tarea"
edit_shifts: Asignar turno
new_shift: "Nuevo turno"
no_shifts: "Esta urna no tiene turnos asignados"
@@ -512,12 +513,15 @@ es:
search_officer_placeholder: Buscar presidentes de mesa
search_officer_text: Busca al presidente de mesa para asignar un turno
select_date: "Seleccionar día"
+ select_task: "Seleccionar tarea"
table_shift: "Turno"
table_email: "Email"
table_name: "Nombre"
flash:
create: "Añadido turno de presidente de mesa"
destroy: "Eliminado turno de presidente de mesa"
+ vote_collection: Recoger Votos
+ recount_scrutiny: Recuento & Escrutinio
poll_booth_assignments:
flash:
destroy: "Urna desasignada"
|