From ae788a67d1a65aa416830e98473c9036d4846e6d Mon Sep 17 00:00:00 2001 From: Kristina Yin Date: Mon, 30 Oct 2023 20:21:53 -0700 Subject: [PATCH] corrected template tags --- src/registrar/templates/application_tribal_government.html | 2 +- src/registrar/templates/includes/input_with_errors.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/registrar/templates/application_tribal_government.html b/src/registrar/templates/application_tribal_government.html index 84a7d83b3..bdca60907 100644 --- a/src/registrar/templates/application_tribal_government.html +++ b/src/registrar/templates/application_tribal_government.html @@ -7,7 +7,7 @@ {% with sublabel_text="Please include the entire name of your tribe as recognized by the Bureau of Indian Affairs." %} {% with link_text="Bureau of Indian Affairs" %} {% with link_href="https://www.federalregister.gov/documents/2023/01/12/2023-00504/indian-entities-recognized-by-and-eligible-to-receive-services-from-the-united-states-bureau-of" %} - {% with class="usa-link usa-link--external" rel="noopener noreferrer" target_blank="true" %} + {% with external_link="true" target_blank="true" %} {% input_with_errors forms.0.tribe_name %} {% endwith %} {% endwith %} diff --git a/src/registrar/templates/includes/input_with_errors.html b/src/registrar/templates/includes/input_with_errors.html index 2adc08984..a7f15b9c8 100644 --- a/src/registrar/templates/includes/input_with_errors.html +++ b/src/registrar/templates/includes/input_with_errors.html @@ -37,7 +37,7 @@ error messages, if necessary. {% with link_index=sublabel_text|find_index:link_text %} {{ sublabel_text|slice:link_index }} {% comment %} HTML will convert a new line into a space, resulting with a space before the fullstop in case link_text is at the end of sublabel_text, hence the unfortunate line below {% endcomment %} - {{ link_text }}{% with sublabel_part_after=sublabel_text|slice_after:link_text %}{{ sublabel_part_after }}{% endwith %} + {{ link_text }}{% with sublabel_part_after=sublabel_text|slice_after:link_text %}{{ sublabel_part_after }}{% endwith %} {% endwith %} {% else %} {{ sublabel_text }}