{% extends "base.html" %} {% block title %} Create {{ type|name_by_type(False) }} {% endblock %} {% block content %}
{% with messages = get_flashed_messages(with_categories=true) %} {% for category, msg in messages %} {% endfor %} {% endwith %}

Create new {{ type|name_by_type(False) }}

{{ form.hidden_tag() }} {% for field in form %} {% if field.name != "csrf_token" %} {% for error in field.errors %}

{{ error }}

{% endfor %} {% if field.name == 'value' %}
{{ form.value.label(class="input-group-text w-80") }} {{ form.comparision.label(class="input-group-text w-40") }}
{{ form.value2.label(class="input-group-text w-100") }}
{{ form.value(class="form-control w-50") }}
{{ form.comparision(class="form-control") }}
{{ form.value2(class="form-control") }}
{% elif field.name != 'comparision' and field.name != 'value2' %}
{{ field.label(class="input-group-text fixed-label") }}
{% if field.name in chips %} {% for option in field.choices %} {% endfor %} {% else %} {{ field(class="form-control") }} {% endif %}
{% if field.name in chips %}
{% endif %} {% endif %} {% endif %} {% endfor %}

{% endblock %}