We are trying to avoid Officers from forgetting to click the “Confirm vote” button, which is necessary to keep track of who has voted a Poll To do that, we are not displaying the menu item to go back to the next person that wants to vote, until the Officer clicks the “Confirm Vote” button or the “The user has decided not to vote” button Note: Due to mobile version we have duplicate ids, so using classes for the menu items to hide them without errors Note2: We are only hidding the menu item, if there are votable polls, otherwise the “Confirm vote” button does not appear, and there is no way of going back to help the next person that wants to vote
24 lines
881 B
Plaintext
24 lines
881 B
Plaintext
<div class="admin-sidebar" data-equalizer-watch>
|
|
<ul id="officing_menu">
|
|
<% if vote_collection_shift? %>
|
|
<li class="<%= "js-vote-collection" %>
|
|
<%= " is-active" if controller_name == "voters" %>
|
|
<%= " is-hidden" if controller_name == "voters" && Poll.votable_by(@user).any? %>">
|
|
<%= link_to new_officing_residence_path do %>
|
|
<span class="icon-user"></span>
|
|
<%= t("officing.menu.voters") %>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
|
|
<% if final_recount_shift? %>
|
|
<li <%= "class=is-active" if ["results"].include?(controller_name) || (controller_name == "polls" && action_name == "final") %>>
|
|
<%= link_to final_officing_polls_path do %>
|
|
<span class="icon-user"></span>
|
|
<%= t("officing.menu.total_recounts") %>
|
|
<% end %>
|
|
</li>
|
|
<% end%>
|
|
</ul>
|
|
</div>
|