Permalink
Browse files

#6 - Refine code

  • Loading branch information...
1 parent ecee21c commit b6479e73dd65d4ad70c3f1de30cb4fbabd96b3ce @ArtemSerga ArtemSerga committed Jan 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 flask_admin/templates/admin/lib.html
@@ -77,7 +77,7 @@
{{ form.hidden_tag() if form.hidden_tag is defined }}
{% for f in form if f.type != 'HiddenField' and f.type != 'CSRFTokenField' %}
- <div class="control-group{% if f.errors %} error{% endif %}">
+ <div class="control-group{{ ' error' if f.errors }}">
<div class="control-label">
{{ f.label.text }}
{% if h.is_required_form_field(f) %}

0 comments on commit b6479e7

Please sign in to comment.