From fed078b76699e7e48b1bd935729ee04a753ed49c Mon Sep 17 00:00:00 2001 From: James Gunn Date: Sun, 16 Apr 2023 17:46:28 +0100 Subject: [PATCH] WIP Short tag names --- .../AccordionWithSummarySections.cshtml | 32 ++++----- .../Pages/Breadcrumbs/Breadcrumbs.cshtml | 6 +- .../CharacterCount/CharacterCount.cshtml | 8 +-- .../Pages/Checkboxes/Checkboxes.cshtml | 22 +++--- .../CheckboxesWithConditional.cshtml | 42 +++++------ .../Checkboxes/CheckboxesWithError.cshtml | 24 +++---- .../Checkboxes/CheckboxesWithNone.cshtml | 22 +++--- .../CheckboxesWithoutFieldset.cshtml | 4 +- .../DateInputWithCustomItemLabels.cshtml | 18 ++--- .../DateInputWithCustomItemValues.cshtml | 6 +- .../Pages/DateInput/DateInputWithError.cshtml | 4 +- .../DateInput/DateInputWithFieldset.cshtml | 16 ++--- .../Pages/Details/Details.cshtml | 8 +-- .../Pages/Details/DetailsExpanded.cshtml | 8 +-- .../Pages/ErrorSummary/ErrorSummary.cshtml | 4 +- .../ErrorSummaryWithModelStateError.cshtml | 2 +- .../ErrorSummary/ErrorSummaryWithTitle.cshtml | 6 +- .../Pages/Fieldset/Fieldset.cshtml | 2 +- .../Pages/FileUpload/FileUpload.cshtml | 2 +- .../FileUpload/FileUploadWithErrors.cshtml | 4 +- ...otificationBannerWithOverridenTitle.cshtml | 4 +- .../Pages/Pagination/Pagination.cshtml | 10 +-- .../Pages/Pagination/Stacked.cshtml | 4 +- .../Pages/Pagination/WithEllipsis.cshtml | 18 ++--- .../Pages/Panel/Panel.cshtml | 6 +- .../Pages/PhaseBanner/PhaseBanner.cshtml | 2 +- .../Pages/Select/Select.cshtml | 8 +-- .../SummaryList/SummaryListWithActions.cshtml | 72 +++++++++---------- .../SummaryListWithoutActions.cshtml | 48 ++++++------- .../Pages/TextInput/TextInput.cshtml | 4 +- .../Pages/TextInput/TextInputWithError.cshtml | 6 +- .../TextInputWithPrefixAndSuffix.cshtml | 6 +- .../AccordionItemHeadingTagHelper.cs | 4 ++ .../AccordionItemSummaryTagHelper.cs | 4 ++ .../TagHelpers/AccordionItemTagHelper.cs | 2 + .../TagHelpers/AccordionTagHelper.cs | 2 +- .../TagHelpers/BreadcrumbsItemTagHelper.cs | 2 + .../TagHelpers/BreadcrumbsTagHelper.cs | 2 +- .../TagHelpers/CharacterCountTagHelper.cs | 10 ++- .../CharacterCountValueTagHelper.cs | 1 + .../CheckboxesFieldsetLegendTagHelper.cs | 4 ++ .../TagHelpers/CheckboxesFieldsetTagHelper.cs | 14 +++- .../CheckboxesItemConditionalTagHelper.cs | 4 ++ .../CheckboxesItemDividerTagHelper.cs | 5 ++ .../TagHelpers/CheckboxesItemHintTagHelper.cs | 4 ++ .../TagHelpers/CheckboxesItemTagHelper.cs | 5 ++ .../TagHelpers/CheckboxesTagHelper.cs | 13 +++- .../TagHelpers/DateInputContext.cs | 3 + .../DateInputErrorMessageTagHelper.cs | 4 ++ .../DateInputFieldsetLegendTagHelper.cs | 4 ++ .../TagHelpers/DateInputFieldsetTagHelper.cs | 10 ++- .../TagHelpers/DateInputItemLabelTagHelper.cs | 10 +++ .../TagHelpers/DateInputItemTagHelper.cs | 21 +++++- .../TagHelpers/DateInputTagHelper.cs | 9 ++- .../TagHelpers/DetailsSummaryTagHelper.cs | 2 + .../TagHelpers/DetailsTagHelper.cs | 6 +- .../TagHelpers/DetailsTextTagHelper.cs | 2 + .../ErrorSummaryDescriptionTagHelper.cs | 2 + .../TagHelpers/ErrorSummaryItemTagHelper.cs | 2 + .../TagHelpers/ErrorSummaryTagHelper.cs | 8 ++- .../TagHelpers/ErrorSummaryTitleTagHelper.cs | 2 + .../TagHelpers/FieldsetLegendTagHelper.cs | 2 + .../TagHelpers/FileUploadTagHelper.cs | 8 ++- .../FormGroupErrorMessageTagHelper.cs | 13 ++++ .../TagHelpers/FormGroupHintTagHelper.cs | 17 +++++ .../TagHelpers/FormGroupLabelTagHelper.cs | 7 ++ .../NotificationBannerTitleTagHelper.cs | 2 + .../PaginationEllipsisItemTagHelper.cs | 2 + .../TagHelpers/PaginationItemTagHelper.cs | 2 + .../TagHelpers/PaginationNextTagHelper.cs | 2 + .../TagHelpers/PaginationPreviousTagHelper.cs | 2 + .../TagHelpers/PaginationTagHelper.cs | 6 +- .../TagHelpers/PanelBodyTagHelper.cs | 2 + .../TagHelpers/PanelTagHelper.cs | 6 +- .../TagHelpers/PanelTitleTagHelper.cs | 2 + .../TagHelpers/PhaseBannerTagTagHelper.cs | 2 + .../TagHelpers/SelectItemTagHelper.cs | 2 + .../TagHelpers/SelectTagHelper.cs | 7 +- .../SummaryListRowActionTagHelper.cs | 4 ++ .../SummaryListRowActionsTagHelper.cs | 6 +- .../TagHelpers/SummaryListRowKeyTagHelper.cs | 4 ++ .../TagHelpers/SummaryListRowTagHelper.cs | 10 ++- .../SummaryListRowValueTagHelper.cs | 4 ++ .../TagHelpers/SummaryListTagHelper.cs | 2 +- .../TagHelpers/TabsTagHelper.cs | 3 +- .../TagHelpers/TextInputPrefixTagHelper.cs | 2 + .../TagHelpers/TextInputSuffixTagHelper.cs | 2 + .../TagHelpers/TextInputTagHelper.cs | 12 +++- 88 files changed, 487 insertions(+), 235 deletions(-) diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Accordion/AccordionWithSummarySections.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Accordion/AccordionWithSummarySections.cshtml index c6b52298..91610a1c 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Accordion/AccordionWithSummarySections.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Accordion/AccordionWithSummarySections.cshtml @@ -1,9 +1,9 @@ @page - - Understanding agile project management - Introductions, methods, core features. + + Understanding agile project management + Introductions, methods, core features. - - - Working with agile methods - Workspaces, tools and techniques, user stories, planning. + + + Working with agile methods + Workspaces, tools and techniques, user stories, planning. - - - Governing agile services - Principles, measuring progress, spending money. + + + Governing agile services + Principles, measuring progress, spending money. - - - Phases of an agile project - Discovery, alpha, beta, live and retirement. + + + Phases of an agile project + Discovery, alpha, beta, live and retirement. - + diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Breadcrumbs/Breadcrumbs.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Breadcrumbs/Breadcrumbs.cshtml index a9862dd5..72b9fc71 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Breadcrumbs/Breadcrumbs.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Breadcrumbs/Breadcrumbs.cshtml @@ -1,7 +1,7 @@ @page - Home - Passports, travel and living abroad - Travel abroad + Home + Passports, travel and living abroad + Travel abroad diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/CharacterCount/CharacterCount.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/CharacterCount/CharacterCount.cshtml index 1d92293d..b68d4824 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/CharacterCount/CharacterCount.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/CharacterCount/CharacterCount.cshtml @@ -1,10 +1,10 @@ @page - + - + + Do not include personal or financial information like your National Insurance number or credit card details. - + diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/Checkboxes.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/Checkboxes.cshtml index aa70a950..6de07b47 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/Checkboxes.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/Checkboxes.cshtml @@ -1,20 +1,20 @@ @page - - + + What is your nationality? - + - + If you have dual nationality, select all options that are relevant to you. - + - + British - including English, Scottish, Welsh and Northern Irish - - Irish - Citizen of another country - + including English, Scottish, Welsh and Northern Irish + + Irish + Citizen of another country + diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/CheckboxesWithConditional.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/CheckboxesWithConditional.cshtml index 8fd78b66..106724ed 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/CheckboxesWithConditional.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/CheckboxesWithConditional.cshtml @@ -1,40 +1,40 @@ @page - - + + How would you like to be contacted? - + - + Select all options that are relevant to you. - + - + Email - + - Email address + - - + + - + Phone - + - Phone number + - - + + - + Text message - + - Mobile phone number + - - - + + + diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/CheckboxesWithError.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/CheckboxesWithError.cshtml index d2a34559..5b501e10 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/CheckboxesWithError.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/CheckboxesWithError.cshtml @@ -1,24 +1,24 @@ @page - - + + What is your nationality? - + - + If you have dual nationality, select all options that are relevant to you. - + - + Select if you are British, Irish or a citizen of a different country - + - + British including English, Scottish, Welsh and Northern Irish - - Irish - Citizen of another country - + + Irish + Citizen of another country + diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/CheckboxesWithNone.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/CheckboxesWithNone.cshtml index 33d36939..d519e7c4 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/CheckboxesWithNone.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/CheckboxesWithNone.cshtml @@ -1,19 +1,19 @@ @page - - + + Will you be travelling to any of these countries? - + - + Select all countries that apply - + - France - Portugal - Spain - or - No, I will not be travelling to any of these countries - + France + Portugal + Spain + or + No, I will not be travelling to any of these countries + diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/CheckboxesWithoutFieldset.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/CheckboxesWithoutFieldset.cshtml index e51caf31..c4debb42 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/CheckboxesWithoutFieldset.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/CheckboxesWithoutFieldset.cshtml @@ -1,7 +1,7 @@ @page - + I agree to the terms and conditions - + diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/DateInput/DateInputWithCustomItemLabels.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/DateInput/DateInputWithCustomItemLabels.cshtml index 3f88219f..87434b5d 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/DateInput/DateInputWithCustomItemLabels.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/DateInput/DateInputWithCustomItemLabels.cshtml @@ -1,13 +1,13 @@ @page - - Dydd - - - Mis - - - Blwyddyn - + + + + + + + + + diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/DateInput/DateInputWithCustomItemValues.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/DateInput/DateInputWithCustomItemValues.cshtml index 26d04493..59641487 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/DateInput/DateInputWithCustomItemValues.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/DateInput/DateInputWithCustomItemValues.cshtml @@ -1,7 +1,7 @@ @page - - - + + + diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/DateInput/DateInputWithError.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/DateInput/DateInputWithError.cshtml index 4d068183..d7d804d6 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/DateInput/DateInputWithError.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/DateInput/DateInputWithError.cshtml @@ -1,7 +1,7 @@ @page - + The date your passport was issued must be in the past - + diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/DateInput/DateInputWithFieldset.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/DateInput/DateInputWithFieldset.cshtml index 76e3cd25..62eca952 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/DateInput/DateInputWithFieldset.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/DateInput/DateInputWithFieldset.cshtml @@ -1,15 +1,15 @@ @page - - + + When was your passport issued? - - + + For example, 27 3 2007 - - + + The date your passport was issued must be in the past - - + + diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Details/Details.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Details/Details.cshtml index c3e88f53..0ebaeca1 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Details/Details.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Details/Details.cshtml @@ -1,11 +1,11 @@ @page - + Help with nationality - - + + We need to know your nationality so we can work out which elections you’re entitled to vote in. If you cannot provide your nationality, you’ll have to send copies of identity documents through the post. - + diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Details/DetailsExpanded.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Details/DetailsExpanded.cshtml index cd419827..11a23a14 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Details/DetailsExpanded.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Details/DetailsExpanded.cshtml @@ -1,11 +1,11 @@ @page - + Help with nationality - - + + We need to know your nationality so we can work out which elections you’re entitled to vote in. If you cannot provide your nationality, you’ll have to send copies of identity documents through the post. - + diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/ErrorSummary/ErrorSummary.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/ErrorSummary/ErrorSummary.cshtml index 4089f5a1..bab8caaa 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/ErrorSummary/ErrorSummary.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/ErrorSummary/ErrorSummary.cshtml @@ -1,6 +1,6 @@ @page - The date your passport was issued must be in the past - Enter a postcode, like AA1 1AA + The date your passport was issued must be in the past + Enter a postcode, like AA1 1AA diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/ErrorSummary/ErrorSummaryWithModelStateError.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/ErrorSummary/ErrorSummaryWithModelStateError.cshtml index 4259a24d..a90d88c7 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/ErrorSummary/ErrorSummaryWithModelStateError.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/ErrorSummary/ErrorSummaryWithModelStateError.cshtml @@ -2,5 +2,5 @@ @model ErrorSummaryWithModelStateErrorModel - + diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/ErrorSummary/ErrorSummaryWithTitle.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/ErrorSummary/ErrorSummaryWithTitle.cshtml index 8d4fb3ed..fa399fdf 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/ErrorSummary/ErrorSummaryWithTitle.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/ErrorSummary/ErrorSummaryWithTitle.cshtml @@ -1,7 +1,7 @@ @page - There is a problem - The date your passport was issued must be in the past - Enter a postcode, like AA1 1AA + There is a problem + The date your passport was issued must be in the past + Enter a postcode, like AA1 1AA diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Fieldset/Fieldset.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Fieldset/Fieldset.cshtml index 5548888e..e22b2c38 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Fieldset/Fieldset.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Fieldset/Fieldset.cshtml @@ -1,5 +1,5 @@ @page - Legend as page heading + Legend as page heading diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/FileUpload/FileUpload.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/FileUpload/FileUpload.cshtml index c24c9aad..cc59c98d 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/FileUpload/FileUpload.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/FileUpload/FileUpload.cshtml @@ -1,5 +1,5 @@ @page - Upload a file + diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/FileUpload/FileUploadWithErrors.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/FileUpload/FileUploadWithErrors.cshtml index cb9a6b24..24ff26b6 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/FileUpload/FileUploadWithErrors.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/FileUpload/FileUploadWithErrors.cshtml @@ -1,6 +1,6 @@ @page - Upload a file - The CSV must be smaller than 2MB + + The CSV must be smaller than 2MB diff --git a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/NotificationBanner/NotificationBannerWithOverridenTitle.cshtml b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/NotificationBanner/NotificationBannerWithOverridenTitle.cshtml index 12c059cb..1ce9f602 100644 --- a/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/NotificationBanner/NotificationBannerWithOverridenTitle.cshtml +++ b/src/GovUk.Frontend.AspNetCore.DocSamples/Pages/NotificationBanner/NotificationBannerWithOverridenTitle.cshtml @@ -1,9 +1,9 @@ @page -