<%= link_to poll.title, proposal_poll_path(proposal, poll) %>

<%= l(poll.starts_at.to_date) %> - <%= l(poll.ends_at.to_date) %>

<%= t("dashboard.polls.poll.responses", count: poll.answer_count) %>

<% if poll.starts_at.to_date >= Date.current %> <%= link_to t("dashboard.polls.poll.edit_poll"), edit_proposal_dashboard_poll_path(proposal, poll), class: "button hollow" %> <% else %> <%= link_to t("dashboard.polls.poll.view_results"), results_proposal_poll_path(proposal, poll), class: "button" %> <% end %>
<%= form_for poll, remote: true, data: { type: :json }, url: proposal_dashboard_poll_path(proposal, poll) do |f| %> <%= f.check_box :results_enabled, class: "js-submit-on-change" %> <% end %>

<%= t("dashboard.polls.poll.show_results_help") %>

<%= button_to t("dashboard.polls.poll.delete"), proposal_dashboard_poll_path(proposal, poll), method: :delete, "data-confirm": t("dashboard.polls.poll.alert_notice"), class: "delete" %>