This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Please use wagtail-nhsuk-frontend package instead
Wagtail NHS Style
A wagtail implementation of the NHS frontend v0.8.0 standard components.
Installation
Install the pypi package
pip install wagtail-nhs-style
Add to your INSTALLED_APPS in wagtail settings
INSTALLED_APPS = [
...
'wagtailnhsstyle',
...
]
Use blocks in your streamfields
from wagtail.admin.edit_handlers import FieldPanel, StreamFieldPanel
from wagtail.core.models import Page
from wagtail.core.fields import StreamField
from wagtailnhsstyle.blocks import ActionLinkBlock, CalloutBlock
class HomePage(Page):
body = StreamField([
# Include any of the blocks you want to use.
('action_link', ActionLinkBlock()),
('callout', CalloutBlock()),
])
content_panels = Page.content_panels + [
StreamFieldPanel('body'),
]
Use templatetags
{% load nhsstyle_tags %}
<html>
...
<body>
{% breadcrumbs %}
</body>
</html>
Use template includes
{% include 'wagtailnhsstyle/header.html' with show_search=True %}
See the component documentation for a list of components you can use.
Include the CSS in your base template
<link rel="stylesheet" type="text/css" href="{% static 'wagtailnhsstyle/css/nhsuk-wagtail.min.css' %}">
Include the Javascript in your base template
<script type="text/javascript" src="{% static 'wagtailnhsstyle/js/nhsuk-0.8.0.min.js' %}" defer></script>
Further reading
See more documentation
Metadata
Release files for wagtail-nhs-style 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wagtail-nhs-style-0.1.0.tar.gz | 46.8 kB | Without provenance | Details for wagtail-nhs-style-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wagtail_nhs_style-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for wagtail_nhs_style-0.1.0-py3-none-any.whl |
Total release size: 99.8 kB
Release files / wagtail-nhs-style-0.1.0.tar.gz
| Download URL | wagtail-nhs-style-0.1.0.tar.gz |
|---|---|
| Size | 46.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a4724bc01259b1ddc1afb9155150a48e04665eb770001ca17651e175caf8730
|
|
BLAKE2b-256 checksum How to use checksums |
44aca446b07049050c28a46255cd76dc28c8c51f1f2f0ac69cc3b3d281ae2d36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.2
|
Release files / wagtail_nhs_style-0.1.0-py3-none-any.whl
| Download URL | wagtail_nhs_style-0.1.0-py3-none-any.whl |
|---|---|
| Size | 53.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c944e1e30b4c67d701ed8b470b1cd1c10996d320da9fc29c053fda35f183e163
|
|
BLAKE2b-256 checksum How to use checksums |
c452d3dfc29f1d16d6ca4fb2e7d00120ba20ce38967913b95e7f7cf7b663582a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.2
|
Security for wagtail-nhs-style 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.