From a03fdefc410a42fce35d5213193d9cf10eb587c1 Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 17 Jun 2016 12:22:03 -0400 Subject: [PATCH 1/2] add (restore) labels --- .../templates/questionnaire/choice-multiple-freeform.html | 4 ++-- .../templates/questionnaire/choice-yesnocomment.html | 4 ++-- questionnaire/templates/questionnaire/questionset.html | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/questionnaire/templates/questionnaire/choice-multiple-freeform.html b/questionnaire/templates/questionnaire/choice-multiple-freeform.html index 71d9edf5..39bc5be3 100644 --- a/questionnaire/templates/questionnaire/choice-multiple-freeform.html +++ b/questionnaire/templates/questionnaire/choice-multiple-freeform.html @@ -5,7 +5,7 @@ diff --git a/questionnaire/templates/questionnaire/questionset.html b/questionnaire/templates/questionnaire/questionset.html index 4247da48..d71dfa0a 100644 --- a/questionnaire/templates/questionnaire/questionset.html +++ b/questionnaire/templates/questionnaire/questionset.html @@ -113,6 +113,7 @@ {% endif %} {% include qdict.template %} {% else %} +
{% if error %}
{{ error }}
From 7f48fc9b076acf09592cf9dd6339d0673faaf4d2 Mon Sep 17 00:00:00 2001 From: eric Date: Sun, 19 Jun 2016 20:58:42 -0400 Subject: [PATCH 2/2] make sure every input has a label --- .../templates/questionnaire/choice-freeform.html | 6 ++++-- .../templates/questionnaire/choice-multiple-freeform.html | 8 ++++++-- questionnaire/templates/questionnaire/open-textfield.html | 2 +- questionnaire/templates/questionnaire/questionset.html | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/questionnaire/templates/questionnaire/choice-freeform.html b/questionnaire/templates/questionnaire/choice-freeform.html index 8c068753..65fe0b43 100644 --- a/questionnaire/templates/questionnaire/choice-freeform.html +++ b/questionnaire/templates/questionnaire/choice-freeform.html @@ -15,9 +15,11 @@
{% if question.extra %} - {{ question.extra }} + + {% else %} + {% endif %} - +
diff --git a/questionnaire/templates/questionnaire/choice-multiple-freeform.html b/questionnaire/templates/questionnaire/choice-multiple-freeform.html index 39bc5be3..4f4c26e2 100644 --- a/questionnaire/templates/questionnaire/choice-multiple-freeform.html +++ b/questionnaire/templates/questionnaire/choice-multiple-freeform.html @@ -29,7 +29,11 @@ {% if question.extra %}
  • - {{ question.extra }} + +
  • + {% else %} +
  • +
  • {% endif %} {% if qdict.extras %} @@ -38,7 +42,7 @@ {% if not forloop.last or not forloop.first %} {{ forloop.counter }}. {% endif %} - + {% endfor %} {% endif %} diff --git a/questionnaire/templates/questionnaire/open-textfield.html b/questionnaire/templates/questionnaire/open-textfield.html index 6fd7988e..cf0c3fcf 100644 --- a/questionnaire/templates/questionnaire/open-textfield.html +++ b/questionnaire/templates/questionnaire/open-textfield.html @@ -1,7 +1,7 @@ {% load i18n %}
    - + {% if question.extra %} {{ question.extra }} {% endif %} diff --git a/questionnaire/templates/questionnaire/questionset.html b/questionnaire/templates/questionnaire/questionset.html index d71dfa0a..eee46ae9 100644 --- a/questionnaire/templates/questionnaire/questionset.html +++ b/questionnaire/templates/questionnaire/questionset.html @@ -113,16 +113,16 @@ {% endif %} {% include qdict.template %} {% else %} - +
    {% if error %}
    {{ error }}