Files
edx-platform/xmodule/capa/templates/drag_and_drop_input.html
Irtaza Akram 99c6e901d9 Convert Problem Block Mako Templates to Django Templates (#37570)
* fix: convert mako to django templates for problem block

* fix: pylint issues
2025-12-09 19:29:06 +05:00

35 lines
1.3 KiB
HTML

{% load static %}
<div id="inputtype_{{ id }}" class="capa_inputtype">
<div class="drag_and_drop_problem_div" id="drag_and_drop_div_{{ id }}"
data-plain-id="{{ id }}">
</div>
<div class="drag_and_drop_problem_json" id="drag_and_drop_json_{{ id }}"
style="display:none;">{{ drag_and_drop_json|safe }}</div>
<div class="script_placeholder" data-src="{% static 'js/capa/drag_and_drop.js' %}"></div>
{% if status == 'unsubmitted' or status == 'correct' or status == 'incorrect' or status == 'partially-correct' or status == 'incomplete' %}
<div class="{{ status.classname }}" id="status_{{ id }}">
{% endif %}
<input type="text" name="input_{{ id }}" id="input_{{ id }}" aria-describedby="answer_{{ id }}" value="{{ value }}"
style="display:none;"/>
<p class="indicator-container drag-and-drop--status" aria-describedby="input_{{ id }}">
{% include "status_span.html" with status=status status_id=id %}
</p>
<p id="answer_{{ id }}" class="answer"></p>
{% if msg %}
<span class="message" tabindex="-1">{{ msg|safe }}</span>
{% endif %}
{% if status == 'unsubmitted' or status == 'correct' or status == 'incorrect' or status == 'partially-correct' or status == 'incomplete' %}
</div>
{% endif %}
</div>