nomilo/templates/pages/new_record/choose_name.html
2025-05-13 20:23:26 +02:00

21 lines
899 B
HTML

<h2>Choose the name of the new record</h2>
<form action="" method="GET">
<label for="name">Name of the new record</label>
{% set domain_error = errors | get(key="/name", default="") %}
<div class="input-group">
<input
type="text"
name="name"
id="name"
{% if domain_error %}aria-invalid="true"{% endif %}
aria-describedby="{% if domain_error %}name-error {% endif %}subdomain-help"
value="{{ new_record_name | default(value="") }}"
>
<span>.{{ current_zone }}</span>
</div>
{% if domain_error %}
<p class="error" id="name-error">{{ domain_error.description }}</p>
{% endif %}
<p id="name-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>