mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 02:58:25 -04:00
Add and use textarea component from GOV.UK Frontend
For the "Something else" branding form we want the form label to be the title. This brings in the textarea component from GOV.UK Frontend in order to do this since that contains code to set a the textarea label as the page heading in an accessible way. The rest of the textarea fields have not been switched to use the new component yet.
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
{% from "components/form.html" import form_wrapper %}
|
||||
{% from "components/back-link/macro.njk" import govukBackLink %}
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
{% from "components/page-header.html" import page_header %}
|
||||
{% from "components/textbox.html" import textbox %}
|
||||
{% from "components/textarea/macro.njk" import govukTextarea %}
|
||||
|
||||
{% block service_page_title %}
|
||||
Describe the branding you want
|
||||
@@ -17,14 +17,8 @@
|
||||
|
||||
{% block maincolumn_content %}
|
||||
|
||||
{{ page_header('Describe the branding you want') }}
|
||||
|
||||
{% call form_wrapper() %}
|
||||
{{ textbox(
|
||||
form.something_else,
|
||||
hint='Include links to your brand guidelines or examples of how to use your branding.',
|
||||
width='1-1',
|
||||
) }}
|
||||
{% call form_wrapper(class="govuk-!-margin-top-3") %}
|
||||
{{ form.something_else }}
|
||||
<p class="form-group">We’ll email you when your branding is ready, or if we need any more information.</p>
|
||||
{{ page_footer('Request new branding') }}
|
||||
{% endcall %}
|
||||
|
||||
Reference in New Issue
Block a user