Adds extra to all question types

EmailTemplateFixes
Denis Krienbühl 2012-02-21 10:09:21 +01:00
parent 191e70ae72
commit f432f6b785
8 changed files with 29 additions and 8 deletions

View File

@ -15,7 +15,9 @@
<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 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>

View File

@ -33,7 +33,9 @@
{% if qdict.hascomment %}
<li>
<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>
{% endif %}
</ul>

View File

@ -10,6 +10,11 @@
</label>
</li>
{% endfor %}
{% if question.extra %}
<li>
<span class="help-block">{{ question.extra }}</span>
</li>
{% endif %}
</ul>
</div>
</div>

View File

@ -2,5 +2,8 @@
<div class="clearfix">
<div class="input">
<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>

View File

@ -3,6 +3,8 @@
<div class="input">
<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>

View File

@ -80,10 +80,12 @@
</div>
{% endif %}
</div> <!-- /question container -->
<div class="question-footer">
{{ question.footer|textile }}
<div class="clearfix"></div>
</div>
{% if question.footer %}
<div class="question-footer">
{{ question.footer|textile }}
<div class="clearfix"></div>
</div>
{% endif %}
{% endwith %}
{% endfor %}

View File

@ -3,5 +3,7 @@
<input name="question_{{ question.number }}" type="range" min="{{ qdict.rmin }}" max="{{ qdict.rmax }}" step="{{ qdict.rstep }}" value="{{ qdict.current }}">
</div>
<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>

View File

@ -6,5 +6,8 @@
<option value="{{ val }}"{% if sel %} selected="selected"{% endif %}>{{ desc }}</option>
{% endfor %}
</select>
{% if question.extra %}
<span class="help-block">{{ question.extra }}</span>
{% endif %}
</div>
</div>