Add officer email on admin poll shifts table

This commit is contained in:
decabeza
2019-05-14 16:28:50 +02:00
parent 0c704c2f06
commit 625c34bac2
2 changed files with 5 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
<tr>
<th><%= t("admin.poll_shifts.new.date") %></th>
<th><%= t("admin.poll_shifts.new.officer") %></th>
<th><%= t("admin.poll_shifts.new.table_email") %></th>
<th><%= t("admin.poll_shifts.new.task") %></th>
<th class="small-3"><%= t("admin.poll_shifts.new.shift") %></th>
</tr>
@@ -13,6 +14,7 @@
<tr id="shift_<%= shift.id %>" class="shift">
<td><%= l(shift.date.to_date, format: :long) %></td>
<td><%= shift.officer_name %></td>
<td><%= shift.officer_email %></td>
<td><%= t("admin.poll_shifts.#{shift.task}") %></td>
<td>
<%= link_to t("admin.poll_shifts.new.remove_shift"),

View File

@@ -22,12 +22,14 @@ feature "Admin shifts" do
expect(page).to have_css(".shift", count: 1)
expect(page).to have_content I18n.l(Date.current, format: :long)
expect(page).to have_content officer.name
expect(page).to have_content officer.email
visit new_admin_booth_shift_path(booth2)
expect(page).to have_css(".shift", count: 1)
expect(page).to have_content I18n.l(Time.zone.tomorrow, format: :long)
expect(page).to have_content officer.name
expect(page).to have_content officer.email
end
scenario "Create Vote Collection Shift and Recount & Scrutiny Shift on same date", :js do
@@ -229,6 +231,7 @@ feature "Admin shifts" do
expect(page).to have_css(".shift", count: 1)
expect(page).to have_content(officer.name)
expect(page).to have_content(officer.email)
end
scenario "Empty" do