{% extends "base.tree.html" %} {% load lw_forms %} {% block content-title %} {% if application %} Application: {{application.name}} {% else %} New Application {% endif %} {% endblock%} {% block content %}
{% csrf_token %}
{{form|get_widget:"name"|append_html_attr:'class="form-control"'|safe}}
{{form|get_widget:"description"|append_html_attr:'class="form-control"'|safe}}
{{form|get_widget:"icon"|append_html_attr:'class="form-control"'|safe}}
{{form|get_widget:"init_path"|append_html_attr:'class="form-control"'|safe}}
{{form|get_widget:"command"|append_html_attr:'class="form-control"'|safe}}
{{form|get_widget:"only_one"|append_html_attr:'class="form-control"'|safe}}
{{form|get_widget:"args"|append_html_attr:'class="form-control"'|safe}}
{{form|get_widget:"os"|append_html_attr:'class="form-control"'|safe}}
{% for bounded in form %} {% if bounded.id_for_label == 'id_extensions' %}
{{bounded}}
{% endif %} {% endfor %} {% for bounded in form %} {% if bounded.id_for_label == 'id_mime_types' %}
{{bounded}}
{% endif %} {% endfor %}
{% if delete_app_arg %} delete {% endif %}
{% endblock%} {% block require-js-extra %} requirejs(['lw-forms'], function (LwForms){ LwForms.init(); }); {% endblock %}