{% extends 'base.html' %} {% block title %}IvoryOS | Controller for {{inst.__class__.__name__}}{% endblock %} {% block body %}

Controller for {{inst.__class__.__name__}} ({{instrument}})

{% for function, form in forms.items() %} {% if function not in session['hidden_functions'][instrument] %}
{{ form.hidden_tag() }} {% for field in form %} {% if field.type not in ['CSRFTokenField', 'HiddenField'] %}
{% if field.type == "SubmitField" %} {{ field(class="btn btn-dark") }} {% elif field.type == "BooleanField" %} {{ field(class="form-check-input") }} {% else %} {{ field(class="form-control") }} {% endif %}
{% endif %} {% endfor %}
{% endif %} {% endfor %}

{% for function in session['hidden_functions'][instrument] %}
{{ function }}
{% endfor %}
{% endblock %}