From 58e5116eb32fc0a01b8ae00b553003a269a81de1 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Mon, 26 Oct 2020 13:04:48 +0100
Subject: [PATCH] Remove unused files
---
web/app/templates/utils/materialize.html.j2 | 93 ---------------------
1 file changed, 93 deletions(-)
delete mode 100644 web/app/templates/utils/materialize.html.j2
diff --git a/web/app/templates/utils/materialize.html.j2 b/web/app/templates/utils/materialize.html.j2
deleted file mode 100644
index fe5153b3..00000000
--- a/web/app/templates/utils/materialize.html.j2
+++ /dev/null
@@ -1,93 +0,0 @@
-{% macro render_field(field) %}
- {% if field.flags.required and field.type not in ['FileField', 'MultipleFileField'] %}
- {% 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 %}
- {% endif %}
-
- {% if field.type == 'BooleanField' %}
- {{ render_boolean_field(field, *args, **kwargs) }}
- {% elif field.type == 'DecimalRangeField' %}
- {{ render_decimal_range_field(field, *args, **kwargs) }}
- {% elif field.type == 'IntegerField' %}
- {% set tmp = kwargs.update({'type': 'number'}) %}
- {% 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) }}
- {% 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 in ['PasswordField', 'SelectField', 'StringField'] %}
- {{ render_generic_field(field, *args, **kwargs) }}
- {% endif %}
-{% endmacro %}
-
-{% macro render_boolean_field(field) %}
- {% set label = kwargs.pop('label', True) %}
-
- {% if 'material_icon' in kwargs %}
- {{ kwargs.pop('material_icon') }}
- {% endif %}
-
- {% for error in field.errors %}
- {{ error }}
- {% endfor %}
-
-{% endmacro %}
-
-{% macro render_file_field(field) %}
- {% set placeholder = kwargs.pop('placeholder', '') %}
-
-{% endmacro %}
-
-{% macro render_generic_field(field) %}
- {% set label = kwargs.pop('label', True) %}
-
- {% if 'material_icon' in kwargs %}
- {{ kwargs.pop('material_icon') }}
- {% endif %}
- {{ field(*args, **kwargs) }}
- {% if label %}
- {{ field.label }}
- {% endif %}
- {% for error in field.errors %}
- {{ error }}
- {% endfor %}
-
-{% endmacro %}
-
-{% macro render_submit_field(field) %}
-
-{% endmacro %}