mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-17 13:09:42 -04:00
Enable autosizing for some textboxes
This commit makes textboxes auto-resize any time they might be used to enter long passages of text which would otherwise make them scroll internally.
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
belonging to this organisation requests to go live.
|
||||
</p>
|
||||
{% call form_wrapper() %}
|
||||
{{ textbox(form.request_to_go_live_notes, width='1-1', rows=3) }}
|
||||
{{ textbox(form.request_to_go_live_notes, width='1-1', rows=3, autosize=True) }}
|
||||
{{ page_footer('Save') }}
|
||||
{% endcall %}
|
||||
</div>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="column-two-thirds">
|
||||
<h1 class="heading-large">Submit returned letters</h1>
|
||||
{% call form_wrapper() %}
|
||||
{{ textbox(form.references, width='1-1', rows=8) }}
|
||||
{{ textbox(form.references, width='1-1', rows=8, autosize=True) }}
|
||||
{{ page_footer("Submit") }}
|
||||
{% endcall %}
|
||||
</div>
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
form.something_else,
|
||||
hint='Include links to your brand guidelines or examples of how to use your branding',
|
||||
width='1-1',
|
||||
autosize=True,
|
||||
) }}
|
||||
{% endcall %}
|
||||
{% endif %}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<div class="grid-row">
|
||||
<div class="column-two-thirds">
|
||||
{% call form_wrapper() %}
|
||||
{{ textbox(form.feedback, width='1-1', hint='', rows=10) }}
|
||||
{{ textbox(form.feedback, width='1-1', hint='', rows=10, autosize=True) }}
|
||||
{% if not current_user.is_authenticated %}
|
||||
<h3 class="heading-medium">Do you want a reply?</h3>
|
||||
<p>Leave your details below if you’d like a response.</p>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
</p>
|
||||
</div>
|
||||
{% call form_wrapper() %}
|
||||
{{ textbox(form.feedback, width='1-1', hint='', rows=10) }}
|
||||
{{ textbox(form.feedback, width='1-1', hint='', rows=10, autosize=True) }}
|
||||
{% if not current_user.is_authenticated %}
|
||||
{{ textbox(form.name, width='1-1') }}
|
||||
{{ textbox(form.email_address, width='1-1') }}
|
||||
|
||||
Reference in New Issue
Block a user