Adds extra to all question types
parent
191e70ae72
commit
f432f6b785
|
@ -15,7 +15,9 @@
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<input onClick="valchanged('{{ question.number }}', '_entry_');" type="radio" id="{{ question.number }}_entry" name="question_{{ question.number }}" value="_entry_" {% if qdict.sel_entry %} checked {% endif %}>
|
<input onClick="valchanged('{{ question.number }}', '_entry_');" type="radio" id="{{ question.number }}_entry" name="question_{{ question.number }}" value="_entry_" {% if qdict.sel_entry %} checked {% endif %}>
|
||||||
<input id="{{ question.number }}_comment" checks="dep_check('{{ question.number }},_entry_')" type="input" name="question_{{ question.number }}_comment" value="{{ qdict.comment }}">
|
<input id="{{ question.number }}_comment" checks="dep_check('{{ question.number }},_entry_')" type="input" name="question_{{ question.number }}_comment" value="{{ qdict.comment }}">
|
||||||
<span class="help-block">{{ question.extra }}</span>
|
{% if question.extra %}
|
||||||
|
<span class="help-block">{{ question.extra }}</span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,9 @@
|
||||||
{% if qdict.hascomment %}
|
{% if qdict.hascomment %}
|
||||||
<li>
|
<li>
|
||||||
<input type="text" id="{{ question.number }}_comment" name="question_{{ question.number }}_comment" value="{{ qdict.comment }}" size="50" {{ qdict.checks|safe }} placeholder="{% trans 'comment' %}">
|
<input type="text" id="{{ question.number }}_comment" name="question_{{ question.number }}_comment" value="{{ qdict.comment }}" size="50" {{ qdict.checks|safe }} placeholder="{% trans 'comment' %}">
|
||||||
<span class="help-block">{{ question.extra }}</span>
|
{% if question.extra %}
|
||||||
|
<span class="help-block">{{ question.extra }}</span>
|
||||||
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -10,6 +10,11 @@
|
||||||
</label>
|
</label>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% if question.extra %}
|
||||||
|
<li>
|
||||||
|
<span class="help-block">{{ question.extra }}</span>
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -2,5 +2,8 @@
|
||||||
<div class="clearfix">
|
<div class="clearfix">
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<textarea class="span8" name="question_{{ question.number }}" cols="60" rows="10"></textarea>
|
<textarea class="span8" name="question_{{ question.number }}" cols="60" rows="10"></textarea>
|
||||||
|
{% if question.extra %}
|
||||||
|
<span class="help-block">{{ question.extra }}</span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<input type="text" class="span8" size="60" id="{{ question.number }}" name="question_{{ question.number }}" value="{{ qdict.value }}">
|
<input type="text" class="span8" size="60" id="{{ question.number }}" name="question_{{ question.number }}" value="{{ qdict.value }}">
|
||||||
<span class="help-block">{{ question.extra }}</span>
|
{% if question.extra %}
|
||||||
|
<span class="help-block">{{ question.extra }}</span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -80,10 +80,12 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div> <!-- /question container -->
|
</div> <!-- /question container -->
|
||||||
<div class="question-footer">
|
{% if question.footer %}
|
||||||
{{ question.footer|textile }}
|
<div class="question-footer">
|
||||||
<div class="clearfix"></div>
|
{{ question.footer|textile }}
|
||||||
</div>
|
<div class="clearfix"></div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
|
@ -3,5 +3,7 @@
|
||||||
<input name="question_{{ question.number }}" type="range" min="{{ qdict.rmin }}" max="{{ qdict.rmax }}" step="{{ qdict.rstep }}" value="{{ qdict.current }}">
|
<input name="question_{{ question.number }}" type="range" min="{{ qdict.rmin }}" max="{{ qdict.rmax }}" step="{{ qdict.rstep }}" value="{{ qdict.current }}">
|
||||||
</div>
|
</div>
|
||||||
<label data-unit="{{ qdict.runit }}">{{ qdict.runit }}</label>
|
<label data-unit="{{ qdict.runit }}">{{ qdict.runit }}</label>
|
||||||
<span class="help-block">{{ question.extra }}</span>
|
{% if question.extra %}
|
||||||
|
<span class="help-block">{{ question.extra }}</span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
|
@ -6,5 +6,8 @@
|
||||||
<option value="{{ val }}"{% if sel %} selected="selected"{% endif %}>{{ desc }}</option>
|
<option value="{{ val }}"{% if sel %} selected="selected"{% endif %}>{{ desc }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
|
{% if question.extra %}
|
||||||
|
<span class="help-block">{{ question.extra }}</span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue