Commit ecee21cc authored by Artem Serga's avatar Artem Serga

#6 - Add asterisk to required form field

parent cd25c6fc
......@@ -79,10 +79,11 @@
{% for f in form if f.type != 'HiddenField' and f.type != 'CSRFTokenField' %}
<div class="control-group{% if f.errors %} error{% endif %}">
<div class="control-label">
{{ f.label.text }}
{% if h.is_required_form_field(f) %}
<strong>{{ f.label.text }}</strong>
<strong style="color: red">&#42;</strong>
{% else %}
{{ f.label.text }}
&nbsp;
{% endif %}
</div>
<div class="controls">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment