37 lines
900 B
HTML
37 lines
900 B
HTML
<section id="textinput_${id}" class="textinput">
|
|
% if state == 'unsubmitted':
|
|
<div class="unanswered" id="status_${id}">
|
|
% elif state == 'correct':
|
|
<div class="correct" id="status_${id}">
|
|
% elif state == 'incorrect':
|
|
<div class="incorrect" id="status_${id}">
|
|
% elif state == 'incomplete':
|
|
<div class="incorrect" id="status_${id}">
|
|
% endif
|
|
|
|
<input type="text" name="input_${id}" id="input_${id}" value="${value}"
|
|
% if size:
|
|
size="${size}"
|
|
% endif
|
|
/>
|
|
|
|
<p class="status">
|
|
% if state == 'unsubmitted':
|
|
unanswered
|
|
% elif state == 'correct':
|
|
correct
|
|
% elif state == 'incorrect':
|
|
incorrect
|
|
% elif state == 'incomplete':
|
|
incomplete
|
|
% endif
|
|
</p>
|
|
|
|
<p id="answer_${id}" class="answer"></p>
|
|
|
|
% if msg:
|
|
<span class="message">${msg|n}</span>
|
|
% endif
|
|
</div>
|
|
</section>
|