{% extends "aa_recruitment/base.html" %} {% load i18n %} {% block recruitment_content %} {% include "aa_recruitment/includes/vetting_styles.html" %} {% include "aa_recruitment/includes/settings_tabs.html" with active="general" %}

{% translate "Settings that used to be in local.py or fixed in the code. A value saved here wins over local.py and works right away, without an upload or restart. 'Reset' goes back to local.py or the code default." %}

{% if not can_edit %}
{% translate "Read only: changing settings needs the recruitment admin permission." %}
{% endif %}
{% translate "Where each setting lives" %}
{% translate "Vetting checks" %}{% translate "Every check on/off, its thresholds and word lists, hostile and friendly terms, finding severities, score weights; the Character Audit site (Dev/Prod)." %}
{% translate "Member Activity → Settings" %}{% translate "Tracked corporation, FAT minimums (month, INIT 3 and 6 months), new-member days, status basis and thresholds, VIPs, trendline months." %}
{% translate "Forms & Config" %}{% translate "Application forms and questions, menu titles, Discord webhook, language and user token, Discord intel channels and their interval, multiple applications, applicant notifications." %}
{% translate "This page" %}{% translate "Schedule of the background jobs, links, trusted entities, INIT VIP rule, zKillboard limits and fleet gap." %}
{% translate "Still needs Maddog" %}{% translate "New plugin versions (code), database migrations, the FAT/LoA provider settings and AA_RECRUITMENT_AUDIT_SESSION if you keep the cookie in local.py." %}
{% csrf_token %}
{% translate "Schedule" %}
{% if not schedule_available %}

{% translate "Scheduling from this page needs django_celery_beat, which is not installed here. Ask Maddog to add the jobs to CELERYBEAT_SCHEDULE." %}

{% else %}

{% translate "When the background jobs run. Times are in the server time zone. Changes are picked up by Celery beat within a minute." %}

{% for r in schedule %} {% endfor %}
{% translate "Job" %}{% translate "On" %}{% translate "When" %}
{{ r.job.title }}
{{ r.job.help }}
{% translate "Now" %}: {{ r.current|default:_("not scheduled") }}
{% if r.local %}
{% blocktranslate with name=r.local %}Also scheduled in local.py ('{{ name }}'). That entry stays active; ask Maddog to remove it once so only this page decides.{% endblocktranslate %}
{% elif r.others %}
{% translate "Also scheduled as" %}: {{ r.others|join:", " }} ({% translate "Django admin → Periodic tasks" %})
{% endif %}
{% if r.job.kind == "daily" %}
{% translate "daily at" %}
{% else %}
{% translate "every" %}{% translate "minutes" %}
{% endif %}
{% endif %}
{% if can_edit and schedule_available %} {% endif %}
{% for g in groups %}
{% csrf_token %}
{{ g.sec.title }} {% if g.changed %}{% translate "changed" %}{% endif %}

{{ g.sec.description }}

{% for r in g.rows %} {% endfor %}
{% translate "Setting" %}{% translate "Value" %}{% translate "Default" %}
{{ r.s.label }}{% if r.s.unit %} ({{ r.s.unit }}){% endif %}
{% if r.s.help %}
{{ r.s.help }}
{% endif %}
{% if r.s.kind == "bool" %}
{% elif r.s.kind == "choice" %} {% elif r.s.kind == "ids" or r.s.kind == "names" %} {% elif r.s.kind == "url" %} {% else %} {% endif %}
{% if r.s.kind == "bool" %}{% if r.default == "True" %}{% translate "on" %}{% else %}{% translate "off" %}{% endif %}{% else %}{{ r.default|default:"—" }}{% endif %} {% if r.from_local %}
{% translate "from local.py" %} ({{ r.s.django }})
{% endif %}
{% if can_edit %} {% endif %}
{% endfor %}
{% endblock %}