{% extends 'generic/object.html' %} {% load helpers %} {% load form_helpers %} {% load log_levels %} {% block title %}{{ script }}{% endblock %} {% block object_identifier %} {{ script.full_name }} {% endblock object_identifier %} {% block breadcrumbs %} {% endblock breadcrumbs %} {% block subtitle %}
{{ script.Meta.description|markdown }}
{% endblock subtitle %} {% block controls %}{% endblock %} {% block tabs %} {% endblock tabs %} {% block content %}
{% if not perms.extras.run_script %}
You do not have permission to run scripts.
{% endif %}
{% csrf_token %}
{% if form.requires_input %} {% if script.Meta.fieldsets %} {# Render grouped fields according to declared fieldsets #} {% for group, fields in script.Meta.fieldsets %}
{{ group }}
{% for name in fields %} {% with field=form|getfield:name %} {% render_field field %} {% endwith %} {% endfor %}
{% endfor %} {% else %} {# Render all fields as a single group #}
Script Data
{% render_form form %} {% endif %} {% else %}
This script does not require any input to run.
{% render_form form %} {% endif %}
Cancel
{{ script.filename }}
{{ script.source }}
{% endblock content %}