{% if idn_zone_name %}
{% trans %}Edit zone{% endtrans %} "{{ idn_zone_name }}" ({{ zone_name_to_display }})
{% else %}
{% trans %}Edit zone{% endtrans %} "{{ zone_name_to_display }}"
{% endif %}
{{ pagination | raw }}
{% if not records %}
{% trans %}This zone does not have any records.{% endtrans %}

{% else %} {% if (perm_edit == "all" or (perm_edit == "own" or perm_edit == "own_as_client") and user_is_zone_owner == "1") and domain_type != "SLAVE" and iface_edit_add_record_top %}
{% if iface_edit_show_id %} {% endif %} {% if iface_edit_show_id %} {% endif %}
 {% trans %}Name{% endtrans %} {% trans %}Type{% endtrans %} {% trans %}Content{% endtrans %} {% trans %}Priority{% endtrans %} {% trans %}TTL{% endtrans %} {% if not is_reverse_zone and iface_add_reverse_record %} {% trans %}Add PTR{% endtrans %} {% endif %} {% if is_reverse_zone and iface_add_domain_record %} {% trans %}Add A/AAAA{% endtrans %} {% endif %}
 
{% trans %}Provide content{% endtrans %}
{% trans %}Provide TTL{% endtrans %}
{% if not is_reverse_zone and iface_add_reverse_record %} {% endif %} {% if is_reverse_zone and iface_add_domain_record %} {% endif %}

{% endif %}
{% if iface_edit_show_id %} {% endif %} {% if iface_record_comments %} {% endif %} {% for r in records %} {% if not(r['type'] == "SOA" or (r['type'] == "NS" and perm_edit == "own_as_client")) %} {% endif %} {% if iface_edit_show_id %} {% endif %} {% if r['type'] == "SOA" or r['type'] == "NS" and perm_edit == "own_as_client" %} {% if iface_record_comments %} {% endif %} {% else %} {% if iface_record_comments %} {% endif %} {% endif %} {% if domain_type == "SLAVE" or perm_edit == "none" or (perm_edit == "own" or perm_edit == "own_as_client") and user_is_zone_owner == "0" %} {% elseif r['type'] == "SOA" and perm_edit != "all" or r['type'] == "NS" and perm_edit == "own_as_client" %} {% else %} {% endif %} {% endfor %} {% if iface_zone_comments %} {% if iface_edit_show_id %} {% endif %} {% if iface_edit_show_id %} {% endif %} {% endif %}
{% trans %}Id{% endtrans %} {% if record_sort_by == 'id' %} {% endif %} {% trans %}Name{% endtrans %} {% if record_sort_by == 'name' %} {% endif %} {% trans %}Type{% endtrans %} {% if record_sort_by == 'type' %} {% endif %} {% trans %}Content{% endtrans %} {% if record_sort_by == 'content' %} {% endif %} {% trans %}Priority{% endtrans %} {% if record_sort_by == 'prio' %} {% endif %} {% trans %}TTL{% endtrans %} {% if record_sort_by == 'ttl' %} {% endif %} {% trans %}Comment{% endtrans %} {% trans %}Disabled{% endtrans %} {% if record_sort_by == 'disabled' %} {% endif %}  
{{ r['id'] }}{{ r['name'] }} {{ r['type'] }} {{ r['content'] }} - {{ r['ttl'] }}{{ r['comment'] ?? '-' }}{{ r['disabled'] ? 'Yes'|trans : 'No'|trans }}
   {% if not iface_record_comments %}{% trans %}Edit{% endtrans %}{% endif %} {% if not iface_record_comments %}{% trans %}Delete{% endtrans %}{% endif %}
{% trans %}Comments{% endtrans %}:
{% trans %}Edit comment{% endtrans %}
{% if perm_edit != "none" %} {% endif %} {% if pdnssec_use %} {% if is_secured %} {% else %} {% endif %} {% endif %}

{% endif %} {% if perm_edit == "all" or (perm_edit == "own" or perm_edit == "own_as_client") and user_is_zone_owner == "1" %} {% if domain_type != "SLAVE" and not iface_edit_add_record_top %}
{% if iface_record_comments %} {% endif %} {% if iface_record_comments %} {% endif %}
{% trans %}Name{% endtrans %}   {% trans %}Type{% endtrans %} {% trans %}Content{% endtrans %} {% trans %}Priority{% endtrans %} {% trans %}TTL{% endtrans %}{% trans %}Comment{% endtrans %}
.{{ idn_zone_name ?: zone_name }} IN
{% trans %}Provide content{% endtrans %}
{% trans %}Provide TTL{% endtrans %}
{% if not is_reverse_zone and iface_add_reverse_record %}   {% trans %}Also add a PTR record in the matching zone{% endtrans %} {% endif %} {% if is_reverse_zone and iface_add_domain_record %}   {% trans %}Also add an A/AAAA record in the matching zone{% endtrans %} {% endif %}

{% endif %}
{% if perm_zone_master_add and domain_type != "SLAVE"%}
{% trans %}Save as new template{% endtrans %}
{% trans %}Template Name{% endtrans %}
{% trans %}Provide template name{% endtrans %}
{% trans %}Template Description{% endtrans %}

{% endif %}
{% endif %}
{% if owners == "-1" %} {% else %} {% if meta_edit %} {% for owner in owners %} {% endfor %} {% else %} {% for owner in owners %} {% endfor %} {% endif %} {% endif %} {% if meta_edit %} {% endif %} {% if meta_edit %} {% else %} {% endif %} {% if domain_type == "SLAVE" %} {% if meta_edit %} {% else %} {% endif %} {% endif %} {% if meta_edit %} {% else %} {% endif %}
{% trans %}Owner of zone{% endtrans %}
{% trans %}No owner set for this zone.{% endtrans %}
{% if owner["fullname"] %} {{ owner["fullname"] }} {% else %} {{ owner["username"] }} {% endif %}
{% if owner["fullname"] %} {{ owner["fullname"] }} {% else %} {{ owner["username"] }} {% endif %}  
{% trans %}Type{% endtrans %}
{{ domain_type | lower }}  
{% trans %}IP address of master NS{% endtrans %}
{{ slave_master }}  
{% trans %}Template{% endtrans %}
{% if zone_template_details %} {{ zone_template_details['name'] | lower }} {% else %} none {% endif %}