mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
We feel that this is more appropriate because it’s part of the information you’re agreeing to before you hit submit. Sometimes users can missing information that doesn’t start left-aligned to the column they’re interacting with. It also makes it closer to the Design System component. We’re keeping it in the sticky footer, so that it’s always visible no matter where in the message you’re scrolled to (this means you won’t have to edited to content then scroll down to check whether you’ve made it fit).
48 lines
1.6 KiB
HTML
48 lines
1.6 KiB
HTML
{% extends "withnav_template.html" %}
|
|
{% from "components/textbox.html" import textbox %}
|
|
{% from "components/page-header.html" import page_header %}
|
|
{% from "components/page-footer.html" import page_footer %}
|
|
{% from "components/form.html" import form_wrapper %}
|
|
|
|
{% block service_page_title %}
|
|
{{ heading_action }} template
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
{{ page_header(
|
|
'{} template'.format(heading_action),
|
|
back_link=url_for('main.view_template', service_id=current_service.id, template_id=template.id) if template else url_for('main.choose_template', service_id=current_service.id, template_folder_id=template_folder_id)
|
|
) }}
|
|
|
|
{% call form_wrapper() %}
|
|
<div class="govuk-grid-row">
|
|
<div class="govuk-grid-column-two-thirds">
|
|
{{ form.name(param_extensions={
|
|
"classes": "govuk-!-width-full",
|
|
"hint": {"text": "Your recipients will not see this"},
|
|
}) }}
|
|
{{ textbox(
|
|
form.template_content,
|
|
highlight_placeholders=False,
|
|
autosize=True,
|
|
width='1-1',
|
|
rows=5,
|
|
extra_form_group_classes='govuk-!-margin-bottom-2'
|
|
) }}
|
|
</div>
|
|
<div class="govuk-grid-column-full">
|
|
<div class="js-stick-at-bottom-when-scrolling">
|
|
<div class="template-content-count">
|
|
<div data-module="update-status" data-target="template_content" data-updates-url="{{ url_for('.count_content_length', service_id=current_service.id, template_type='broadcast') }}" aria-live="polite">
|
|
</div>
|
|
</div>
|
|
{{ page_footer('Save') }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endcall %}
|
|
|
|
|
|
{% endblock %}
|