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

<% if can?(:create, Poll::Question.new(poll: @poll)) %> <%= link_to t("admin.questions.index.create"), new_admin_question_path(poll_id: @poll.id), class: "button float-right" %> <% end %> <% if @poll.questions.empty? %>
<%= t("admin.polls.show.no_questions") %>
<% else %> <% @poll.questions.sort_for_list.each do |question| %> <% end %>
<%= t("admin.polls.show.table_title") %> <%= t("admin.actions.actions") %>
<%= question.title %> <% if question.proposal.present? %> <%= link_to t("admin.polls.show.see_proposal"), proposal_path(question.proposal) %> <% end %> <%= render Admin::Poll::Questions::TableActionsComponent.new(question) %>
<% end %>