<%= t("admin.poll_booth_assignments.show.recounts_list") %>
diff --git a/app/views/admin/poll/booths/_booth.html.erb b/app/views/admin/poll/booths/_booth.html.erb
index 80b1ef38f..921361c4a 100644
--- a/app/views/admin/poll/booths/_booth.html.erb
+++ b/app/views/admin/poll/booths/_booth.html.erb
@@ -6,11 +6,13 @@
<%= booth.location %>
|
- <%= link_to t("admin.booths.booth.shifts"),
- new_admin_booth_shift_path(booth),
- class: "button hollow" %>
- <%= link_to t("admin.actions.edit"),
- edit_admin_booth_path(booth),
- class: "button hollow" %>
+ <% if controller_name == "shifts" || controller_name == "booths" && action_name == "available" %>
+ <%= link_to t("admin.booths.booth.shifts"),
+ new_admin_booth_shift_path(booth),
+ class: "button hollow" %>
+ <%= link_to t("admin.actions.edit"),
+ edit_admin_booth_path(booth),
+ class: "button hollow" %>
+ <% end %>
|
-
\ No newline at end of file
+
diff --git a/app/views/admin/poll/booths/index.html.erb b/app/views/admin/poll/booths/index.html.erb
index 05044dd0e..95b248b3f 100644
--- a/app/views/admin/poll/booths/index.html.erb
+++ b/app/views/admin/poll/booths/index.html.erb
@@ -1,7 +1,8 @@
<%= t("admin.booths.index.title") %>
-<%= link_to t("admin.booths.index.add_booth"), new_admin_booth_path,
- class: "button success float-right" %>
+<% if controller_name == "booths" && action_name != "available" %>
+ <%= link_to t("admin.booths.index.add_booth"), new_admin_booth_path, class: "button success float-right" %>
+<% end %>
<% if @booths.empty? %>
diff --git a/app/views/admin/poll/officer_assignments/_search_officers_results.html.erb b/app/views/admin/poll/officer_assignments/_search_officers_results.html.erb
index f665c6c0b..ee009f1fa 100644
--- a/app/views/admin/poll/officer_assignments/_search_officers_results.html.erb
+++ b/app/views/admin/poll/officer_assignments/_search_officers_results.html.erb
@@ -12,29 +12,19 @@
| <%= t("admin.poll_officer_assignments.index.table_name") %> |
<%= t("admin.poll_officer_assignments.index.table_email") %> |
- <%= t("admin.polls.show.table_assignment") %> |
<% @officers.each do |user| %>
|
- <%= user.name %>
+
+ <%= link_to user.name, by_officer_admin_poll_officer_assignments_path(@poll, officer_id: user.id) %>
+
|
<%= user.email %>
|
-
- <% if @poll.officer_ids.include?(user.poll_officer.id) %>
- <%= link_to t("admin.poll_officer_assignments.index.edit_officer_assignments"),
- by_officer_admin_poll_officer_assignments_path(@poll, officer_id: user.poll_officer.id),
- class: "button hollow alert" %>
- <% else %>
- <%= link_to t("admin.poll_officer_assignments.index.add_officer_assignments"),
- by_officer_admin_poll_officer_assignments_path(@poll, officer_id: user.poll_officer.id),
- class: "button hollow" %>
- <% end %>
- |
<% end %>
diff --git a/app/views/admin/poll/officer_assignments/by_officer.html.erb b/app/views/admin/poll/officer_assignments/by_officer.html.erb
index cefe161d9..c9873db96 100644
--- a/app/views/admin/poll/officer_assignments/by_officer.html.erb
+++ b/app/views/admin/poll/officer_assignments/by_officer.html.erb
@@ -27,30 +27,4 @@
<% end %>
-
-
<%= t("admin.poll_officer_assignments.by_officer.total_recounts") %>
-
-
-
- | <%= t("admin.poll_officer_assignments.by_officer.date") %> |
- <%= t("admin.poll_officer_assignments.by_officer.booth") %> |
- <%= t("admin.poll_officer_assignments.by_officer.total_recount") %> |
-
-
-
- <% @officer_assignments.each do |officer_assignment| %>
-
- | <%= l(officer_assignment.date.to_date) %> |
- <%= booth_name_with_location(officer_assignment.booth_assignment.booth) %> |
-
- <% if officer_assignment.recounts.any? %>
- <%= officer_assignment.recounts.to_a.sum(&:total_amount) %>
- <% else %>
- -
- <% end %>
- |
-
- <% end %>
-
-
<% end %>
diff --git a/app/views/admin/poll/officers/_officer.html.erb b/app/views/admin/poll/officers/_officer.html.erb
index 80434f385..3562b4a90 100644
--- a/app/views/admin/poll/officers/_officer.html.erb
+++ b/app/views/admin/poll/officers/_officer.html.erb
@@ -16,7 +16,7 @@
<% if officer.persisted? %>
<%= link_to t('admin.poll_officers.officer.delete'),
- admin_poll_officer_path(officer),
+ admin_officer_path(officer),
method: :delete,
class: "button hollow alert" %>
<% else %>
diff --git a/app/views/admin/poll/polls/_questions.html.erb b/app/views/admin/poll/polls/_questions.html.erb
index e41d2017e..fb92a4e43 100644
--- a/app/views/admin/poll/polls/_questions.html.erb
+++ b/app/views/admin/poll/polls/_questions.html.erb
@@ -9,7 +9,6 @@
| <%= t('admin.polls.show.table_title') %> |
- <%= t('admin.polls.show.table_assignment') %> |
<% @poll.questions.each do |question| %>
@@ -19,12 +18,6 @@
<%= link_to question.title, admin_question_path(question) %>
|
-
- <%= link_to t('admin.polls.show.remove_question'),
- remove_question_admin_poll_path(poll_id: @poll.id, question_id: question.id),
- class: "button hollow alert",
- method: :patch %>
- |
<% end %>
diff --git a/app/views/admin/poll/polls/_search_questions.html.erb b/app/views/admin/poll/polls/_search_questions.html.erb
deleted file mode 100644
index 659cdcd37..000000000
--- a/app/views/admin/poll/polls/_search_questions.html.erb
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- <%= form_tag(search_questions_admin_poll_path(@poll), method: :get, remote: true) do |f| %>
-
- <% end %>
-
-
-
-
diff --git a/app/views/admin/poll/polls/_search_questions_results.html.erb b/app/views/admin/poll/polls/_search_questions_results.html.erb
deleted file mode 100644
index f6f11e1f1..000000000
--- a/app/views/admin/poll/polls/_search_questions_results.html.erb
+++ /dev/null
@@ -1,33 +0,0 @@
-<% if @questions.blank? %>
-
- <%= t('admin.shared.no_search_results') %>
-
-<% else %>
-
<%= t('admin.shared.search_results') %>
-<% end %>
-
-<% if @questions.any? %>
-
-
-
- | <%= t("admin.polls.show.table_name") %> |
- <%= t("admin.polls.show.table_assignment") %> |
-
-
-
- <% @questions.each do |question| %>
-
- |
- <%= question.title %>
- |
-
- <%= link_to t("admin.polls.show.add_question"),
- add_question_admin_poll_path(poll_id: @poll.id, question_id: question.id),
- method: :patch,
- class: "button hollow" %>
- |
-
- <% end %>
-
-
-<% end %>
diff --git a/app/views/admin/poll/polls/search_questions.js.erb b/app/views/admin/poll/polls/search_questions.js.erb
deleted file mode 100644
index 05f5c5167..000000000
--- a/app/views/admin/poll/polls/search_questions.js.erb
+++ /dev/null
@@ -1 +0,0 @@
-$("#search-questions-results").html("<%= j render 'search_questions_results' %>");
\ No newline at end of file
diff --git a/app/views/admin/poll/polls/show.html.erb b/app/views/admin/poll/polls/show.html.erb
index 93ce52e47..be45eeb31 100644
--- a/app/views/admin/poll/polls/show.html.erb
+++ b/app/views/admin/poll/polls/show.html.erb
@@ -3,6 +3,5 @@
<%= render "subnav" %>
- <%= render "search_questions" %>
<%= render "questions" %>
diff --git a/app/views/admin/poll/questions/show.html.erb b/app/views/admin/poll/questions/show.html.erb
index 3f776c5c0..360886b89 100644
--- a/app/views/admin/poll/questions/show.html.erb
+++ b/app/views/admin/poll/questions/show.html.erb
@@ -55,7 +55,5 @@
<%= @question.documents.first.title %>
<% end %>
-
- <%= link_to t("admin.questions.show.preview"), question_path(@question) %>