diff options
author | Magnus Hagander | 2014-04-28 15:23:29 +0000 |
---|---|---|
committer | Magnus Hagander | 2014-04-28 15:23:29 +0000 |
commit | 4a4e8c46ec9834c43b0a0705905d5ee12574694a (patch) | |
tree | 93aa017a6d2276f382b17e049cad85126e7c5b0b | |
parent | 30dfdeaa76bc72e8a980b24a850b8f35e201edd9 (diff) |
Properly render hidden fields
-rw-r--r-- | pgcommitfest/commitfest/templates/base_form.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pgcommitfest/commitfest/templates/base_form.html b/pgcommitfest/commitfest/templates/base_form.html index 60fbd61..ab07ecf 100644 --- a/pgcommitfest/commitfest/templates/base_form.html +++ b/pgcommitfest/commitfest/templates/base_form.html @@ -53,6 +53,7 @@ div.form-group div.controls input.threadpick-input { <div class="alert alert-info">{{note|safe}}</div> {%endif%} {%for field in form%} + {%if not field.is_hidden%} <div class="form-group"> {{field|label_class:"control-label col-lg-1"}} <div class="col-lg-11 controls"> @@ -64,6 +65,9 @@ div.form-group div.controls input.threadpick-input { {{field|field_class:"form-control"}} {%if field.help_text%}<br/>{{field.help_text|safe}}{%endif%}</div> </div> + {%else%} +{{field}} + {%endif%} {%endfor%} <div class="form-group"> <div class="col-lg-12"> |