Skip to content

Commit 752944e

Browse files
Merge pull request #1134 from NHSDigital/DTOSS-12364-design-tweaks
Design tweaks from snagging
2 parents 73b4a4e + b7da0c4 commit 752944e

File tree

14 files changed

+70
-32
lines changed

14 files changed

+70
-32
lines changed

manage_breast_screening/core/jinja2/components/appointment-header/template.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<p class="nhsuk-u-secondary-text-colour"><span>NHS Number: {{ participant.nhs_number }}</span></p>
77

8-
<p>{{ clinic_slot.slot_time_and_clinic_date }}</p>
8+
<p>{{ clinic_slot.slot_timestamp_multi_line }}</p>
99

1010
{% if appointment.can_be_started_by(user) %}
1111
<form action="{{ url('mammograms:start_appointment', kwargs={'pk': appointment.pk}) }}" method="post">

manage_breast_screening/core/jinja2/layout-appointment.jinja

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@
3232
{{ app_appointment_status(presented_appointment) }}
3333

3434
<ul class="nhsuk-list">
35-
{% if not appointment.current_status.is_screened %}
36-
<li>
37-
<a href="#" class="nhsuk-link--no-visited-state">Cancel or reschedule appointment</a>
38-
</li>
39-
{% endif %}
4035
<li>
4136
<a href="{{ presented_appointment.special_appointment_url }}" class="nhsuk-link--no-visited-state">
4237
{% if presented_appointment.can_be_made_special %} Make special appointment

manage_breast_screening/mammograms/jinja2/mammograms/medical_information/other_information/forms/hormone_replacement_therapy.jinja

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@
2323

2424
<div class="nhsuk-button-group">
2525
{{ button({
26-
"text": "Save"
26+
"text": "Continue"
2727
}) }}
2828
</div>
2929
</form>
30+
31+
<p>
32+
<a class="nhsuk-link nhsuk-link--no-visited-state" href="{{ appointment_cannot_proceed_href }}">Appointment cannot proceed</a>
33+
</p>
3034
</div>
3135
</div>
3236
{% endblock %}

manage_breast_screening/mammograms/jinja2/mammograms/medical_information/section_cards.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
"html": insetHtml,
5353
"classes": "nhsuk-u-margin-top-0 nhsuk-u-margin-bottom-4"
5454
}) }}
55+
<hr>
5556
{% endif %}
5657

5758
{% if not read_only %}
58-
<hr>
5959
<h3>Add symptoms</h3>
6060

6161
<div class="nhsuk-button-group app-button-group--small">

manage_breast_screening/mammograms/jinja2/mammograms/medical_information/symptoms/forms/inline_area_radios.jinja

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@
6969
{
7070
"value": "OTHER",
7171
"text": "Other",
72-
"hint": {
73-
"text": "For example, the armpit"
74-
},
7572
"conditional": {
7673
"html": form.area_description_other.as_field_group()
7774
}

manage_breast_screening/mammograms/jinja2/mammograms/medical_information/symptoms/forms/simple_symptom.jinja

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
{% from "nhsuk/components/fieldset/macro.jinja" import fieldset %}
44

55
{% block form %}
6+
{% if heading_description %}
7+
<div class="nhsuk-inset-text nhsuk-u-margin-top-0 nhsuk-u-margin-bottom-4">
8+
<p>{{ heading_description }}</p>
9+
</div>
10+
{% endif %}
11+
612
{% include "mammograms/medical_information/symptoms/forms/inline_area_radios.jinja" %}
713

814
{% do form.when_started.add_divider_after("OVER_THREE_YEARS", "or") %}

manage_breast_screening/mammograms/jinja2/mammograms/record_medical_information.jinja

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@
2929
{% endcall %}
3030

3131
{% call card_with_status(
32-
presented_section=presenter.get_section(sections.SYMPTOMS),
32+
presented_section=presenter.get_section(sections.MEDICAL_HISTORY),
3333
csrf_input=csrf_input,
3434
) %}
35-
{{ symptoms_content(presenter) }}
35+
{{ medical_history_content(presenter) }}
3636
{% endcall %}
3737

3838
{% call card_with_status(
39-
presented_section=presenter.get_section(sections.MEDICAL_HISTORY),
39+
presented_section=presenter.get_section(sections.SYMPTOMS),
4040
csrf_input=csrf_input,
4141
) %}
42-
{{ medical_history_content(presenter) }}
42+
{{ symptoms_content(presenter) }}
4343
{% endcall %}
4444

4545
{% call card_with_status(

manage_breast_screening/mammograms/jinja2/mammograms/show/appointment_details.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"text": "Scheduled date and time"
2323
},
2424
"value": {
25-
"text": presented_appointment.clinic_slot.slot_time_and_clinic_date| nl2br
25+
"text": presented_appointment.clinic_slot.slot_timestamp_single_line | nl2br
2626
}
2727
},
2828
{

manage_breast_screening/mammograms/jinja2/mammograms/show/medical_information.jinja

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
{% endcall %}
1212

1313
{% call card({
14-
"heading": "Symptoms"
14+
"heading": "Medical history"
1515
}) %}
16-
{{ symptoms_content(presenter, read_only=true) }}
16+
{{ medical_history_content(presenter, read_only=true) }}
1717
{% endcall %}
1818

1919
{% call card({
20-
"heading": "Medical history"
20+
"heading": "Symptoms"
2121
}) %}
22-
{{ medical_history_content(presenter, read_only=true) }}
22+
{{ symptoms_content(presenter, read_only=true) }}
2323
{% endcall %}
2424

2525
{% call card({

manage_breast_screening/mammograms/presenters/appointment_presenters.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,18 @@ def clinic_url(self):
294294
return reverse("clinics:show_clinic", kwargs={"pk": self._clinic.pk})
295295

296296
@cached_property
297-
def slot_time_and_clinic_date(self):
297+
def slot_timestamp_multi_line(self):
298298
clinic_slot = self._clinic_slot
299299
clinic = self._clinic
300300

301-
return f"{format_date(clinic.starts_at)} ({format_relative_date(clinic.starts_at)}) \n {format_time(clinic_slot.starts_at)} ({clinic_slot.duration_in_minutes} minutes)"
301+
return f"{format_time(clinic_slot.starts_at)} ({clinic_slot.duration_in_minutes} minutes) - {format_date(clinic.starts_at)} ({format_relative_date(clinic.starts_at)})"
302+
303+
@cached_property
304+
def slot_timestamp_single_line(self):
305+
clinic_slot = self._clinic_slot
306+
clinic = self._clinic
307+
308+
return f"{format_date(clinic_slot.starts_at)} ({format_relative_date(clinic.starts_at)}) \n {format_time(clinic.starts_at)} ({clinic_slot.duration_in_minutes} minutes)"
302309

303310
@cached_property
304311
def clinic_date_and_slot_time(self):

0 commit comments

Comments
 (0)