nomilo/templates/pages/new_record/choose_name.html
2025-06-10 14:25:36 +01:00

28 lines
1.2 KiB
HTML

<h2>{{ tr(msg="record-choose-name-heading", lang=lang) }}</h2>
<form action="" method="GET">
<div class="form-input">
<label for="name">{{ tr(msg="record-input-name", attr="input-label", lang=lang) }}</label>
<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>
</div>
{% if domain_error %}
<p class="error" id="name-error">
{{ tr(
msg="record-input-name",
attr="error-" ~ domain_error.code | replace(from=":", to="-"),
extra_args=domain_error | get(key="details", default=""),
lang=lang) }}
</p>
{% endif %}
<p id="name-help">{{ tr(msg="record-input-name", attr="help-description", zone=current_zone, lang=lang) }}</p>
<button type="submit">{{ tr(msg="button-create-record-next-step", lang=lang) }}</button>
</form>