|
a/OSSEval/analysis/templates/analysis/analysis_questions.html |
|
b/OSSEval/analysis/templates/analysis/analysis_questions.html |
|
... |
|
... |
35 |
{% for p1 in p.page_set.all %}
|
35 |
{% for p1 in p.page_set.all %}
|
36 |
<div id="page{{ p1.id }}"><form>
|
36 |
<div id="page{{ p1.id }}"><form>
|
37 |
{% for q in p1.question_set.all %}
|
37 |
{% for q in p1.question_set.all %}
|
38 |
<label>{{ q.text }}:</label> <span id="msgq{{ q.id }}"></span><br>
|
38 |
<label>{{ q.text }}:</label> <span id="msgq{{ q.id }}"></span><br>
|
39 |
{% for c in q.choice_set.all %}
|
39 |
{% for c in q.choice_set.all %}
|
40 |
<label><input type="radio" class="radioquestion" name="radioquestion{{ q.id }}" question_id="{{ q.id }}" id="question{{ q.id }}_{{ c.order }}" value="{{ c.order }}" /> {{ c.text }}</label><br>
|
40 |
<label><input type="radio" class="radioquestion" name="radioquestion{{ q.id }}" question_id="{{ q.id }}" id="choice{{ c.id }}" choice_id="{{ c.id }}" valueeeeeee="{{ c.value }}" /> {{ c.text }}</label><br>
|
41 |
{% endfor %}
|
41 |
{% endfor %}
|
42 |
<label>Notes": </label><input class="questionnotes" id="notes{{ q.id }}" question_id="{{ q.id }}" type="text" size="80" id="questionnotes{{ q.id }}" value=" " /><br>
|
42 |
<label>Notes": </label><input class="questionnotes" id="notes{{ q.id }}" question_id="{{ q.id }}" type="text" size="80" id="questionnotes{{ q.id }}" value=" " /><br>
|
43 |
<div id="MetadataInfo{{ q.id }}"><img src="{% static "images/wait1.gif" %}"/></div><hr>
|
43 |
<div id="MetadataInfo{{ q.id }}"><img src="{% static "images/wait1.gif" %}"/></div><hr>
|
44 |
{% endfor %}
|
44 |
{% endfor %}
|
45 |
</form></div>
|
45 |
</form></div>
|
|
... |
|
... |
58 |
async: true, type: 'POST',
|
58 |
async: true, type: 'POST',
|
59 |
url: 'save_answer',
|
59 |
url: 'save_answer',
|
60 |
dataType: 'json',
|
60 |
dataType: 'json',
|
61 |
success: save_answer_success,
|
61 |
success: save_answer_success,
|
62 |
error: save_answer_error,
|
62 |
error: save_answer_error,
|
63 |
data: {csrfmiddlewaretoken: '{{ csrf_token }}', question_id : $(this).attr('question_id'), id_selected_instance: id_selected_instance, value: $(this).val(), notes: $('input#notes'+$(this).attr('question_id')).val() }
|
63 |
data: {csrfmiddlewaretoken: '{{ csrf_token }}', question_id : $(this).attr('question_id'), id_selected_instance: id_selected_instance, choice_id : $(this).attr('choice_id'), notes: $('input#notes'+$(this).attr('question_id')).val() }
|
64 |
});
|
64 |
});
|
65 |
}
|
65 |
}
|
66 |
$('input.radioquestion').bind('click', f);
|
66 |
$('input.radioquestion').bind('click', f);
|
67 |
var timeout;
|
67 |
var timeout;
|
68 |
$('input.questionnotes').bind('input', function () {
|
68 |
$('input.questionnotes').bind('input', function () {
|