<%= t("admin.polls.show.questions_title") %>

<%= link_to t("admin.questions.index.create"), new_admin_question_path(poll_id: @poll.id), class: "button float-right" %> <% if @poll.questions.empty? %>
<%= t("admin.polls.show.no_questions") %>
<% else %> <% @poll.questions.each do |question| %> <% end %>
<%= t("admin.polls.show.table_title") %> <%= t("admin.actions.actions") %>
<%= link_to question.title, admin_question_path(question) %> <% if question.proposal.present? %> <%= link_to t("admin.polls.show.see_proposal"), proposal_path(question.proposal), target: "_blank" %> <% end %>
<%= link_to t("admin.polls.show.edit_answers"), admin_question_path(question), class: "button hollow expanded" %>
<%= link_to t("shared.edit"), edit_admin_question_path(question), class: "button hollow expanded" %>
<%= link_to t("shared.delete"), admin_question_path(question), class: "button hollow alert expanded", method: :delete %>
<% end %>