%= back_link_to admin_poll_path(@question.poll) %> <% if can?(:update, @question) %> <%= link_to t("admin.questions.show.edit_question"), edit_admin_question_path(@question), class: "button hollow float-right" %> <% end %>
<%= t("admin.questions.show.question") %>
<%= @question.title %>
<%= t("admin.questions.show.author") %>
<%= link_to @question.author.name, user_path(@question.author) %>
<%= t("admin.questions.show.proposal") %>
<%= link_to @question.proposal.title, proposal_path(@question.proposal) %>
<%= t("admin.polls.votation_type.title") %>
<%= VotationType.human_attribute_name("vote_type.#{@question.vote_type}") %>
<%= VotationType.human_attribute_name("max_votes") %>
<%= @question.max_votes %>
| <%= t("admin.questions.show.answers.title") %> | <%= t("admin.questions.show.answers.description") %> | <%= t("admin.questions.show.answers.images") %> | <%= t("admin.questions.show.answers.documents") %> | <%= t("admin.questions.show.answers.videos") %> | <%= t("admin.actions.actions") %> |
|---|---|---|---|---|---|
| <%= option.title %> | <%= wysiwyg(option.description) %> |
(<%= option.images.count %>)
<%= link_to t("admin.questions.show.answers.images_list"), admin_option_images_path(option) %> |
(<%= option.documents.count rescue 0 %>)
<%= link_to t("admin.questions.show.answers.documents_list"), admin_option_documents_path(option) %> |
(<%= option.videos.count %>)
<%= link_to t("admin.questions.show.answers.video_list"), admin_option_videos_path(option) %> |
<%= render Admin::Poll::Questions::Options::TableActionsComponent.new(option) %> |