{% load markup %}
{% load getresponse %}

{% getquestionresponse question as response %}

<div class="cases">
  <div class="caseintroduction">{{question.intro_text|markdown}}</div>

  <div class="casetitle"> Question {{question.display_number}}:</div>

  <div class="casecontent">
    <div class="casequestion {{question.css_extra}}">
      <div class="casequestiontext">{{question.text|markdown}}</div>
      {% if question.answerable %}
        {% if question.is_single_choice %}
          {% include 'quizblock/single_choice.html' %}
        {% endif %}
    
        {% if question.is_single_choice_dropdown %}
          {% include 'quizblock/single_choice_dropdown.html' %}
        {% endif %}
    
        {% if question.is_multiple_choice %}
          {% include 'quizblock/multiple_choice.html' %}
        {% endif %}
      {% else %}
        {% if question.is_short_text %}
          {% include 'quizblock/short_text.html' %}
        {% endif %}

        {% if question.is_long_text %}
          {% include 'quizblock/long_text.html' %}
        {% endif %}
      {% endif %}
    </div>

    {% if block.rhetorical %}
      {% include 'quizblock/show_answer.html' %}
    {% else %}
      {% if response %}
        {% include 'quizblock/show_answer.html' %}
      {% endif %}
  {% endif %}
  </div>
</div>
