{% extends 'generic/object_edit.html' %} {% load form_helpers %} {% block title %}EntraID Tools Configuration{% endblock %} {% block form %} {# ROW 1 - Global Settings (Full Width) #} {% if perms.netbox_entraid_tools.contact_admin %}
Global Settings

Settings that apply to all jobs.

{% render_field form.storage_account_name %}
{% render_field form.report_sender %}
{% render_field form.debug_mode %}
{# ROW 2 - Job-Specific Settings (Full Width) #}
Job 1: Deprecate Inactive Contacts
{% render_field form.job1_storage_table_name %}
{% render_field form.job1_report_recipients_text %}
{% render_field form.job1_interval_hours %}
{% render_field form.job1_auto_schedule %}
{% render_field form.job1_treat_disabled_as_missing %}
{# ROW 3 - Job 2 Settings (Full Width) #}
Job 2: Sync User Status
{% render_field form.job2_storage_table_name %}
{% render_field form.local_user_accounts_text %}
{% render_field form.job2_interval_hours %}
{% render_field form.job2_auto_schedule %}
{% if settings.debug_mode %}
Debug Info:
Permission check: {% if perms.netbox_entraid_tools.contact_admin %}PASSED{% else %}FAILED{% endif %}
Is superuser: {% if user.is_superuser %}YES{% else %}NO{% endif %}
Permission name: netbox_entraid_tools.contact_admin
{% endif %} {% if perms.netbox_entraid_tools.contact_admin %} {# ROW 4 - Run Jobs Manually (Full Width) #}
Run Jobs Manually
Job 1: Deprecate Inactive Contacts

Manually trigger the "Deprecate Inactive Contacts" job. The job will be executed in the background.

Job 2: Sync User Status

Manually trigger the "Sync User Status" job. The job will be executed in the background.

{% endif %} {% endif %} {% endblock %} {% block buttons %} Cancel {% endblock %} {% block content %} {{ block.super }} {% comment %} {% endcomment %} {% endblock %}