<div class="modal fade admin-item-show-modal" tabindex="-1" role="dialog" aria-hidden="true">
  <div class="modal-dialog modal-dialog-centered" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title">试题信息</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <div class="mt-2">
          <p>题型：<%= item.type_string %></p>
          <p>难度：<%= item.difficulty_string %></p>
        </div>

        <div class="mt-2">
          <p><%= item.name.html_safe %></p>
          <% item.item_choices.each do |choice| %>
            <div class="form-check ml-3">
              <% if item.item_type == "MULTIPLE" %>
                <%= check_box_tag(:choice, true, choice.is_answer, class: 'form-check-input') %>
                <label class="form-check-label" for="choice"><%= choice.choice_text.html_safe %></label>
              <% elsif item.item_type == "SINGLE" || item.item_type == "JUDGMENT" %>
                <%= radio_button_tag(:choice, true, choice.is_answer, class: 'form-check-input') %>
                <label class="form-check-label" for="choice"><%= choice.choice_text.html_safe %></label>
              <% else %>
                答案：<%= choice.choice_text.html_safe %>
              <% end %>
            </div>
          <% end %>

          <p class="mt-2">试题解析：</p>
          <p class="ml-3"><%= item.analysis.html_safe %></p>
        </div>
      </div>
    </div>
  </div>
</div>