% add_decidim_page_title(t(".title")) %>
<%= t("models.polling_officer.fields.name", scope: "decidim.votings.admin") %> | <%= t("models.polling_officer.fields.email", scope: "decidim.votings.admin") %> | <%= t("models.polling_officer.fields.polling_station", scope: "decidim.votings.admin") %> | <%= t("actions.title", scope: "decidim.votings.polling_officers") %> |
---|---|---|---|
<%= polling_officer.name %> | <%= polling_officer.email %> | <% if polling_officer.presided_polling_station.present? %> <%= link_to "#{translated_attribute(polling_officer.presided_polling_station.title)} (#{t(".role_president")})", edit_voting_polling_station_path(current_voting, polling_officer.presided_polling_station) %> <% elsif polling_officer.managed_polling_station.present? %> <%= link_to "#{translated_attribute(polling_officer.managed_polling_station.title)} (#{t(".role_manager")})", edit_voting_polling_station_path(current_voting, polling_officer.managed_polling_station) %> <% end %> | <% if allowed_to? :delete, :polling_officer, voting: current_voting, polling_officer: polling_officer %> <%= icon_link_to "delete-bin-line", voting_polling_officer_path(current_voting, polling_officer), t("actions.destroy", scope: "decidim.votings.polling_officers"), method: :delete, class: "action-icon--remove", data: { confirm: t("actions.confirm_destroy", scope: "decidim.votings.polling_officers") } %> <% else %> <%= icon "delete-bin-line", class: "action-icon action-icon--disabled", role: "img", aria_label: t("actions.destroy", scope: "decidim.votings.polling_officers") %> <% end %> |