diff --git a/app/templates/wtf.html.j2 b/app/templates/wtf.html.j2 index 730fd337..a85042aa 100644 --- a/app/templates/wtf.html.j2 +++ b/app/templates/wtf.html.j2 @@ -1,47 +1,42 @@ {% macro render_field(field) %} {% if field.type == 'BooleanField' %} {{ render_boolean_field(field, *args, **kwargs) }} - {% elif field.type == 'DecimalRangeField' %} - {{ render_decimal_range_field(field, *args, **kwargs) }} + {% elif field.type == 'FileField' %} + {{ render_file_field(field, *args, **kwargs) }} + {% elif field.type == 'IntegerField' %} + {{ render_integer_field(field, *args, **kwargs) }} + {% elif field.type == 'MultipleFileField' %} + {{ render_multiple_file_field(field, *args, **kwargs) }} {% elif field.type == 'SubmitField' %} {{ render_submit_field(field, *args, **kwargs) }} - {% elif field.type in ['FileField', 'MultipleFileField'] %} - {{ render_file_field(field, *args, **kwargs) }} + {% elif field.type == 'TextAreaField' %} + {{ render_text_area_field(field, *args, **kwargs) }} {% else %} - {% if 'class_' in kwargs and 'validate' not in kwargs['class_'] %} - {% set tmp = kwargs.update({'class_': kwargs['class_'] + ' validate'}) %} - {% else %} - {% set tmp = kwargs.update({'class_': 'validate'}) %} - {% endif %} {{ render_generic_field(field, *args, **kwargs) }} {% endif %} {% endmacro %} + {% macro render_boolean_field(field) %} - {% set label = kwargs.pop('label', True) %} -