-
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 #958 from DFE-Digital/feature/147247-Update-Projec…
…t-List-View Feature/147247 update project list view
- Loading branch information
Showing
8 changed files
with
73 additions
and
148 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
39 changes: 0 additions & 39 deletions
39
Dfe.PrepareConversions/Dfe.PrepareConversions/Pages/Shared/FormAMatProjectListRow.cshtml
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
Dfe.PrepareConversions/Dfe.PrepareConversions/Pages/Shared/SponsoredProjectListRow.cshtml
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
Dfe.PrepareConversions/Dfe.PrepareConversions/Pages/Shared/VoluntaryProjectListRow.cshtml
This file was deleted.
Oops, something went wrong.
63 changes: 63 additions & 0 deletions
63
Dfe.PrepareConversions/Dfe.PrepareConversions/Pages/Shared/_ProjectListRows.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,63 @@ | ||
@using Dfe.Academisation.ExtensionMethods | ||
@using Dfe.PrepareConversions.TagHelpers | ||
@model List<ProjectListViewModel> | ||
|
||
@{ | ||
var index = 0; | ||
|
||
foreach (var project in Model) | ||
{ | ||
var projectRow = project.Row(index); | ||
|
||
var isFormAMat = project.IsFormAMat; | ||
var matTypeClass = isFormAMat ? "form-a-mat" : "join-a-mat"; | ||
var link = isFormAMat ? @Links.FormAMat.Index.Page : @Links.TaskList.Index.Page; | ||
|
||
<tr class="govuk-table__row @matTypeClass" data-cy="select-projectlist-filter-row"> | ||
<td class="govuk-table__cell"> | ||
<div class="govuk-!-margin-top-1 govuk-!-margin-bottom-2"> | ||
<strong> | ||
<a id="@("school-name-" + projectRow.Index)" class="govuk-link" asp-page="@link" asp-route-id="@projectRow.Item.Id">@projectRow.Item.SchoolName</a> | ||
</strong> | ||
</div> | ||
<div class="govuk-!-margin-top-1"> | ||
<span id="@("urn-" + projectRow.Index)"><strong>URN:</strong> @projectRow.Item.SchoolURN</span> | ||
</div> | ||
@if (!@projectRow.Item.LocalAuthority.IsEmpty()) | ||
{ | ||
<div id="@("local-authority-" + projectRow.Index)" class="govuk-!-margin-top-1"> | ||
<strong>Local authority:</strong> | ||
@projectRow.Item.LocalAuthority | ||
</div> | ||
} | ||
<div id="@("region-" + projectRow.Index)" class="govuk-!-margin-top-1"> | ||
<strong>Region:</strong> | ||
@projectRow.Item.Region | ||
</div> | ||
<div id="@("incoming-trust-" + projectRow.Index)" class="govuk-!-margin-top-1"> | ||
<strong>Incoming trust:</strong> | ||
@projectRow.Item.NameOfTrust.ToTitleCase() | ||
</div> | ||
<div id="@("advisory-board-date-" + projectRow.Index)" class="govuk-!-margin-top-1"> | ||
<strong>Advisory board date:</strong> | ||
<span if="projectRow.Item.HeadTeacherBoardDate.IsEmpty()" class="empty">Unconfirmed</span> | ||
<span if="projectRow.Item.HeadTeacherBoardDate.IsPresent()">@projectRow.Item.HeadTeacherBoardDate</span> | ||
</div> | ||
@if (!isFormAMat) | ||
{ | ||
<div id="@("assigned-to-" + projectRow.Index)" class="do govuk-!-margin-top-1"> | ||
<strong>Assigned to:</strong> | ||
<span if="projectRow.Item.AssignedUserFullName.IsEmpty()" class="empty">Unassigned</span> | ||
<strong if="projectRow.Item.AssignedUserFullName.IsPresent()">@projectRow.Item.AssignedUserFullName</strong> | ||
</div> | ||
} | ||
<div class="govuk-!-margin-top-2 govuk-!-margin-bottom-3"> | ||
<strong class="govuk-tag [email protected]" id="[email protected]">@projectRow.Item.Status.Value</strong> | ||
</div> | ||
</td> | ||
</tr> | ||
|
||
index++; | ||
} | ||
} | ||
|
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