-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #966 from DFE-Digital/feature/150257-school-overview
Feature/150257 school overview
- Loading branch information
Showing
27 changed files
with
445 additions
and
38 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
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
48 changes: 48 additions & 0 deletions
48
Dfe.PrepareConversions/Dfe.PrepareConversions.Data/Models/SetSchoolOverviewModel.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,48 @@ | ||
namespace Dfe.PrepareConversions.Data.Models | ||
{ | ||
public class SetSchoolOverviewModel | ||
{ | ||
public int Id { get; set; } | ||
public string PublishedAdmissionNumber { get; set; } | ||
public string ViabilityIssues { get; set; } | ||
public string FinancialDeficit { get; set; } | ||
public decimal? NumberOfPlacesFundedFor { get; set; } | ||
public decimal? NumberOfResidentialPlaces { get; set; } | ||
public decimal? NumberOfFundedResidentialPlaces { get; set; } | ||
public string PartOfPfiScheme { get; set; } | ||
public string PfiSchemeDetails { get; set; } | ||
public decimal? DistanceFromSchoolToTrustHeadquarters { get; set; } | ||
public string DistanceFromSchoolToTrustHeadquartersAdditionalInformation { get; set; } | ||
public string MemberOfParliamentNameAndParty { get; set; } | ||
|
||
public SetSchoolOverviewModel() { } | ||
|
||
public SetSchoolOverviewModel( | ||
int id, | ||
string publishedAdmissionNumber, | ||
string viabilityIssues, | ||
string financialDeficit, | ||
decimal? numberOfPlacesFundedFor, | ||
decimal? numberOfResidentialPlaces, | ||
decimal? numberOfFundedResidentialPlaces, | ||
string partOfPfiScheme, | ||
string pfiSchemeDetails, | ||
decimal? distanceFromSchoolToTrustHeadquarters, | ||
string distanceFromSchoolToTrustHeadquartersAdditionalInformation, | ||
string memberOfParliamentNameAndParty) | ||
{ | ||
Id = id; | ||
PublishedAdmissionNumber = publishedAdmissionNumber; | ||
ViabilityIssues = viabilityIssues; | ||
FinancialDeficit = financialDeficit; | ||
NumberOfPlacesFundedFor = numberOfPlacesFundedFor; | ||
NumberOfResidentialPlaces = numberOfResidentialPlaces; | ||
NumberOfFundedResidentialPlaces = numberOfFundedResidentialPlaces; | ||
PartOfPfiScheme = partOfPfiScheme; | ||
PfiSchemeDetails = pfiSchemeDetails; | ||
DistanceFromSchoolToTrustHeadquarters = distanceFromSchoolToTrustHeadquarters; | ||
DistanceFromSchoolToTrustHeadquartersAdditionalInformation = distanceFromSchoolToTrustHeadquartersAdditionalInformation; | ||
MemberOfParliamentNameAndParty = memberOfParliamentNameAndParty; | ||
} | ||
} | ||
} |
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
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
16 changes: 16 additions & 0 deletions
16
...repareConversions/Pages/TaskList/SchoolOverview/SENNumberOfFundedResidentialPlaces.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@page "/task-list/{id:int}/confirm-school-overview/number-of-funded-residential-places" | ||
@using Dfe.PrepareConversions.TagHelpers | ||
@model Dfe.PrepareConversions.Pages.TaskList.SchoolOverview.SENNumberOfFundedResidentialPlaces | ||
@{ | ||
ViewData["Title"] = (ViewData.ModelState.IsValid ? "" : "Error: ") + "Number of funded residential places"; | ||
Layout = "_QuestionLayout"; | ||
ViewData["ProjectId"] = Model.Project.Id; | ||
ViewData["AcademyTypeAndRoute"] = Model.Project.AcademyTypeAndRoute; | ||
} | ||
|
||
@section BeforeMain | ||
{ | ||
<govuk-back-link link-item="@Links.SchoolOverviewSection.ConfirmSchoolOverview" /> | ||
} | ||
|
||
<govuk-text-input heading-label="true" label="How many residential places is the school funded for?" name="number-of-funded-residential-places" asp-for="@Model.NumberOfFundedResidentialPlaces" width="5" hint="For example, 100" /> |
Oops, something went wrong.