diff --git a/src/Dfe.ContentSupport.Web/Models/Mapped/CsPage.cs b/src/Dfe.ContentSupport.Web/Models/Mapped/CsPage.cs index 91f70cb..24863d3 100644 --- a/src/Dfe.ContentSupport.Web/Models/Mapped/CsPage.cs +++ b/src/Dfe.ContentSupport.Web/Models/Mapped/CsPage.cs @@ -11,6 +11,7 @@ public class CsPage public bool HasCitation { get; set; } public bool ShowVerticalNavigation { get; set; } public bool HasBackToTop { get; set; } + public bool HasPrint { get; set; } public List Content { get; set; } = null!; public DateTime? CreatedAt { get; init; } public DateTime? UpdatedAt { get; init; } diff --git a/src/Dfe.ContentSupport.Web/Services/ModelMapper.cs b/src/Dfe.ContentSupport.Web/Services/ModelMapper.cs index b5f1a9b..d976b76 100644 --- a/src/Dfe.ContentSupport.Web/Services/ModelMapper.cs +++ b/src/Dfe.ContentSupport.Web/Services/ModelMapper.cs @@ -26,6 +26,7 @@ public CsPage MapToCsPage(ContentSupportPage incoming) HasCitation = incoming.HasCitation, HasBackToTop = incoming.HasBackToTop, HasFeedbackBanner = incoming.HasFeedbackBanner, + HasPrint = incoming.HasPrint, Content = MapEntriesToContent(incoming.Content), ShowVerticalNavigation = incoming.ShowVerticalNavigation, CreatedAt = incoming.Sys.CreatedAt, diff --git a/src/Dfe.ContentSupport.Web/ViewModels/ContentSupportPage.cs b/src/Dfe.ContentSupport.Web/ViewModels/ContentSupportPage.cs index 350bcd8..7668062 100644 --- a/src/Dfe.ContentSupport.Web/ViewModels/ContentSupportPage.cs +++ b/src/Dfe.ContentSupport.Web/ViewModels/ContentSupportPage.cs @@ -18,6 +18,7 @@ public class ContentSupportPage : ContentBase public bool HasCitation { get; init; } public bool HasBackToTop { get; init; } public bool HasFeedbackBanner { get; init; } + public bool HasPrint { get; init; } public bool ShowVerticalNavigation { get; init; } } \ No newline at end of file diff --git a/src/Dfe.ContentSupport.Web/Views/Content/CsIndex.cshtml b/src/Dfe.ContentSupport.Web/Views/Content/CsIndex.cshtml index 29b5d31..8ae4e3f 100644 --- a/src/Dfe.ContentSupport.Web/Views/Content/CsIndex.cshtml +++ b/src/Dfe.ContentSupport.Web/Views/Content/CsIndex.cshtml @@ -28,19 +28,24 @@ @foreach (var content in Model.Content) { - + }
@if (Model.HasCitation) { - + } @if (Model.HasBackToTop) { - + + } + + @if (Model.HasPrint) + { + } @if (Model.HasFeedbackBanner) diff --git a/src/Dfe.ContentSupport.Web/Views/Shared/_Print.cshtml b/src/Dfe.ContentSupport.Web/Views/Shared/_Print.cshtml new file mode 100644 index 0000000..402ac26 --- /dev/null +++ b/src/Dfe.ContentSupport.Web/Views/Shared/_Print.cshtml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/src/Dfe.ContentSupport.Web/wwwroot/assets/icon-print.png b/src/Dfe.ContentSupport.Web/wwwroot/assets/icon-print.png new file mode 100644 index 0000000..54737a3 Binary files /dev/null and b/src/Dfe.ContentSupport.Web/wwwroot/assets/icon-print.png differ diff --git a/src/Dfe.ContentSupport.Web/wwwroot/css/cands-site.css b/src/Dfe.ContentSupport.Web/wwwroot/css/cands-site.css index 6753196..1ea4f0b 100644 --- a/src/Dfe.ContentSupport.Web/wwwroot/css/cands-site.css +++ b/src/Dfe.ContentSupport.Web/wwwroot/css/cands-site.css @@ -382,7 +382,7 @@ dl.gem-c-metadata__list { } .dfe-vertical-nav__section--nested .dfe-vertical-nav__section-item::before { - content: "—"; + content: "�"; margin-left: -20px; color: #505a5f; } @@ -438,3 +438,22 @@ dl.gem-c-metadata__list { .dfe-vertical-nav__section .dfe-vertical-nav__section.dfe-vertical-nav__section-item--current .dfe-vertical-nav__link { font-weight: 700; } + +.print-link-button { + background: url(/assets/icon-print.png) no-repeat 10px 50%; + background-size: 16px 18px; + padding: 10px 10px 10px 36px; + border: 1px solid #b1b4b6; + color: #1d70b8; + cursor: pointer; + margin: 0; + margin-bottom: 15px; + font-weight: 400; + font-size: 14px; + font-size: 0.875rem; + line-height: 1.1429; +} + +.print-button { + margin-top: 2rem; +} \ No newline at end of file