Fix typo in attachments code

This commit is contained in:
2016-11-02 11:42:23 +01:00
parent d24677992e
commit eb1561136b
2 changed files with 5 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
| {% macro render_field(field) %}
| {% macro render_field(field, type) %}
.form-group(class="{{field.name}}{% if field.errors %} error{% endif %}")
@@ -9,7 +9,7 @@
| {{ field.label }}
| {% elif field.type == 'FieldList' %}
ul.fieldlist#files
ul.fieldlist(id="{{ type }}")
| {% for file in field %}
li.fieldlist-item

View File

@@ -45,7 +45,7 @@
i.pi-plus
| Add New Attachment
| {{ render_field(field) }}
| {{ render_field(field, field.name) }}
| {% elif field.name == 'files' %}
.files-header
@@ -53,9 +53,10 @@
#files-action-add
i.pi-plus
| Add New File
| {{ render_field(field) }}
| {{ render_field(field, field.name) }}
| {% else %}
| {{ render_field(field) }}
| {% endif %}