diff options
Diffstat (limited to 'python/Dawn')
| -rw-r--r-- | python/Dawn/templates/cds_trade_entry.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/python/Dawn/templates/cds_trade_entry.html b/python/Dawn/templates/cds_trade_entry.html index 26c21903..84971a29 100644 --- a/python/Dawn/templates/cds_trade_entry.html +++ b/python/Dawn/templates/cds_trade_entry.html @@ -9,7 +9,7 @@ <form method="POST" class="form-horizontal" action="{{url_for('cds_trade_manage', tradeid=trade_id)}}" enctype="multipart/form-data"> {% for field in form if field.type != 'BooleanField' %} - <div class="form-group"> + <div class="form-group {% if field.id in errors %}has-error{% endif %}"> {% if field.type != 'CSRFTokenField' %} <label class="control-label col-md-2" for="{{ field.id }}"> {{ field.label.text }} @@ -18,6 +18,10 @@ <div class="col-md-3"> {{ field(class_="form-control") }} </div> + {% if field.id in errors %} + <div class="col-md-3"> + {{errors[field.id][0]}} + </div>{% endif %} </div> {% endfor %} <div class="form-group"> |
