<%= back_link_to %> <%= link_to t("admin.questions.show.edit_question"), edit_admin_question_path(@question), class: "button hollow float-right" %>

<%= t("admin.questions.show.question") %>
<%= @question.title %>

<%= t("admin.questions.show.author") %>
<%= link_to @question.author.name, user_path(@question.author) %>

<% if @question.proposal.present? %>

<%= t("admin.questions.show.proposal") %>
<%= link_to @question.proposal.title, proposal_path(@question.proposal) %>

<% end %> <% unless @question.votation_type.nil? %>

<%= t("question.votation_type") %>
<%= t("enum_type.#{@question.votation_type.enum_type}") %>

<% if !@question.votation_type.max_votes.nil? %>

<%= VotationType.human_attribute_name(:max_votes) %>
<%= @question.votation_type.max_votes %>

<% end %> <% if !@question.votation_type.prioritization_type.nil? %>

<%= VotationType.human_attribute_name(:prioritization_type) %>
<%= t("prioritization_type.#{@question.votation_type.prioritization_type}") %>

<% end %> <% if !@question.votation_type.max_groups_answers.nil? %>

<%= VotationType.human_attribute_name(:max_groups_answers) %>
<%= @question.votation_type.max_groups_answers %>

<% end %> <% end %>
<%= link_to t("admin.questions.show.add_answer"), new_admin_question_answer_path(@question), class: "button float-right" %>
<% @question.question_answers.each do |answer| %> <% end %>
<%= t("admin.questions.show.valid_answers") %>
<%= 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") %>
<%= link_to answer.title, admin_answer_path(answer) %> <%= wysiwyg(answer.description) %> (<%= answer.images.count %>)
<%= link_to t("admin.questions.show.answers.images_list"), admin_answer_images_path(answer) %>
(<%= answer.documents.count rescue 0 %>)
<%= link_to t("admin.questions.show.answers.documents_list"), admin_answer_documents_path(answer) %>
(<%= answer.videos.count %>)
<%= link_to t("admin.questions.show.answers.video_list"), admin_answer_videos_path(answer) %>
<% if @question.video_url.present? %>

<%= t("admin.questions.show.video_url") %>
<%= @question.video_url %>

<% end %>