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

<% if @poll.questions.empty? %>
  <div class="callout primary margin-top">
    <%= t('admin.polls.show.no_questions') %>
  </div>
<% else %>
  <table class="margin-top">
    <% @poll.questions.each do |question| %>
      <tr id="<%= dom_id(question) %>">
        <td><%= link_to question.title, admin_question_path(question) %></td>
        <td class="text-right">
          <%= link_to t('admin.polls.show.remove_question'),
                      admin_question_path(question),
                      class: "button hollow alert",
                      method: :delete %>
        </td>
      </tr>
    <% end %>
  </table>
<% end %>
