Add Shift vote and recount date ranges, filter selected one on controller

This commit is contained in:
Bertocq
2017-09-27 18:08:03 +02:00
parent ce92dcd088
commit f40a0d09ed
3 changed files with 20 additions and 12 deletions

View File

@@ -22,10 +22,14 @@
<div class="small-12 medium-3 column">
<label><%= t("admin.poll_shifts.new.date") %></label>
<%= f.select :date,
shift_dates_select_options(@polls),
prompt: t("admin.poll_shifts.new.select_date"),
label: false %>
<%= select 'shift[date]', 'vote_collection_date',
options_for_select(shift_vote_collection_dates(@polls)),
prompt: t("admin.poll_shifts.new.select_date"),
label: false %>
<%= select 'shift[date]', 'recount_scrutiny_date',
options_for_select(shift_recount_scrutiny_dates(@polls)),
prompt: t("admin.poll_shifts.new.select_date"),
label: false %>
</div>
<%= f.hidden_field :booth_id, value: @booth.id %>