Skip to content

Commit

Permalink
Merge pull request #139 from DFE-Digital/feature/fix-dev-deployment
Browse files Browse the repository at this point in the history
added the dashboard without a partial as the build stood up without the partial
  • Loading branch information
mikestock-nimble authored Sep 5, 2023
2 parents 29a3544 + c2788c5 commit ff3cf5a
Showing 1 changed file with 74 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit ff3cf5a

Please sign in to comment.