-
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.
Fix for other schools in MAT regression and fix for searching schools…
… with parentheses in the name
- Loading branch information
1 parent
83feefe
commit b33337a
Showing
3 changed files
with
58 additions
and
4 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
39 changes: 39 additions & 0 deletions
39
Dfe.PrepareConversions/Dfe.PrepareConversions/Pages/Shared/FormAMatProjectListRow.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,39 @@ | ||
@using Dfe.Academisation.ExtensionMethods | ||
@using Dfe.PrepareConversions.TagHelpers | ||
@model ProjectListRowViewModel | ||
|
||
<tr class="govuk-table__row form-a-mat" data-cy="select-projectlist-filter-row"> | ||
<td class="govuk-table__cell"> | ||
<h2 class="govuk-caption-l govuk-!-margin-bottom-0 govuk-!-margin-top-1"> | ||
<strong> | ||
<a id="@("school-name-" + Model.Index)" class="govuk-link" asp-page="@Links.FormAMat.Index.Page" asp-route-id="@Model.Item.Id">@Model.Item.SchoolName</a> | ||
</strong> | ||
<span id="@("urn-" + Model.Index)">URN: @Model.Item.SchoolURN</span> | ||
</h2> | ||
<p class="govuk-!-margin-top-3"> | ||
<div data-cy="route">Route: @Model.Item.TypeAndRoute.RouteDescription()</div> | ||
<div id="@("application-to-join-trust-" + Model.Index)">Application to join a trust: @Model.Item.NameOfTrust</div> | ||
@if (@Model.Item.LocalAuthority.IsEmpty() is false) | ||
{ | ||
<div id="@("local-authority-" + Model.Index)">Local authority: @Model.Item.LocalAuthority</div> | ||
} | ||
</p> | ||
</td> | ||
<td class="govuk-table__cell govuk-table__cell prepare-text-align-right"> | ||
<p class="govuk-!-margin-top-0"> | ||
<strong class="govuk-tag [email protected]" id="[email protected]">@Model.Item.Status.Value</strong> | ||
</p> | ||
<p class="govuk-hint govuk-!-margin-top-0"> | ||
<span id="[email protected]"> | ||
Project created date: @Model.Item.CreatedOn.ToDateString()<br> | ||
</span> | ||
<span if="Model.Item.ShowHtbDate" id="@("Advisory-Board-date-" + Model.Index)"> | ||
@("Advisory board date: " + Model.Item.HeadTeacherBoardDate)<br> | ||
</span> | ||
<span if="Model.Item.ShowProposedOpeningDate" id="@("opening-date-" + Model.Index)"> | ||
Opening date: | ||
<span if="Model.Item.ProposedAcademyOpeningDate.IsPresent()">@Model.Item.ProposedAcademyOpeningDate</span> | ||
</span> | ||
</p> | ||
</td> | ||
</tr> |
12 changes: 12 additions & 0 deletions
12
Dfe.PrepareConversions/Dfe.PrepareConversions/Pages/Shared/FormAMatProjectListRow.cshtml.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 @@ | ||
using Microsoft.AspNetCore.Mvc; | ||
using Microsoft.AspNetCore.Mvc.RazorPages; | ||
|
||
namespace Dfe.PrepareConversions.Pages.Shared | ||
{ | ||
public class FormAMatProjectListRowModel : PageModel | ||
{ | ||
public void OnGet() | ||
{ | ||
} | ||
} | ||
} |