diff --git a/GenderPayGap.WebUI/Views/ViewReports/PayComparisonQuartersVisualisation.cshtml b/GenderPayGap.WebUI/Views/ViewReports/PayComparisonQuartersVisualisation.cshtml new file mode 100644 index 000000000..764e1af3b --- /dev/null +++ b/GenderPayGap.WebUI/Views/ViewReports/PayComparisonQuartersVisualisation.cshtml @@ -0,0 +1,71 @@ +@model GenderPayGap.Database.Return + +@{ + async Task PayComparisonQuartersVisualisationForQuarter(decimal femalePercent, decimal malePercent) + { + decimal remainderFemale = ((femalePercent / 4) - Math.Floor(femalePercent / 4)) * 100; + decimal remainderMale = ((malePercent / 4) - Math.Floor(malePercent / 4)) * 100; + +
- In this organisation: -
-
- In this organisation:
+ string reportingYearFormatted = ReportingYearsHelper.FormatYearAsReportingPeriod(Model.AccountingDate.Year);
+ ViewBag.Title = $"{Model.Organisation.OrganisationName} gender pay gap report for {reportingYearFormatted} reporting year";
+ Layout = "~/Views/GovUkFrontend/GovUkFrontendLayout.cshtml";
+}
+
+@section BeforeMain {
+ @{
+ var crumbs = new List
+ In this organisation:
+
+ In this organisation:
- In this organisation, women made up:
-
- In this organisation:
-
+ In this organisation, women made up:
+
+ In this organisation:
+
-
- What this employer says about their gender pay gap (opens in a new window)
-
-
+
+ What this employer says about their gender pay gap (opens in a new window)
+
+
+ @(Model.Organisation.OrganisationName)
+
+
+ @{
+ var addRemoveButtonViewModel = new AddRemoveButtonViewModel
+ {
+ OrganisationIdEncrypted = Model.Organisation.GetEncryptedId(),
+ OrganisationName = Model.Organisation.OrganisationName
+ };
+ }
+
+ @(reportingYearFormatted)
+ Gender pay gap report
+
+ Contents
+
+
+
+
+
+
+
+ 1. Main gender pay gap figures
+
+
+
+
+
+
+
+
+ 2. Hourly pay
+
+
+
-
-
-
- Read more about median and mean
-
-
-
-
-
- 3. Pay quarters
-
-
-
-
-
-
-
- Read more about pay quarters
-
-
-
-
-
- 4. Bonus pay
-
-
-
- @if (Model.FemaleMedianBonusPayPercent > 0 || Model.MaleMedianBonusPayPercent > 0)
- {
+ @(Model.DiffMeanHourlyPayPercent >= 0 ? "lower" : "higher")
+ than men’s
+
+
+
+
+
+ Read more about median and mean
+
+
+
+
+
+ 3. Pay quarters
+
+
+
+
+
+
+
+ Read more about pay quarters
+
+
+
+
+
+ 4. Bonus pay
+
+
+
+ @if (Model.FemaleMedianBonusPayPercent > 0 || Model.MaleMedianBonusPayPercent > 0)
+ {
@if (Model.DiffMedianBonusPercent.HasValue)
{
-
-
-
-
- 5. About @(Model.Organisation.OrganisationName)
-
-
-
-
+
+
+ 5. About @(Model.Organisation.OrganisationName)
+
+
+
+
-
- @if (UriSanitiser.IsValidHttpOrHttpsLink(Model.CompanyLinkToGPGInfo))
- {
-