diff options
author | Filipp Lepalaan <filipp@mac.com> | 2016-10-26 15:36:59 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2016-10-26 15:36:59 +0300 |
commit | 247297eb673dc8dd20713e0f9c8938a70e7e91be (patch) | |
tree | 25073fa5ee675cba83bd21ce06ae90603f83adb1 /servo | |
parent | 5dddd0cae299b8011dcdf6c8004aaf6b509b13b0 (diff) | |
download | Servo-247297eb673dc8dd20713e0f9c8938a70e7e91be.tar.gz Servo-247297eb673dc8dd20713e0f9c8938a70e7e91be.tar.bz2 Servo-247297eb673dc8dd20713e0f9c8938a70e7e91be.zip |
Only show custom fields when available
Diffstat (limited to 'servo')
-rwxr-xr-x | servo/templates/customers/form.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/servo/templates/customers/form.html b/servo/templates/customers/form.html index 69c6138..97d57e4 100755 --- a/servo/templates/customers/form.html +++ b/servo/templates/customers/form.html @@ -31,6 +31,7 @@ </div> </div> {% endfor %} + {% if fields %} <div class="control-group property"> <select name="keys" class="control-label" data-value="{{ fields.0.title }}"> {% for f in fields %} @@ -41,6 +42,7 @@ <input type="text" name="values"/> </div> </div> + {% endif %} {% include "form_field_snippet.html" with field=form.photo %} {% include "form_field_snippet.html" with field=form.groups %} {% include "form_field_snippet.html" with field=form.notes %} |