nomilo/templates/pages/new_record/choose_name.html

22 lines
899 B
HTML
Raw Normal View History

2025-05-11 11:40:35 +00:00
<h2>Choose the name of the new record</h2>
<form action="" method="GET">
2025-05-13 18:23:26 +00:00
<label for="name">Name of the new record</label>
{% set domain_error = errors | get(key="/name", default="") %}
2025-05-11 11:40:35 +00:00
<div class="input-group">
<input
type="text"
2025-05-13 18:23:26 +00:00
name="name"
id="name"
2025-05-11 11:40:35 +00:00
{% if domain_error %}aria-invalid="true"{% endif %}
2025-05-13 18:23:26 +00:00
aria-describedby="{% if domain_error %}name-error {% endif %}subdomain-help"
value="{{ new_record_name | default(value="") }}"
2025-05-11 11:40:35 +00:00
>
<span>.{{ current_zone }}</span>
</div>
{% if domain_error %}
2025-05-13 18:23:26 +00:00
<p class="error" id="name-error">{{ domain_error.description }}</p>
2025-05-11 11:40:35 +00:00
{% endif %}
2025-05-13 18:23:26 +00:00
<p id="name-help">Only the subdomain, without the parent domain. For instance, "www" to create the subdomain "www.{{ current_zone }}".</p>
2025-05-11 11:40:35 +00:00
<button type="submit">Next step</button>
</form>