-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit of the qualification list page (#231)
* Initial commit of the qualification list page. Needs unit tests fixing etc. WIP * Fixed build and unit tests * Refactored common logic out into UserJourneyCookieService so it can be shared by multiple controllers * Added chevron to the view * Fixed journey tests * Added new e2e test * Added aria label to search box and added hover & visited styling to the chevron * ReSharper & Sonar suggestions. --------- Co-authored-by: RobertGHippo <[email protected]>
- Loading branch information
1 parent
178157b
commit 41933b0
Showing
25 changed files
with
634 additions
and
153 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/Dfe.EarlyYearsQualification.Content/Entities/QualificationListPage.cs
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,8 +1,28 @@ | ||
using Contentful.Core.Models; | ||
|
||
namespace Dfe.EarlyYearsQualification.Content.Entities; | ||
|
||
public class QualificationListPage | ||
{ | ||
public string Header { get; init; } = string.Empty; | ||
|
||
public NavigationLink? BackButton { get; init; } | ||
|
||
public string SingleQualificationFoundText { get; init; } = string.Empty; | ||
|
||
public string MultipleQualificationsFoundText { get; init; } = string.Empty; | ||
|
||
public Document? PreSearchBoxContent { get; init; } | ||
|
||
public string SearchButtonText { get; init; } = string.Empty; | ||
|
||
public string LevelHeading { get; init; } = string.Empty; | ||
|
||
public string AwardingOrganisationHeading { get; init; } = string.Empty; | ||
|
||
public Document? PostQualificationListContent { get; init; } | ||
|
||
public string SearchCriteriaHeading { get; init; } = string.Empty; | ||
|
||
public Document? PostSearchCriteriaContent { get; init; } | ||
} |
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
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
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
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
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
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
12 changes: 12 additions & 0 deletions
12
src/Dfe.EarlyYearsQualification.Web/Models/Content/BasicQualificationModel.cs
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace Dfe.EarlyYearsQualification.Web.Models.Content; | ||
|
||
public class BasicQualificationModel | ||
{ | ||
public string QualificationId { get; init; } = string.Empty; | ||
|
||
public string QualificationName { get; init; } = string.Empty; | ||
|
||
public string AwardingOrganisationTitle { get; init; } = string.Empty; | ||
|
||
public int QualificationLevel { get; init; } | ||
} |
12 changes: 12 additions & 0 deletions
12
src/Dfe.EarlyYearsQualification.Web/Models/Content/FilterModel.cs
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace Dfe.EarlyYearsQualification.Web.Models.Content; | ||
|
||
public class FilterModel | ||
{ | ||
public string Country { get; init; } = string.Empty; | ||
|
||
public string StartDate { get; set; } = string.Empty; | ||
|
||
public string Level { get; set; } = "Any level"; | ||
|
||
public string AwardingOrganisation { get; set; } = "Any organisation"; | ||
} |
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
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
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
Oops, something went wrong.