nomilo/templates/pages/new_record/choose_name.html
2026-07-01 01:12:30 +02:00

33 lines
1.5 KiB
HTML

<h1>{{ tr(msg="record-choose-name-heading") }}</h1>
<form action="" method="GET">
<div class="form-input">
<label for="name">{{ tr(msg="record-input-name", attr="input-label") }}</label>
<div>
<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 %}name-description"
value="{{ new_record_name | default(value="") }}"
>
<span>.{{ current_zone }}</span>
</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="")) }}
</p>
{% endif %}
<p class="help" id="name-description">{{ tr(msg="record-input-name", attr="help-description", zone=current_zone) }}</p>
</div>
</div>
<div class="form-action">
<a class="button secondary" href="/zones/{{ current_zone }}/records">{{ tr(msg="record-config-cancel-button") }}</a>
<button type="submit" class="primary">{{ tr(msg="button-create-record-configure-subdomain") }}</button>
</div>
</form>