{% load buttons %}
{% load helpers %}
{% load perms %}
{% load i18n %}
{# Core script list content - used by both full page and embedded views #}
{% for module in script_modules %}
{% include 'inc/sync_warning.html' with object=module %}
{% if not embedded %}
{{ module }}
{% if perms.extras.change_scriptmodule and perms.core.change_managedfile %}
{% trans "Edit" %}
{% endif %}
{% if perms.extras.delete_scriptmodule and perms.core.delete_managedfile %}
{% trans "Delete" %}
{% endif %}
{% endif %}
{% with scripts=module.ordered_scripts %}
{% if scripts %}
{% trans "Name" %}
{% trans "Description" %}
{% trans "Last Run" %}
{% trans "Status" %}
{% for script in scripts %}
{% if script in available_scripts %}
{% with last_job=latest_jobs|get_key:script.pk %}
{% blocktrans with module=module.name %}Could not load scripts from module {{ module }}{% endblocktrans %}
{% if module.error %}{{ module.error }}{% endif %}
{% endif %}
{% endwith %}
{% empty %}
{% trans "No Scripts Found" %}
{% if perms.extras.add_scriptmodule and perms.core.add_managedfile and not embedded %}
{% url 'extras:scriptmodule_add' as create_script_url %}
{% blocktrans trimmed %}
Get started by creating a script from an uploaded file or data source.
{% endblocktrans %}
{% endif %}