diff --git a/web/src/Web.App/AssetSrc/scss/main.scss b/web/src/Web.App/AssetSrc/scss/main.scss index e62cdf8e0..2b8c5d117 100644 --- a/web/src/Web.App/AssetSrc/scss/main.scss +++ b/web/src/Web.App/AssetSrc/scss/main.scss @@ -393,7 +393,7 @@ hr.govuk-section-break--print { .app-resources { margin-top: govuk-spacing(6); - + @include govuk-media-query('tablet') { margin-top: 0; } @@ -405,4 +405,8 @@ hr.govuk-section-break--print { @include govuk-media-query('tablet') { padding-top: govuk-spacing(2); } +} + +.save-charts { + float: right; } \ No newline at end of file diff --git a/web/src/Web.App/Views/SchoolComparison/Index.cshtml b/web/src/Web.App/Views/SchoolComparison/Index.cshtml index a664c921d..d0c0b767a 100644 --- a/web/src/Web.App/Views/SchoolComparison/Index.cshtml +++ b/web/src/Web.App/Views/SchoolComparison/Index.cshtml @@ -11,6 +11,11 @@ @await Html.PartialAsync("_IncompleteFinances") } +@if (!hasMissingComparatorSet) +{ + @await Html.PartialAsync("_SaveChartsButton") +} + @await Component.InvokeAsync("EstablishmentHeading", new { title = ViewData[ViewDataKeys.Title], diff --git a/web/src/Web.App/Views/Shared/_SaveChartsButton.cshtml b/web/src/Web.App/Views/Shared/_SaveChartsButton.cshtml new file mode 100644 index 000000000..d3c25f8f8 --- /dev/null +++ b/web/src/Web.App/Views/Shared/_SaveChartsButton.cshtml @@ -0,0 +1,9 @@ +
+
+
diff --git a/web/src/Web.App/Views/TrustComparison/Index.cshtml b/web/src/Web.App/Views/TrustComparison/Index.cshtml index 52d7a8684..b6ff027d6 100644 --- a/web/src/Web.App/Views/TrustComparison/Index.cshtml +++ b/web/src/Web.App/Views/TrustComparison/Index.cshtml @@ -1,27 +1,35 @@ -@using Web.App.Extensions -@using Newtonsoft.Json +@using Newtonsoft.Json +@using Web.App.Extensions @model Web.App.ViewModels.TrustComparisonViewModel @{ ViewData[ViewDataKeys.Title] = PageTitles.TrustComparison; } -@await Component.InvokeAsync("EstablishmentHeading", new { title = ViewData[ViewDataKeys.Title], name = Model.Name, id = Model.CompanyNumber, kind = OrganisationTypes.Trust }) +@await Html.PartialAsync("_SaveChartsButton") + +@await Component.InvokeAsync("EstablishmentHeading", new +{ + title = ViewData[ViewDataKeys.Title], + name = Model.Name, + id = Model.CompanyNumber, + kind = OrganisationTypes.Trust +}) @await Component.InvokeAsync("DataSource", new { organisationType = OrganisationTypes.Trust, sourceType = DataSourceTypes.Spending, - isPartOfTrust = true, + isPartOfTrust = true, additionText = new[] { "View the spending between schools in this trust." } }) @if (Model.NumberOfSchools > 0) { -
-
+ } @await Component.InvokeAsync("TrustFinanceTools", new