{% load i18n %} {% comment %} Per-row Run button for the Script list, rendered through the table's ActionsColumn extra_buttons. Not a member of the actions dropdown, because ActionsColumn only knows edit, delete and changelog: its action set is a fixed class-level dict, so naming anything else raises KeyError. A link to the run page, which is where the script's own form is built. Nothing is posted from here, so the surrounding bulk-action form is left alone. Rendered inert rather than hidden when the script cannot run, matching the detail page, so an operator sees that running is unavailable instead of finding no button. {% endcomment %} {% if perms.netbox_scripts.run_netboxscript %} {% if record.is_executable %} {% trans "Run" %} {% else %} {% endif %} {% endif %}