-
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.
Merge pull request #139 from DFE-Digital/feature/fix-dev-deployment
added the dashboard without a partial as the build stood up without the partial
- Loading branch information
Showing
1 changed file
with
74 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,77 @@ | |
} | ||
|
||
@*<partial name="_Dashboard" model="Model.Dashboard" />*@ | ||
|
||
<table class="govuk-table"> | ||
<caption class="govuk-table__caption govuk-table__caption--m govuk-visually-hidden">@Model.Dashboard.Header</caption> | ||
<thead class="govuk-table__head"> | ||
<tr class="govuk-table__row tr__large"> | ||
<th class="govuk-table__header govuk-table__cell__cases" scope="col"> | ||
Project title | ||
</th> | ||
<th class="govuk-table__header govuk-table__cell__cases govuk-table__header__width_14" scope="col" aria-sort="none"> | ||
Project ID | ||
</th> | ||
<th class="govuk-table__header govuk-table__cell__cases govuk-table__header__width_14" scope="col" aria-sort="none"> | ||
Trust | ||
</th> | ||
<th class="govuk-table__header govuk-table__cell__cases govuk-table__header__width_14" scope="col" aria-sort="none"> | ||
Region | ||
</th> | ||
<th class="govuk-table__header govuk-table__cell__cases" scope="col"> | ||
Local authority | ||
</th> | ||
<th class="govuk-table__header govuk-table__cell__cases govuk-table__header__width_14" scope="col" aria-sort="none"> | ||
Realistic opening date | ||
</th> | ||
<th class="govuk-table__header govuk-table__cell__cases govuk-table__header__width_14" scope="col" aria-sort="none"> | ||
Status | ||
</th> | ||
<th class="govuk-table__header govuk-table__cell__cases govuk-table__header__width_14" scope="col" aria-sort="none"> | ||
Action | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody class="govuk-table__body"> | ||
@if (Model.Dashboard.Projects == null || Model.Dashboard.Projects.Count == 0) | ||
{ | ||
<tr class="govuk-table__row tr__large"> | ||
<td class="govuk-table__cell__cases govuk-oneline-row"> | ||
<span>There are no projects available.</span> | ||
</td> | ||
</tr> | ||
} | ||
else | ||
{ | ||
foreach (var project in Model.Dashboard.Projects) | ||
{ | ||
<tr class="govuk-table__row tr__large" data-testid="[email protected]"> | ||
<td class="govuk-table__cell" data-testid="project-title"> | ||
@project.ProjectTitle | ||
</td> | ||
<td class="govuk-table__cell" data-testid="project-id"> | ||
@project.ProjectId | ||
</td> | ||
<td class="govuk-table__cell" data-testid="trust-name"> | ||
@project.TrustName | ||
</td> | ||
<td class="govuk-table__cell" data-testid="region-name"> | ||
@project.Region | ||
</td> | ||
<td class="govuk-table__cell" data-testid="local-authority"> | ||
@project.LocalAuthority | ||
</td> | ||
<td class="govuk-table__cell" data-testid="realistic-opening-date"> | ||
@project.RealisticOpeningDate | ||
</td> | ||
<td class="govuk-table__cell" data-testid="status"> | ||
<strong class="govuk-tag govuk-tag--grey">Not started</strong> | ||
</td> | ||
<td class="govuk-table__cell"> | ||
<a href="/projects/@project.ProjectId/overview" data-testid="action">View</a> | ||
</td> | ||
</tr> | ||
} | ||
} | ||
</tbody> | ||
</table> |