-
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 #980 from DFE-Digital/feature/absence-data
Feature/absence data
- Loading branch information
Showing
45 changed files
with
585 additions
and
53 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
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
30 changes: 30 additions & 0 deletions
30
Dfe.PrepareConversions/Dfe.PrepareConversions.Data/Models/SetPerformanceDataModel.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,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Dfe.PrepareConversions.Data.Models | ||
{ | ||
public class SetPerformanceDataModel | ||
{ | ||
public SetPerformanceDataModel(int id, | ||
string? keyStage2PerformanceAdditionalInformation, | ||
string? keyStage4PerformanceAdditionalInformation, | ||
string? keyStage5PerformanceAdditionalInformation, | ||
string? educationalAttendanceAdditionalInformation) | ||
{ | ||
Id = id; | ||
KeyStage2PerformanceAdditionalInformation = keyStage2PerformanceAdditionalInformation; | ||
KeyStage4PerformanceAdditionalInformation = keyStage4PerformanceAdditionalInformation; | ||
KeyStage5PerformanceAdditionalInformation = keyStage5PerformanceAdditionalInformation; | ||
EducationalAttendanceAdditionalInformation = educationalAttendanceAdditionalInformation; | ||
} | ||
|
||
public int Id { get; set; } | ||
public string? KeyStage2PerformanceAdditionalInformation { get; set; } | ||
public string? KeyStage4PerformanceAdditionalInformation { get; set; } | ||
public string? KeyStage5PerformanceAdditionalInformation { get; set; } | ||
public string? EducationalAttendanceAdditionalInformation { get; set; } | ||
} | ||
} |
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
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
67 changes: 67 additions & 0 deletions
67
...eConversions/Dfe.PrepareConversions/Pages/Components/EducationalAttendance/default.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,67 @@ | ||
@using Dfe.PrepareConversions.Utils | ||
@using Dfe.PrepareConversions.TagHelpers | ||
@model IEnumerable<EducationalAttendanceViewModel> | ||
<div> | ||
@{ | ||
var educationalAttendanceViewModels = Model.OrderByDescending(x => x.Year).ToList(); | ||
} | ||
|
||
<table class="govuk-table govuk-!-margin-bottom-9"> | ||
<caption class="govuk-table__caption govuk-table__caption--m"> | ||
<h1 class="govuk-heading-m">Overall absence</h1> | ||
<p class="govuk-!-margin-top govuk-body">Percentage of mornings or afternoons recorded as an absence from school for any reason, across the full academic year.</p> | ||
</caption> | ||
<thead class="govuk-table__head"> | ||
<tr class="govuk-table__row"> | ||
<th scope="col" class="govuk-table__header"></th> | ||
|
||
@for (int i = 0; i < 3; i++) | ||
{ | ||
var vm = educationalAttendanceViewModels[i]; | ||
|
||
<th scope="col" class="govuk-table__header">@vm.Year</th> | ||
} | ||
|
||
</tr> | ||
</thead> | ||
<tbody class="govuk-table__body"> | ||
<tr class="govuk-table__row"> | ||
<th scope="row" class="govuk-table__header">@ViewData["SchoolName"]</th> | ||
@for (int i = 0; i < 3; i++) | ||
{ | ||
var vm = educationalAttendanceViewModels[i]; | ||
<td class="govuk-table__cell" id="@("percentage-overall-" + i)">@vm.OverallAbsence</td> | ||
} | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<table class="govuk-table govuk-!-margin-bottom-9"> | ||
<caption class="govuk-table__caption govuk-table__caption--m"> | ||
<h1 class="govuk-heading-m">Persistent absence of 10% or more</h1> | ||
<p class="govuk-!-margin-top govuk-body">The percentage of pupils missing 10% or more of the mornings or afternoons they could attend.</p> | ||
</caption> | ||
<thead class="govuk-table__head"> | ||
<tr class="govuk-table__row"> | ||
<th scope="col" class="govuk-table__header"></th> | ||
@for (int i = 0; i < 3; i++) | ||
{ | ||
var vm = educationalAttendanceViewModels[i]; | ||
|
||
<th scope="col" class="govuk-table__header">@vm.Year</th> | ||
} | ||
|
||
</tr> | ||
</thead> | ||
<tbody class="govuk-table__body"> | ||
<tr class="govuk-table__row"> | ||
<th scope="row" class="govuk-table__header">@ViewData["SchoolName"]</th> | ||
@for (int i = 0; i < 3; i++) | ||
{ | ||
var vm = educationalAttendanceViewModels[i]; | ||
<td class="govuk-table__cell" id="@("percentage-overall-above-10" + i)">@vm.PersistentAbsence</td> | ||
} | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> |
Oops, something went wrong.