-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
88 changed files
with
487 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Breadcrumbs/Breadcrumbs.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
@page | ||
|
||
<govuk-breadcrumbs collapse-on-mobile="true"> | ||
<govuk-breadcrumbs-item asp-controller="Home" asp-action="Index">Home</govuk-breadcrumbs-item> | ||
<govuk-breadcrumbs-item href="#" link-target="_blank">Passports, travel and living abroad</govuk-breadcrumbs-item> | ||
<govuk-breadcrumbs-item>Travel abroad</govuk-breadcrumbs-item> | ||
<item asp-controller="Home" asp-action="Index">Home</item> | ||
<item href="#" link-target="_blank">Passports, travel and living abroad</item> | ||
<item>Travel abroad</item> | ||
</govuk-breadcrumbs> |
8 changes: 4 additions & 4 deletions
8
src/GovUk.Frontend.AspNetCore.DocSamples/Pages/CharacterCount/CharacterCount.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
@page | ||
|
||
<govuk-character-count name="more-detail" max-length="200"> | ||
<govuk-character-count-label class="govuk-label--l" is-page-heading="true"> | ||
<label class="govuk-label--l" is-page-heading="true"> | ||
Can you provide more detail? | ||
</govuk-character-count-label> | ||
<govuk-character-count-hint> | ||
</label> | ||
<hint> | ||
Do not include personal or financial information like your National Insurance number or credit card details. | ||
</govuk-character-count-hint> | ||
</hint> | ||
</govuk-character-count> |
22 changes: 11 additions & 11 deletions
22
src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/Checkboxes.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
@page | ||
|
||
<govuk-checkboxes name="nationality"> | ||
<govuk-checkboxes-fieldset> | ||
<govuk-checkboxes-fieldset-legend is-page-heading="true" class="govuk-fieldset__legend--l"> | ||
<checkboxes-fieldset> | ||
<legend is-page-heading="true" class="govuk-fieldset__legend--l"> | ||
What is your nationality? | ||
</govuk-checkboxes-fieldset-legend> | ||
</legend> | ||
|
||
<govuk-checkboxes-hint> | ||
<hint> | ||
If you have dual nationality, select all options that are relevant to you. | ||
</govuk-checkboxes-hint> | ||
</hint> | ||
|
||
<govuk-checkboxes-item value="british"> | ||
<item value="british"> | ||
British | ||
<govuk-checkboxes-item-hint>including English, Scottish, Welsh and Northern Irish</govuk-checkboxes-item-hint> | ||
</govuk-checkboxes-item> | ||
<govuk-checkboxes-item value="irish">Irish</govuk-checkboxes-item> | ||
<govuk-checkboxes-item value="other">Citizen of another country</govuk-checkboxes-item> | ||
</govuk-checkboxes-fieldset> | ||
<hint>including English, Scottish, Welsh and Northern Irish</hint> | ||
</item> | ||
<item value="irish">Irish</item> | ||
<item value="other">Citizen of another country</item> | ||
</checkboxes-fieldset> | ||
</govuk-checkboxes> |
42 changes: 21 additions & 21 deletions
42
src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/CheckboxesWithConditional.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
@page | ||
|
||
<govuk-checkboxes name="contact"> | ||
<govuk-checkboxes-fieldset> | ||
<govuk-checkboxes-fieldset-legend is-page-heading="true" class="govuk-fieldset__legend--l"> | ||
<checkboxes-fieldset> | ||
<legend is-page-heading="true" class="govuk-fieldset__legend--l"> | ||
How would you like to be contacted? | ||
</govuk-checkboxes-fieldset-legend> | ||
</legend> | ||
|
||
<govuk-checkboxes-hint> | ||
<hint> | ||
Select all options that are relevant to you. | ||
</govuk-checkboxes-hint> | ||
</hint> | ||
|
||
<govuk-checkboxes-item value="email"> | ||
<item value="email"> | ||
<govuk-checkboxes-item-conditional> | ||
<conditional> | ||
<govuk-input name="contact-by-email" type="email" autocomplete="email" spellcheck="false" input-class="govuk-!-width-one-third"> | ||
<govuk-input-label>Email address</govuk-input-label> | ||
<label>Email address</label> | ||
</govuk-input> | ||
</govuk-checkboxes-item-conditional> | ||
</govuk-checkboxes-item> | ||
</conditional> | ||
</item> | ||
|
||
<govuk-checkboxes-item value="phone"> | ||
<item value="phone"> | ||
Phone | ||
<govuk-checkboxes-item-conditional> | ||
<conditional> | ||
<govuk-input name="contact-by-phone" type="tel" autocomplete="tel" input-class="govuk-!-width-one-third"> | ||
<govuk-input-label>Phone number</govuk-input-label> | ||
<label>Phone number</label> | ||
</govuk-input> | ||
</govuk-checkboxes-item-conditional> | ||
</govuk-checkboxes-item> | ||
</conditional> | ||
</item> | ||
|
||
<govuk-checkboxes-item value="text message"> | ||
<item value="text message"> | ||
Text message | ||
<govuk-checkboxes-item-conditional> | ||
<conditional> | ||
<govuk-input name="contact-by-text" type="tel" autocomplete="tel" input-class="govuk-!-width-one-third"> | ||
<govuk-input-label>Mobile phone number</govuk-input-label> | ||
<label>Mobile phone number</label> | ||
</govuk-input> | ||
</govuk-checkboxes-item-conditional> | ||
</govuk-checkboxes-item> | ||
</govuk-checkboxes-fieldset> | ||
</conditional> | ||
</item> | ||
</checkboxes-fieldset> | ||
</govuk-checkboxes> |
24 changes: 12 additions & 12 deletions
24
src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/CheckboxesWithError.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
@page | ||
|
||
<govuk-checkboxes name="nationality"> | ||
<govuk-checkboxes-fieldset> | ||
<govuk-checkboxes-fieldset-legend is-page-heading="true" class="govuk-fieldset__legend--l"> | ||
<checkboxes-fieldset> | ||
<legend is-page-heading="true" class="govuk-fieldset__legend--l"> | ||
What is your nationality? | ||
</govuk-checkboxes-fieldset-legend> | ||
</legend> | ||
|
||
<govuk-checkboxes-hint> | ||
<hint> | ||
If you have dual nationality, select all options that are relevant to you. | ||
</govuk-checkboxes-hint> | ||
</hint> | ||
|
||
<govuk-checkboxes-error-message> | ||
<error-message> | ||
Select if you are British, Irish or a citizen of a different country | ||
</govuk-checkboxes-error-message> | ||
</error-message> | ||
|
||
<govuk-checkboxes-item value="british"> | ||
<item value="british"> | ||
British | ||
<govuk-checkboxes-item-hint>including English, Scottish, Welsh and Northern Irish</govuk-checkboxes-item-hint> | ||
</govuk-checkboxes-item> | ||
<govuk-checkboxes-item value="irish">Irish</govuk-checkboxes-item> | ||
<govuk-checkboxes-item value="other">Citizen of another country</govuk-checkboxes-item> | ||
</govuk-checkboxes-fieldset> | ||
</item> | ||
<item value="irish">Irish</item> | ||
<item value="other">Citizen of another country</item> | ||
</checkboxes-fieldset> | ||
</govuk-checkboxes> |
22 changes: 11 additions & 11 deletions
22
src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/CheckboxesWithNone.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
@page | ||
|
||
<govuk-checkboxes name="countries"> | ||
<govuk-checkboxes-fieldset> | ||
<govuk-checkboxes-fieldset-legend is-page-heading="true" class="govuk-fieldset__legend--l"> | ||
<checkboxes-fieldset> | ||
<legend is-page-heading="true" class="govuk-fieldset__legend--l"> | ||
Will you be travelling to any of these countries? | ||
</govuk-checkboxes-fieldset-legend> | ||
</legend> | ||
|
||
<govuk-checkboxes-hint> | ||
<hint> | ||
Select all countries that apply | ||
</govuk-checkboxes-hint> | ||
</hint> | ||
|
||
<govuk-checkboxes-item value="france">France</govuk-checkboxes-item> | ||
<govuk-checkboxes-item value="portugal">Portugal</govuk-checkboxes-item> | ||
<govuk-checkboxes-item value="spain">Spain</govuk-checkboxes-item> | ||
<govuk-checkboxes-divider>or</govuk-checkboxes-divider> | ||
<govuk-checkboxes-item value="none" behavior="Exclusive">No, I will not be travelling to any of these countries</govuk-checkboxes-item> | ||
</govuk-checkboxes-fieldset> | ||
<item value="france">France</item> | ||
<item value="portugal">Portugal</item> | ||
<item value="spain">Spain</item> | ||
<divider>or</divider> | ||
<item value="none" behavior="Exclusive">No, I will not be travelling to any of these countries</item> | ||
</checkboxes-fieldset> | ||
</govuk-checkboxes> |
4 changes: 2 additions & 2 deletions
4
src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Checkboxes/CheckboxesWithoutFieldset.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
@page | ||
|
||
<govuk-checkboxes name="t-and-c"> | ||
<govuk-checkboxes-item value="yes"> | ||
<item value="yes"> | ||
I agree to the terms and conditions | ||
</govuk-checkboxes-item> | ||
</item> | ||
</govuk-checkboxes> |
18 changes: 9 additions & 9 deletions
18
...GovUk.Frontend.AspNetCore.DocSamples/Pages/DateInput/DateInputWithCustomItemLabels.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
@page | ||
|
||
<govuk-date-input id="passport-issued" name-prefix="passport-issued"> | ||
<govuk-date-input-day> | ||
<govuk-date-input-day-label>Dydd</govuk-date-input-day-label> | ||
</govuk-date-input-day> | ||
<govuk-date-input-month> | ||
<govuk-date-input-month-label>Mis</govuk-date-input-month-label> | ||
</govuk-date-input-month> | ||
<govuk-date-input-year> | ||
<govuk-date-input-year-label>Blwyddyn</govuk-date-input-year-label> | ||
</govuk-date-input-year> | ||
<day> | ||
<label>Dydd</label> | ||
</day> | ||
<month> | ||
<label>Mis</label> | ||
</month> | ||
<year> | ||
<label>Blwyddyn</label> | ||
</year> | ||
</govuk-date-input> |
6 changes: 3 additions & 3 deletions
6
...GovUk.Frontend.AspNetCore.DocSamples/Pages/DateInput/DateInputWithCustomItemValues.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
@page | ||
|
||
<govuk-date-input id="passport-issued" name-prefix="passport-issued"> | ||
<govuk-date-input-day value="1" /> | ||
<govuk-date-input-month value="4" /> | ||
<govuk-date-input-year value="2022" /> | ||
<day value="1" /> | ||
<month value="4" /> | ||
<year value="2022" /> | ||
</govuk-date-input> |
4 changes: 2 additions & 2 deletions
4
src/GovUk.Frontend.AspNetCore.DocSamples/Pages/DateInput/DateInputWithError.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
@page | ||
|
||
<govuk-date-input id="passport-issued" name-prefix="passport-issued"> | ||
<govuk-date-input-error-message> | ||
<error-message> | ||
The date your passport was issued must be in the past | ||
</govuk-date-input-error-message> | ||
</error-message> | ||
</govuk-date-input> |
16 changes: 8 additions & 8 deletions
16
src/GovUk.Frontend.AspNetCore.DocSamples/Pages/DateInput/DateInputWithFieldset.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
@page | ||
|
||
<govuk-date-input id="passport-issued" name-prefix="passport-issued"> | ||
<govuk-date-input-fieldset> | ||
<govuk-date-input-fieldset-legend is-page-heading="true" class="govuk-fieldset__legend--l"> | ||
<date-input-fieldset> | ||
<legend is-page-heading="true" class="govuk-fieldset__legend--l"> | ||
When was your passport issued? | ||
</govuk-date-input-fieldset-legend> | ||
<govuk-date-input-hint> | ||
</legend> | ||
<hint> | ||
For example, 27 3 2007 | ||
</govuk-date-input-hint> | ||
<govuk-date-input-error-message> | ||
</hint> | ||
<error-message> | ||
The date your passport was issued must be in the past | ||
</govuk-date-input-error-message> | ||
</govuk-date-input-fieldset> | ||
</error-message> | ||
</date-input-fieldset> | ||
</govuk-date-input> |
8 changes: 4 additions & 4 deletions
8
src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Details/Details.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
@page | ||
|
||
<govuk-details> | ||
<govuk-details-summary> | ||
<summary> | ||
Help with nationality | ||
</govuk-details-summary> | ||
<govuk-details-text> | ||
</summary> | ||
<text> | ||
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. | ||
</govuk-details-text> | ||
</text> | ||
</govuk-details> |
8 changes: 4 additions & 4 deletions
8
src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Details/DetailsExpanded.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
@page | ||
|
||
<govuk-details open="true"> | ||
<govuk-details-summary> | ||
<summary> | ||
Help with nationality | ||
</govuk-details-summary> | ||
<govuk-details-text> | ||
</summary> | ||
<text> | ||
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. | ||
</govuk-details-text> | ||
</text> | ||
</govuk-details> |
4 changes: 2 additions & 2 deletions
4
src/GovUk.Frontend.AspNetCore.DocSamples/Pages/ErrorSummary/ErrorSummary.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
@page | ||
|
||
<govuk-error-summary> | ||
<govuk-error-summary-item href="#passport-issued-day">The date your passport was issued must be in the past</govuk-error-summary-item> | ||
<govuk-error-summary-item href="#postcode-input">Enter a postcode, like AA1 1AA</govuk-error-summary-item> | ||
<item href="#passport-issued-day">The date your passport was issued must be in the past</item> | ||
<item href="#postcode-input">Enter a postcode, like AA1 1AA</item> | ||
</govuk-error-summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/GovUk.Frontend.AspNetCore.DocSamples/Pages/ErrorSummary/ErrorSummaryWithTitle.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
@page | ||
|
||
<govuk-error-summary> | ||
<govuk-error-summary-title>There is a problem</govuk-error-summary-title> | ||
<govuk-error-summary-item href="#passport-issued-day">The date your passport was issued must be in the past</govuk-error-summary-item> | ||
<govuk-error-summary-item href="#postcode-input">Enter a postcode, like AA1 1AA</govuk-error-summary-item> | ||
<title>There is a problem</title> | ||
<item href="#passport-issued-day">The date your passport was issued must be in the past</item> | ||
<item href="#postcode-input">Enter a postcode, like AA1 1AA</item> | ||
</govuk-error-summary> |
2 changes: 1 addition & 1 deletion
2
src/GovUk.Frontend.AspNetCore.DocSamples/Pages/Fieldset/Fieldset.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@page | ||
|
||
<govuk-fieldset> | ||
<govuk-fieldset-legend is-page-heading="true" class="govuk-fieldset__legend--l">Legend as page heading</govuk-fieldset-legend> | ||
<legend is-page-heading="true" class="govuk-fieldset__legend--l">Legend as page heading</legend> | ||
</govuk-fieldset> |
Oops, something went wrong.