nomilo/templates/pages/new_record.html

134 lines
4.2 KiB
HTML

{% extends "bases/app.html" %}
{% import "macros/new_rrset.html" as new_rrset %}
{% 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 parent 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 site</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>sdv
<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 signature (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 %}
{% if config == "web" %}
<h2>Configure a web site for the domain <strong>{{ new_record_name }}</strong></h2>
<form>
<h3>Web servers</h3>
<div class="form-input">
<label for="address">IP Address #1</label>
<input name="address" id="address" type="text">
</div>
<button type="submit">Save configuration</button>
</form>
{% elif config == "mail" %}
<h2>Configure e-mails for the domain <strong>{{ new_record_name }}</strong></h2>
<form>
<h3>Mail servers</h3>
<fieldset>
<legend>Mail server #1</legend>
<div class="form-row">
<div class="form-input">
<label for="server">Server name</label>
<input name="server" id="server" type="text">
</div>
<div class="form-input">
<label for="preference">Preference</label>
<input name="preference" id="preference" type="text">
</div>
</div>
</fieldset>
<h3>Security</h3>
<div class="form-input">
<label for="spf">Sender policy (SPF)</label>
<input name="spf" id="spf" type="text">
</div>
<div class="form-input">
<label for="dmarc">Error reporting policy (DMARC)</label>
<input name="dmarc" id="dmarc" type="text">
</div>
<fieldset>
<legend>Cryptographic signature (DKIM) #1</legend>
<div class="form-row">
<div class="form-input">
<label for="dkim-selector">Selector</label>
<input name="dkim-selector" id="dkim-selector" type="text">
</div>
<div class="form-input">
<label for="dkim-key">Signing key</label>
<textarea name="dkim-key" id="dkim-key"></textarea>
</div>
</div>
</fieldset>
<button type="submit">Save configuration</button>
</form>
{% endif %}
{% endif %}
{% endblock %}