Skip to content

Commit

Permalink
Add version of the dashboard showing no vaccinations recorded yet (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnrimmer2 authored Nov 28, 2024
1 parent 71259eb commit 7b7041a
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/routes/home.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
module.exports = router => {

// Dashboard

router.get('/home/no-records', (req, res) => {
res.render('home/no-records')
})

router.get('/home', (req, res) => {

const dateToday = new Date()
Expand Down
78 changes: 78 additions & 0 deletions app/views/home/no-records.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{% extends 'layout.html' %}

{% block pageTitle %}
{{ currentOrganisation.name }} – Home
{% endblock %}

{% set currentSection = "home" %}




{% block content %}


<div class="nhsuk-grid-row">
<div class="nhsuk-grid-column-two-thirds">
<h1 class="nhsuk-heading-l nhsuk-u-margin-bottom-6">{{ currentOrganisation.name }}</h1>

<p>You have not yet recorded a vaccination.</p>

<p class="nhsuk-body"><a href="/vaccines/choose-site">Add vaccines</a></p>

<p class="nhsuk-body"><a href="/user-admin/add-user">Add users</a></p>

<p class="nhsuk-body"><a href="/find-a-patient">Find a patient</a></p>

<p>Find help and guidance at <a href="/reports">guide.ravs.england.nhs.uk</a></p>



<h2 class="nhsuk-heading-m">Total vaccinations</h2>

</div>
</div>


<ul class="nhsuk-grid-row nhsuk-card-group">

<li class="nhsuk-grid-column-one-quarter nhsuk-card-group__item">
{% set cardHtml %}
<p class="nhsuk-heading-xl nhsuk-u-font-size-64 nhsuk-u-margin-bottom-1">0</p>
Today
{% endset %}

{{ card({
headingHtml: cardHtml
}) }}
</li>

<li class="nhsuk-grid-column-one-quarter nhsuk-card-group__item">
{% set cardHtml %}
<p class="nhsuk-heading-xl nhsuk-u-font-size-64 nhsuk-u-margin-bottom-1">0</p>
Past 7 days
{% endset %}

{{ card({
headingHtml: cardHtml
}) }}
</li>


<li class="nhsuk-grid-column-one-quarter nhsuk-card-group__item">
{% set cardHtml %}
<p class="nhsuk-heading-xl nhsuk-u-font-size-64 nhsuk-u-margin-bottom-1">0</p>
November so far
{% endset %}

{{ card({
headingHtml: cardHtml
}) }}
</li>

</ul>


</div>
</div>
{% endblock %}

0 comments on commit 7b7041a

Please sign in to comment.