mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Update all, but one, <details> to component
Includes: - in gulpfile.js: - add details macro to list of those copied from GOVUK Frontend - remove existing details polyfill - convert all, but one, <details> tags to use GOVUK Frontend details component - add jinja boolean filter to help setting 'open' attribute of <details> tags Notes on the `<details>` not included in this: The `<details>` used for notifications items on the API integration page is not possible to reproduce with the GOV.UK Frontend macro so I'm splitting the resulting work out into it's own commit.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{% extends "content_template.html" %}
|
||||
{% from "components/table.html" import mapping_table, row, text_field, edit_field, field with context %}
|
||||
{% from "components/sub-navigation.html" import sub_navigation %}
|
||||
{% from "components/details/macro.njk" import govukDetails %}
|
||||
|
||||
{% block per_page_title %}
|
||||
Get started
|
||||
@@ -14,21 +15,22 @@
|
||||
<li class="get-started-list__item">
|
||||
<h2 class="get-started-list__heading">Check if GOV.UK Notify is right for you</h2>
|
||||
<p>Read about our <a href="{{ url_for('main.features') }}">features</a>, <a href="{{ url_for('.pricing') }}">pricing</a> and <a href="{{ url_for('main.roadmap') }}">roadmap</a>.</p>
|
||||
<details>
|
||||
<summary>Organisations that can use Notify</summary>
|
||||
<div id="eligible-organisations">
|
||||
<p>Notify is available to:</p>
|
||||
<ul class="list list-bullet">
|
||||
<li>central government departments</li>
|
||||
<li>local authorities</li>
|
||||
<li>state-funded schools</li>
|
||||
<li>housing associations</li>
|
||||
<li>the NHS</li>
|
||||
<li>companies owned by local or central government that deliver services on their behalf</li>
|
||||
</ul>
|
||||
<p>Notify is not currently available to charities.</p>
|
||||
</div>
|
||||
</details>
|
||||
{{ govukDetails({
|
||||
"summaryText": "Organisations that can use Notify",
|
||||
"html": '''
|
||||
<div id="eligible-organisations">
|
||||
<p>Notify is available to:</p>
|
||||
<ul class="list list-bullet">
|
||||
<li>central government departments</li>
|
||||
<li>local authorities</li>
|
||||
<li>state-funded schools</li>
|
||||
<li>housing associations</li>
|
||||
<li>the NHS</li>
|
||||
<li>companies owned by local or central government that deliver services on their behalf</li>
|
||||
</ul>
|
||||
<p>Notify is not currently available to charities.</p>
|
||||
</div>'''
|
||||
}) }}
|
||||
</li>
|
||||
|
||||
<li class="get-started-list__item">
|
||||
|
||||
Reference in New Issue
Block a user