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"> <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 }}">
{% if question.extra %}
<span class="help-block">{{ question.extra }}</span> <span class="help-block">{{ question.extra }}</span>
{% endif %}
</div> </div>
</div> </div>

View File

@ -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' %}">
{% if question.extra %}
<span class="help-block">{{ question.extra }}</span> <span class="help-block">{{ question.extra }}</span>
{% endif %}
</li> </li>
{% endif %} {% endif %}
</ul> </ul>

View File

@ -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>

View File

@ -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>

View File

@ -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 }}">
{% if question.extra %}
<span class="help-block">{{ question.extra }}</span> <span class="help-block">{{ question.extra }}</span>
{% endif %}
</div> </div>
</div> </div>

View File

@ -80,10 +80,12 @@
</div> </div>
{% endif %} {% endif %}
</div> <!-- /question container --> </div> <!-- /question container -->
{% if question.footer %}
<div class="question-footer"> <div class="question-footer">
{{ question.footer|textile }} {{ question.footer|textile }}
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>
{% endif %}
{% endwith %} {% endwith %}
{% endfor %} {% 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 }}"> <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>
{% if question.extra %}
<span class="help-block">{{ question.extra }}</span> <span class="help-block">{{ question.extra }}</span>
{% endif %}
</div> </div>

View File

@ -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>