{% extends "org_template.html" %}
{% from "components/page-header.html" import page_header %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/live-search.html" import live_search %}
{% from "components/form.html" import form_wrapper %}
{% from "components/back-link/macro.njk" import govukBackLink %}

{% block org_page_title %}
  Add email branding options
{% endblock %}

{% block backLink %}
  {{ govukBackLink({ "href": url_for('.organisation_settings', org_id=current_org.id) }) }}
{% endblock %}

{% block maincolumn_content %}
  {{ page_header("Add email branding options") }}
  {{ live_search(target_selector='.govuk-checkboxes__item', show=True, form=search_form, autofocus=True) }}

  <div class="govuk-grid-row">
    <div class="govuk-grid-column-five-sixths">
      {% call form_wrapper() %}
        <div class="brand-pool">
            {{ form.branding_field }}
        </div>
      {{ page_footer('Add') }}
      {% endcall %}
    </div>
  </div>
{% endblock %}

{% extends "org_template.html" %}
{% from "components/page-header.html" import page_header %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/live-search.html" import live_search %}
{% from "components/form.html" import form_wrapper %}
{% from "components/back-link/macro.njk" import govukBackLink %}

{% block org_page_title %}
  Add email branding options
{% endblock %}

{% block backLink %}
  {{ govukBackLink({ "href": url_for('.organisation_settings', org_id=current_org.id) }) }}
{% endblock %}

{% block maincolumn_content %}
  {{ page_header("Add email branding options") }}
  {{ live_search(target_selector='.govuk-checkboxes__item', show=True, form=search_form, autofocus=True) }}

  <div class="govuk-grid-row">
    <div class="govuk-grid-column-five-sixths">
      {% call form_wrapper() %}
        <div class="brand-pool">
            {{ form.branding_field }}
        </div>
      <div class="js-stick-at-bottom-when-scrolling">
        {{ page_footer('Add') }}
      </div>
      {% endcall %}
    </div>
  </div>
{% endblock %}

Add sticky footer for the form to add email branding to pool
Add sticky footer for the form to add email branding to pool

There are a lot of email brandings in production, so this changes the
form to add branding for an org so that the "Add" button is in a
sticky-footer. Without this change, you have to scroll a long way down
each time you need to add a brand.
