nomilo/templates/pages/new_record.html
2026-07-01 01:12:30 +02:00

51 lines
1.7 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{%- extends "bases/app.html" -%}
{% block scripts %}
{{ super() }}
<script src="/assets/scripts/configure-services.js"></script>
{% endblock scripts %}
{%- block title -%}
{%- if errors -%}{{ tr(msg="title-error")}} {% endif -%}
{%- if not new_record_name or (new_record_name and domain_error) -%}
{{ tr(msg="new-record-new-subdomain-title") }}
{%- elif not record_config -%}
{{ tr(msg="new-record-new-configuration-title") }}
{%- else -%}
{%- if record_config == "web" -%}
{{ tr(msg="new-record-configuration-web-title") }}
{%- elif record_config == "mail" -%}
{{ tr(msg="new-record-configuration-mail-title") }}
{%- elif record_config == "services" -%}
{{ tr(msg="new-record-configuration-services-title") }}
{%- endif -%}
{%- endif %} {{ current_zone }} {% endblock -%}
{%- block main -%}
<details>
<summary>Debug</summary>
<strong>Erreurs</strong>
<pre>{{ errors | json_encode(pretty=true) }}</pre>
<strong>Input</strong>
<pre>{{ input_data | json_encode(pretty=true) }}</pre>
</details>
{%- set domain_error = errors | get(key="/name", default="") -%}
{%- if not new_record_name or (new_record_name and domain_error) -%}
{%- include "pages/new_record/choose_name.html" -%}
{%- elif not record_config -%}
{%- include "pages/new_record/choose_record.html" -%}
{%- else -%}
{%- if record_config == "web" -%}
{%- include "pages/new_record/configs/web.html" -%}
{%- elif record_config == "mail" -%}
{%- include "pages/new_record/configs/mail.html" -%}
{%- elif record_config == "services" -%}
{%- include "pages/new_record/configs/services.html" -%}
{%- endif -%}
{%- endif -%}
{%- endblock -%}