Skip to content

PPHA-670 Updating page titles #374

Draft
stephhou wants to merge 12 commits intomainfrom
PPHA-670-update-page-titles
Draft

PPHA-670 Updating page titles #374
stephhou wants to merge 12 commits intomainfrom
PPHA-670-update-page-titles

Conversation

@stephhou
Copy link
Contributor

What is the change?

Overwriting the default page title on every page

Why are we making this change?

For accessibility and user orientation

return self.changed_required_error_message()

def page_title(self):
if self.presenter.increased_or_decreased(): #TODO: What's the best condition to use here?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the best condition to use here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd guess looking at label() you're best of doing self.tobacco_smoking_history.is_normal() and flipping the two versions around so normal is first?

@sonarqubecloud
Copy link

return self.changed_required_error_message()

def page_title(self):
if self.presenter.increased_or_decreased(): #TODO: What's the best condition to use here?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd guess looking at label() you're best of doing self.tobacco_smoking_history.is_normal() and flipping the two versions around so normal is first?

Comment on lines +4 to +5
{% from 'nhsuk/components/back-link/macro.jinja' import backLink %}
{% from 'nhsuk/components/fieldset/macro.jinja' import fieldset %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't need these here do you?

</section>
</div>
</div>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is needed then the indentation is wrong :( Don't "think" it is at a glance in here however, can only see two opening divs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants