{% import "bootstrap/wtf.html" as wtf %} {% extends "templates/base.html" %} {% block scripts %} {{super()}} {% endblock %} {%- block styles %} {{ super() }} {%- endblock styles %} {% block title %}{{ title }}{% endblock %} {% block container %}

{{ title }}

{% if method != 'POST' %} {% endif %} {{ form.csrf_token }} {{ wtf.form_field(form.role_id, form_type="horizontal", horizontal_columns=('sm', 2, 5)) }}
{# resource type filter #}
{# custom select field with resource type as data in options for resource #}
{% if form.resource_id.errors %}

This field is required.

{% endif %}
{{ wtf.form_field(form.priority, form_type="horizontal", horizontal_columns=('sm', 2, 5)) }} {{ wtf.form_field(form.write, form_type="horizontal", horizontal_columns=('sm', 2, 5)) }} {{ wtf.form_field(form.submit, class="col-sm-offset-2 btn btn-primary") }}
{% endblock %}