{% extends "wagtailadmin/base.html" %} {% load static i18n %} {% block titletag %}{% trans "Ticket access" %}{% endblock %} {% block extra_css %}{{ block.super }}{% endblock %} {% block content %} {% trans "Ticket access" as access_title %} {% trans "All sites" as all_sites_title %} {% if shared_access %}{% include "wagtailadmin/shared/header.html" with title=access_title subtitle=all_sites_title icon="group" %}{% else %}{% include "wagtailadmin/shared/header.html" with title=access_title subtitle=site.site_name icon="group" %}{% endif %}
{% if saved %}

{% trans "Access has been updated." %}

{% endif %}

{% trans "Decide which editors may report tickets directly from Wagtail." %}

{% trans "One point of contact" %}

{% trans "Owner" %}
{{ access.owner.get_full_name|default:access.owner.get_username }}
{% if config.jira_account %}
{% trans "Jira account" %}{% if config.dry_run %} (demo){% endif %}
{{ config.jira_account }}
{% endif %}

{% trans "All tickets use one fixed Jira account. The Wagtail reporter is included in the ticket." %}

{% if config.dry_run %}

{% trans "Demo: Jira is not connected. No tickets are created." %}

{% endif %}

{% trans "Current access" %} {{ current_access_count }}

{% csrf_token %}

{{ form.users.label }}

{% trans "The owner always retains access to these settings. Selected users can report tickets on their allowed sites." %}

{{ selected_count }} {% trans "users selected" %}

{% trans "The owner is not included in this selection. Changes take effect after saving." %}

{% if shared_access %}

{% trans "New users have access to all sites by default. Individual site exceptions can be set below." %}

{% endif %} {{ form.non_field_errors }}{{ form.users.errors }} {% if form.users.field.queryset.exists %}{{ form.users }}{% else %}

{% trans "No other active Wagtail users are available." %}

{% endif %} {% if shared_access %}

{% trans "Access per subsite" %}

{% trans "Select the sites on which each user may report tickets. New sites are allowed by default. The owner can always manage these settings." %}

{% for item in form.site_access_fields %}
{{ item.user.get_full_name|default:item.user.get_username }}{% if item.is_owner %} · {% trans "Owner" %}{% endif %} {{ item.field.errors }}{{ item.field }}
{% endfor %}
{% endif %}
{% trans "View ticket form" %}
{% endblock %} {% block extra_js %}{{ block.super }}{% endblock %}