Merge pull request #2567 from alphagov/dont-stick-on-sms

Remove sticky textbox for one-off text messages
This commit is contained in:
Chris Hill-Scott
2018-12-07 10:55:35 +00:00
committed by GitHub
2 changed files with 31 additions and 1 deletions

View File

@@ -14,7 +14,10 @@
{{ page_title }}
</h1>
{% call form_wrapper(class="js-stick-at-top-when-scrolling", module="autofocus") %}
{% call form_wrapper(
class="js-stick-at-top-when-scrolling" if template.template_type != 'sms' else '',
module="autofocus"
) %}
<div class="grid-row">
<div class="column-two-thirds {% if form.placeholder_value.label.text == 'phone number' %}extra-tracking{% endif %}">
{{ textbox(