mirror of
https://forge.dns-witch.net/dns-witch/nomilo.git
synced 2026-07-02 20:55:03 +02:00
51 lines
1.7 KiB
HTML
51 lines
1.7 KiB
HTML
{%- 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 -%}
|