{% extends 'extras/script/base.html' %} {% load helpers %} {% load form_helpers %} {% load log_levels %} {% load i18n %} {% block content %}
{% if not perms.extras.run_script %}
{% trans "You do not have permission to run scripts" %}.
{% endif %}
{% csrf_token %}
{# Render grouped fields according to declared fieldsets #} {% for group, fields in script.get_fieldsets %} {% if fields %}
{{ group }}
{% for name in fields %} {% with field=form|getfield:name %} {% render_field field %} {% endwith %} {% endfor %}
{% endif %} {% endfor %}
{% trans "Cancel" %}
{% endblock content %}