nomilo/templates/pages/new_record.html
2025-03-31 02:16:10 +02:00

61 lines
2.3 KiB
HTML

{% extends "bases/app.html" %}
{% block title %}New record - {{ current_zone }} - {% endblock title %}
{% block main %}
<h1>Create a new record in zone {{ current_zone }}</h1>
{% if not new_record_name or (new_record_name and domain_error) %}
<h2>Choose the name of the new record</h2>
<form action="" method="GET">
<label for="subdomain">Name of the new record</label>
<div class="input-group">
<input
type="text"
name="subdomain"
id="subdomain"
{% if domain_error %}aria-invalid="true"{% endif %}
aria-describedby="subdomain-help{% if domain_error %} subdomain-error{% endif %}"
>
<span>.{{ current_zone }}</span>
</div>
{% if domain_error %}
<p class="error" id="subdomain-error">{{ domain_error.description }}</p>
{% endif %}
<p id="subdomain-help">Only the subdomain, without the main domain. For instance, "www" to create the subdomain "www.{{ current_zone }}".</p>
<button type="submit">Next step</button>
</form>
{% elif not config and not rtype %}
<h2>Configure the domain {{ new_record_name }}...</h2>
<ul>
<li><a href="{{ url }}&config=web">Web</a></li>
<li><a href="{{ url }}&config=mail">E-mails</a></li>
</ul>
<h2>...or create a new record for the domain {{ new_record_name }}</h2>
<h3>General</h3>
<ul>
<li><a href="{{ url }}&rtype=address">Address (A or AAAA)</a></li>
<li><a href="{{ url }}&rtype=alias">Alias (CNAME)</a></li>
<li><a href="{{ url }}&rtype=text">Text (TXT)</a></li>
<li><a href="{{ url }}&rtype=service">Service (SRV)</a></li>
</ul>
<h3>E-mails</h3>
<ul>
<li><a href="{{ url }}&rtype=service">Mail servers (MX)</a></li>
<li><a href="{{ url }}&rtype=spf">Sender policy (SPF)</a></li>
<li><a href="{{ url }}&rtype=dkim">Cryptographic signatures (DKIM)</a></li>
<li><a href="{{ url }}&rtype=dmarc">Error reporting (DMARC)</a></li>
</ul>
<h3>Security</h3>
<ul>
<li><a href="{{ url }}&rtype=dane">Domain authentication (TLSA)</a></li>
<li><a href="{{ url }}&rtype=sshfp">SSH keys fingerprint (SSHFP)</a></li>
</ul>
<h3>DNS Delegation</h3>
<ul>
<li><a href="{{ url }}&rtype=nameserver">Nameserver (NS)</a></li>
<li><a href="{{ url }}&rtype=ds">Delegation signer (DS)</a></li>
</ul>
{% else %}
{% endif %}
{% endblock %}