Skip to content

Commit

Permalink
Merge pull request #488 from DFE-Digital/fix-feedback-component
Browse files Browse the repository at this point in the history
fix: restored page name variable
  • Loading branch information
mattb-hippo authored Jul 31, 2024
2 parents 95fc439 + a361d7f commit 8c4d8ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Childrens-Social-Care-CPD/Views/Shared/_Feedback.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

@if (!featureConfig.IsEnabled(Features.FeedbackControl)) return;

@{
var contextModel = (ContextModel)ViewBag.ContextModel;
}
<div id="page-feedback" class="govuk-grid-row" data-module="feedback-module">
<div class="govuk-grid-column-three-quarters">

Expand All @@ -15,6 +18,7 @@
</summary>

<form action="feedback" method="post" data-module-id="feedbackForm" asp-antiforgery="true">
<input data-module-id="page" type="hidden" name="page" value="@contextModel.Id" />
<div data-module-id="controlsContainer">
<div class="govuk-details__text">
Use this form to provide feedback about this page.
Expand Down

0 comments on commit 8c4d8ad

Please sign in to comment.