33 lines
1.2 KiB
HTML
33 lines
1.2 KiB
HTML
<%page expression_filter="h"/>
|
|
<%! from openedx.core.djangolib.markup import HTML %>
|
|
<% doinline = "inline" if inline else "" %>
|
|
|
|
<div class="inputtype option-input ${doinline}">
|
|
% if response_data['label']:
|
|
<label class="problem-group-label" for="input_${id}" id="label_${id}">${response_data['label']}</label>
|
|
% endif
|
|
|
|
% for description_id, description_text in response_data['descriptions'].items():
|
|
<p class="question-description" id="${description_id}">${description_text}</p>
|
|
% endfor
|
|
|
|
<select name="input_${id}" id="input_${id}" ${describedby_html}>
|
|
<option value="option_${id}_dummy_default">${default_option_text}</option>
|
|
% for option_id, option_description in options:
|
|
<option value="${option_id}"
|
|
% if (option_id == value or option_id == answervariable):
|
|
selected="true"
|
|
% endif
|
|
> ${option_description}</option>
|
|
% endfor
|
|
</select>
|
|
|
|
<div class="indicator-container">
|
|
<%include file="status_span.html" args="status=status, status_id=id"/>
|
|
</div>
|
|
<p class="answer" id="answer_${id}"></p>
|
|
% if msg:
|
|
<span class="message" aria-describedby="label_${id}" tabindex="-1">${HTML(msg)}</span>
|
|
% endif
|
|
</div>
|