{% 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 and iface_show_add_record_form %}
{% if form_data.errorMessage is defined %}
{{ form_data.errorMessage }}
{% elseif form_data.multi_record_error %}
{% if form_data.failure_count > 0 %}
{% trans %}Failed to add {% endtrans %}{{ form_data.failure_count }} {% trans %}record(s). Please check the record format.{% endtrans %}
{% else %}
{% trans %}Failed to add records. Please check the record format.{% endtrans %}
{% endif %}
{% elseif form_data.content %}
{% trans %}Content validation failed:{% endtrans %} {% trans %}Invalid value for record type{% endtrans %} {{ form_data.type }}.
{% else %}
{% trans %}Please provide all required information.{% endtrans %}
{% endif %}
{% if perm_edit != "none" and iface_edit_save_changes_top %}
{% endif %}
{% if not iface_show_add_record_form and (perm_edit == "all" or (perm_edit == "own" or perm_edit == "own_as_client") and user_is_zone_owner == "1") and domain_type != "SLAVE" %}
{% trans %}Add record{% endtrans %}
{% endif %}
{% if dns_wizard_actions is defined and dns_wizard_actions|length > 0 and not is_reverse_zone and (perm_edit == "all" or (perm_edit == "own" or perm_edit == "own_as_client") and user_is_zone_owner == "1") and domain_type != "SLAVE" %}
{% for action in dns_wizard_actions %}
{{ action.label|trans }}
{% endfor %}
{% endif %}
{% if whois_actions is defined and whois_actions|length > 0 %}
{% for action in whois_actions %}
{{ action.label }}
{% endfor %}
{% endif %}
{% if rdap_actions is defined and rdap_actions|length > 0 %}
{% for action in rdap_actions %}
{{ action.label }}
{% endfor %}
{% endif %}
{% trans %}Ownership{% endtrans %}
{% if meta_edit or perm_view != "none" %}
{% if meta_edit %}{% trans %}Metadata{% endtrans %}{% else %}{% trans %}View Metadata{% endtrans %}{% endif %}
{% endif %}
{% if (perm_zone_templ_add or perm_is_godlike) and domain_type != "SLAVE" %}
{% trans %}Save as Template{% endtrans %}
{% endif %}
{% if not records %}
{% if search_term or record_type_filter or content_filter %}
{% trans %}This zone does not have any records.{% endtrans %}
{% endif %}
{% else %}
{{ pagination | raw }}
{% if filtered_record_count != record_count %}
{% trans %}Showing{% endtrans %} {{ filtered_record_count }} {% trans %}of{% endtrans %} {{ record_count }} {% trans %}total records{% endtrans %}
{% 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 and iface_show_add_record_form %}
{% if form_data.errorMessage is defined %}
{{ form_data.errorMessage }}
{% elseif form_data.multi_record_error %}
{% if form_data.failure_count > 0 %}
{% trans %}Failed to add {% endtrans %}{{ form_data.failure_count }} {% trans %}record(s). Please check the record format.{% endtrans %}
{% else %}
{% trans %}Failed to add records. Please check the record format.{% endtrans %}
{% endif %}
{% elseif form_data.content %}
{% trans %}Content validation failed:{% endtrans %} {% trans %}Invalid value for record type{% endtrans %} {{ form_data.type }}.
{% else %}
{% trans %}Please provide all required information.{% endtrans %}
{% endif %}