{% extends 'base.html' %} {% load inventory_extras ui_extras %} {% block content %}

Script check{{ paginator.count|pluralize }} ({{ paginator.count }})

{% if perms.munki.add_scriptcheck %} {% url 'munki:create_script_check' as url %} {% button 'CREATE' url "Create new Script check" %} {% endif %}
{{ form }}
{% if object_list %} {% pagination next_url previous_url %} {% for obj in object_list %} {% with obj.compliance_check as cc %} {% endwith %} {% if perms.munki.change_scriptcheck or perms.munki.delete_script_check %} {% endif %} {% endfor %}
Name Type Tags Excluded tags
{{ cc.name }} {{ obj.get_type_display }} {% for tag in obj.tags.all %} {% inventory_tag tag %} {% empty %} - {% endfor %} {% for tag in obj.excluded_tags.all %} {% inventory_tag tag %} {% empty %} - {% endfor %} {% if perms.munki.change_scriptcheck %} {% url 'munki:update_script_check' obj.pk as url %} {% button 'UPDATE' url "Edit script check" %} {% endif %} {% if perms.munki.delete_scriptcheck %} {% url 'munki:delete_script_check' obj.pk as url %} {% button 'DELETE' url "Delete script check" %} {% endif %}
{% pagination next_url previous_url %} {% elif form.has_changed %} {% url 'munki:script_checks' as empty_results_url %} {% empty_results empty_results_url %} {% endif %} {% endblock %}