|  | 
| 1 | 1 | @using DigitalLearningSolutions.Web.ViewModels.UserFeedback | 
|  | 2 | +@using Microsoft.AspNetCore.Http.Extensions | 
| 2 | 3 | @using Microsoft.AspNetCore.Mvc.TagHelpers | 
| 3 | 4 | 
 | 
| 4 | 5 | @model UserFeedbackViewModel; | 
|  | 
| 51 | 52 | 
 | 
| 52 | 53 |         <p class="nhsuk-body-l">Step 1 of 4</p> | 
| 53 | 54 | 
 | 
| 54 |  | -      <form method="post" asp-action="UserFeedbackTaskAchievedSet"> | 
| 55 |  | -        <input type="hidden" asp-for="SourceUrl" value="@Context.Request.Path" /> @* changing the value of source URL to the current route *@ | 
| 56 |  | -        <input type="hidden" asp-for="SourcePageTitle" value="@Model.SourcePageTitle" /> | 
| 57 |  | -        <div class="nhsuk-hint" id="task-achieve-hint"> | 
| 58 |  | -          Did you achieve everything you came to do today? | 
| 59 |  | -        </div> | 
| 60 |  | -        <fieldset class="nhsuk-fieldset" id="feedback-achieved-form" aria-describedby="task-achieve-hint"> | 
| 61 |  | -          <div class="nhsuk-u-margin-bottom-6"> | 
| 62 |  | -            <div class="nhsuk-radios__item"> | 
| 63 |  | -              <input class="nhsuk-radios__input" | 
| 64 |  | -                   id="feedback-achieved-yes" | 
| 65 |  | -                   asp-for="TaskAchieved" | 
| 66 |  | -                   type="radio" | 
| 67 |  | -                   value="true"> | 
| 68 |  | -              <label class="nhsuk-label nhsuk-radios__label" for="feedback-achieved-yes"> | 
| 69 |  | -                Yes | 
| 70 |  | -              </label> | 
|  | 55 | +        <form method="post" asp-action="UserFeedbackTaskAchievedSet"> | 
|  | 56 | +            <input type="hidden" asp-for="SourceUrl" value="@Context.Request.GetDisplayUrl()" /> @* changing the value of source URL to the current route *@ | 
|  | 57 | +            <input type="hidden" asp-for="SourcePageTitle" value="@Model.SourcePageTitle" /> | 
|  | 58 | +            <div class="nhsuk-hint" id="task-achieve-hint"> | 
|  | 59 | +                Did you achieve everything you came to do today? | 
| 71 | 60 |             </div> | 
| 72 |  | -            <div class="nhsuk-radios__item"> | 
| 73 |  | -              <input class="nhsuk-radios__input" | 
| 74 |  | -                   id="feedback-achieved-no" | 
| 75 |  | -                   asp-for="TaskAchieved" | 
| 76 |  | -                   type="radio" | 
| 77 |  | -                   value="false" /> | 
| 78 |  | -              <label class="nhsuk-label nhsuk-radios__label" for="feedback-achieved-no"> | 
| 79 |  | -                No | 
| 80 |  | -              </label> | 
|  | 61 | +            <fieldset class="nhsuk-fieldset" id="feedback-achieved-form" aria-describedby="task-achieve-hint"> | 
|  | 62 | +                <div class="nhsuk-u-margin-bottom-6"> | 
|  | 63 | +                    <div class="nhsuk-radios__item"> | 
|  | 64 | +                        <input class="nhsuk-radios__input" | 
|  | 65 | +                               id="feedback-achieved-yes" | 
|  | 66 | +                               asp-for="TaskAchieved" | 
|  | 67 | +                               type="radio" | 
|  | 68 | +                               value="true"> | 
|  | 69 | +                        <label class="nhsuk-label nhsuk-radios__label" for="feedback-achieved-yes"> | 
|  | 70 | +                            Yes | 
|  | 71 | +                        </label> | 
|  | 72 | +                    </div> | 
|  | 73 | +                    <div class="nhsuk-radios__item"> | 
|  | 74 | +                        <input class="nhsuk-radios__input" | 
|  | 75 | +                               id="feedback-achieved-no" | 
|  | 76 | +                               asp-for="TaskAchieved" | 
|  | 77 | +                               type="radio" | 
|  | 78 | +                               value="false" /> | 
|  | 79 | +                        <label class="nhsuk-label nhsuk-radios__label" for="feedback-achieved-no"> | 
|  | 80 | +                            No | 
|  | 81 | +                        </label> | 
|  | 82 | +                    </div> | 
|  | 83 | +                </div> | 
|  | 84 | +            </fieldset> | 
|  | 85 | +            <div class="nhsuk-u-float-right"> | 
|  | 86 | +                <button class="nhsuk-button" type="submit"> | 
|  | 87 | +                    Continue | 
|  | 88 | +                    <span class="feedback-chevron"> | 
|  | 89 | +                        <partial name="_NhsChevronRightOffset" class="feedback-chevron" /> | 
|  | 90 | +                    </span> | 
|  | 91 | +                </button> | 
| 81 | 92 |             </div> | 
| 82 |  | -          </div> | 
| 83 |  | -        </fieldset> | 
| 84 |  | -        <div class="nhsuk-u-float-right"> | 
| 85 |  | -          <button class="nhsuk-button" type="submit">Continue | 
| 86 |  | -          <span class="feedback-chevron"> | 
| 87 |  | -            <partial name="_NhsChevronRightOffset" class="feedback-chevron" /> | 
| 88 |  | -          </span> | 
| 89 |  | -        </button> | 
| 90 |  | -        </div> | 
| 91 |  | -      </form> | 
|  | 93 | +        </form> | 
| 92 | 94 |     </div> | 
| 93 | 95 | </div> | 
| 94 | 96 | 
 | 
0 commit comments