|
26 | 26 | </div> |
27 | 27 | </nav> |
28 | 28 | } |
29 | | -<h1 class="nhsuk-heading-xl">Delegate file uploaded</h1> |
30 | | -<div class="nhsuk-width-container"> |
31 | | - <p class="nhsuk-body-l">@(Model.ErrorCount == 0 ? "Your file is error free and ready to be processed. Check the information below looks, correct before processing" : "Your file contains the following, including some errors:")</p> |
32 | | - <ul> |
33 | | - <li>@Model.ToProcessCount @(Model.ToProcessCount == 1 ? "row" : "rows") to process</li> |
34 | | - <li>@Model.CompetenciesToAddCount new @(Model.CompetenciesToAddCount == 1 ? Model.FrameworkVocabularySingular.ToLower() : Model.FrameworkVocabularyPlural.ToLower()) to add</li> |
35 | | - <li>@Model.ToUpdateOrSkipCount @Model.FrameworkVocabularySingular.ToLower() @(Model.ToUpdateOrSkipCount == 1 ? "record" : "records") to update (or skip if unchanged)</li> |
36 | | - @if (Model.ErrorCount > 0) |
37 | | - { |
38 | | - <li>@Model.ErrorCount @(Model.ErrorCount == 1 ? "row" : "rows") containing errors that cannot be processed</li> |
39 | | - } |
40 | | - else |
41 | | - { |
42 | | - <li>No errors</li> |
43 | | - } |
44 | | - </ul> |
45 | | - @if (Model.ErrorCount == 0) |
46 | | - { |
47 | | - <a asp-controller="Frameworks" role="button" asp-route-tabname="Structure" asp-action="AddAssessmentQuestions" class="nhsuk-button">Continue</a> |
48 | | - } |
49 | | - else |
50 | | - { |
51 | | - <p class="nhsuk-body-l">Check the information below. You will need fix these errors before continuing or remove the rows with errors from your spreadsheet:</p> |
52 | | - <div class="nhsuk-form-group nhsuk-form-group--error"> |
53 | | - <span class="nhsuk-error-message" id="error-list"> |
54 | | - <span class="nhsuk-u-visually-hidden">Error:</span> @Model.ErrorCount @Model.FrameworkVocabularySingular.ToLower() @(Model.ErrorCount == 1 ? "row" : "rows") contain errors and cannot be processed |
55 | | - </span> |
56 | | - <dl class="nhsuk-summary-list"> |
57 | | - @foreach (var (rowNumber, errorMessage) in Model.Errors) |
| 29 | +<div class="nhsuk-grid-row"> |
| 30 | + <div class="nhsuk-grid-column-full"> |
| 31 | + <h1 class="nhsuk-heading-xl">Delegate file uploaded</h1> |
| 32 | + <div class="nhsuk-u-reading-width"> |
| 33 | + <p class="nhsuk-body-l">@(Model.ErrorCount == 0 ? "Your file is error free and ready to be processed. Check the information below looks, correct before processing" : "Your file contains the following, including some errors:")</p> |
| 34 | + <ul> |
| 35 | + <li>@Model.ToProcessCount @(Model.ToProcessCount == 1 ? "row" : "rows") to process</li> |
| 36 | + <li>@Model.CompetenciesToAddCount new @(Model.CompetenciesToAddCount == 1 ? Model.FrameworkVocabularySingular.ToLower() : Model.FrameworkVocabularyPlural.ToLower()) to add</li> |
| 37 | + <li>@Model.ToUpdateOrSkipCount @Model.FrameworkVocabularySingular.ToLower() @(Model.ToUpdateOrSkipCount == 1 ? "record" : "records") to update (or skip if unchanged)</li> |
| 38 | + @if (Model.ErrorCount > 0) |
58 | 39 | { |
59 | | - <div class="nhsuk-summary-list__row"> |
60 | | - <dt class="nhsuk-summary-list__key"> |
61 | | - Row @rowNumber |
62 | | - </dt> |
63 | | - <dd class="nhsuk-summary-list__value"> |
64 | | - @errorMessage |
65 | | - </dd> |
66 | | - |
67 | | - </div> |
| 40 | + <li>@Model.ErrorCount @(Model.ErrorCount == 1 ? "row" : "rows") containing errors that cannot be processed</li> |
68 | 41 | } |
69 | | - </dl> |
70 | | - </div> |
71 | | - <h2>Upload corrected file</h2> |
72 | | - <p class="nhsuk-body-m"> |
73 | | - Once you have made corrections to the Excel competency workbook to address the errors above, save and restart the upload process. |
74 | | - </p> |
75 | | - <form class="nhsuk-u-margin-bottom-3" method="post" enctype="multipart/form-data"> |
| 42 | + else |
| 43 | + { |
| 44 | + <li>No errors</li> |
| 45 | + } |
| 46 | + </ul> |
| 47 | + @if (Model.ErrorCount == 0) |
| 48 | + { |
| 49 | + <a asp-controller="Frameworks" role="button" asp-route-frameworkId="@ViewContext.RouteData.Values["frameworkId"]" asp-route-tabname="Structure" asp-action="AddAssessmentQuestions" class="nhsuk-button">Continue</a> |
| 50 | + } |
| 51 | + else |
| 52 | + { |
| 53 | + <p class="nhsuk-body-l">Check the information below. You will need fix these errors before continuing or remove the rows with errors from your spreadsheet:</p> |
| 54 | + <div class="nhsuk-form-group nhsuk-form-group--error"> |
| 55 | + <span class="nhsuk-error-message" id="error-list"> |
| 56 | + <span class="nhsuk-u-visually-hidden">Error:</span> @Model.ErrorCount @Model.FrameworkVocabularySingular.ToLower() @(Model.ErrorCount == 1 ? "row" : "rows") contain errors and cannot be processed |
| 57 | + </span> |
| 58 | + <dl class="nhsuk-summary-list"> |
| 59 | + @foreach (var (rowNumber, errorMessage) in Model.Errors) |
| 60 | + { |
| 61 | + <div class="nhsuk-summary-list__row"> |
| 62 | + <dt class="nhsuk-summary-list__key"> |
| 63 | + Row @rowNumber |
| 64 | + </dt> |
| 65 | + <dd class="nhsuk-summary-list__value"> |
| 66 | + @errorMessage |
| 67 | + </dd> |
| 68 | + |
| 69 | + </div> |
| 70 | + } |
| 71 | + </dl> |
| 72 | + </div> |
| 73 | + <h2>Upload corrected file</h2> |
| 74 | + <p class="nhsuk-body-m"> |
| 75 | + Once you have made corrections to the Excel competency workbook to address the errors above, save and restart the upload process. |
| 76 | + </p> |
| 77 | + <form class="nhsuk-u-margin-bottom-3" method="post" enctype="multipart/form-data"> |
76 | 78 |
|
77 | | - <vc:file-input asp-for="@nameof(Model.ImportFile)" label="File with corrected @Model.FrameworkVocabularyPlural.ToLower() information" hint-text="" css-class="nhsuk-u-width-one-half" /> |
78 | | - <input type="hidden" asp-for="IsNotBlank" /> |
79 | | - <input type="hidden" asp-for="TabName" /> |
| 79 | + <vc:file-input asp-for="@nameof(Model.ImportFile)" label="File with corrected @Model.FrameworkVocabularyPlural.ToLower() information" hint-text="" css-class="nhsuk-u-width-one-half" /> |
| 80 | + <input type="hidden" asp-for="IsNotBlank" /> |
| 81 | + <input type="hidden" asp-for="TabName" /> |
80 | 82 |
|
81 | | - <button class="nhsuk-button" type="submit">Upload file</button> |
82 | | - </form> |
83 | | - } |
84 | | - <vc:back-link asp-controller="Frameworks" asp-action="Index" asp-all-route-data="@null" link-text="Cancel" /> |
| 83 | + <button class="nhsuk-button" type="submit">Upload file</button> |
| 84 | + </form> |
| 85 | + } |
| 86 | + <vc:back-link asp-controller="Frameworks" asp-action="Index" asp-all-route-data="@null" link-text="Cancel" /> |
| 87 | + </div> |
| 88 | + </div> |
85 | 89 | </div> |
0 commit comments