diff --git a/src/registrar/templates/domain_nameservers.html b/src/registrar/templates/domain_nameservers.html index f9e901b32..f1dd3cff8 100644 --- a/src/registrar/templates/domain_nameservers.html +++ b/src/registrar/templates/domain_nameservers.html @@ -18,6 +18,7 @@ {{ formset.management_form }} {% for form in formset %} + {% with sublabel_text="Example: ns"|concat:forloop.counter|concat:".nameserver.com" %} {% if forloop.counter <= 2 %} {% with attr_required=True %} {% input_with_errors form.server %} @@ -25,9 +26,17 @@ {% else %} {% input_with_errors form.server %} {% endif %} + {% endwith %} {% endfor %} - + + + diff --git a/src/registrar/templates/includes/input_with_errors.html b/src/registrar/templates/includes/input_with_errors.html index 54ae475bf..2724aef28 100644 --- a/src/registrar/templates/includes/input_with_errors.html +++ b/src/registrar/templates/includes/input_with_errors.html @@ -28,6 +28,10 @@ error messages, if necessary. {% include "django/forms/label.html" %} {% endif %} + {% if sublabel_text %} +
{{ sublabel_text }}
+ {% endif %} + {% if field.errors %}