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