mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 20:58:26 -04:00
This commit removes the code the puts areas into the session and instead creates and then updates a draft broadcast in the database. This is so we can avoid session-related bugs, and potentially having a large session when we start adding personalisation etc. Once a broadcast is ready to go it is set to `broadcasting` straight away with no approval. We’ll revisit this as we learn more about how users might want to manage who can create and approve broadcasts. The tests are a bit light in terms of checking what’s on the page, but clicking through the pages is probably good enough for now.
28 lines
884 B
HTML
28 lines
884 B
HTML
{% from "components/page-header.html" import page_header %}
|
|
{% from "components/page-footer.html" import sticky_page_footer %}
|
|
{% from "components/checkbox.html" import checkboxes %}
|
|
{% from "components/form.html" import form_wrapper %}
|
|
{% from "components/live-search.html" import live_search %}
|
|
|
|
{% extends "withnav_template.html" %}
|
|
|
|
{% block service_page_title %}
|
|
{{ page_title }}
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
{{ page_header(
|
|
page_title,
|
|
back_link=url_for('.choose_broadcast_library', service_id=current_service.id, broadcast_message_id=broadcast_message_id),
|
|
)}}
|
|
|
|
{{ live_search(target_selector='.multiple-choice', show=show_search_form, form=search_form, label='Search by name') }}
|
|
|
|
{% call form_wrapper() %}
|
|
{{ checkboxes(form.areas, hide_legend=True) }}
|
|
{{ sticky_page_footer('Add to broadcast') }}
|
|
{% endcall %}
|
|
|
|
{% endblock %}
|