|
2 | 2 | @using DigitalLearningSolutions.Web.Extensions |
3 | 3 | @using DigitalLearningSolutions.Web.ViewModels.Frameworks |
4 | 4 | @using Microsoft.Extensions.Configuration |
5 | | -@model ImportCompetenciesResultsViewModel |
| 5 | +@model ImportCompetenciesPreProcessViewModel |
6 | 6 | @{ |
7 | 7 | ViewData["Title"] = "Framework - Import Competencies"; |
8 | 8 | ViewData["Application"] = "Framework Service"; |
|
26 | 26 | </div> |
27 | 27 | </nav> |
28 | 28 | } |
29 | | - |
30 | | - <div class="nhsuk-grid-row"> |
31 | | - <div class="nhsuk-grid-column-full"> |
32 | | - <h1 class="nhsuk-heading-xl">Import competencies complete</h1> |
33 | | - |
34 | | - <h2>Summary of results:</h2> |
35 | | - <ul> |
36 | | - <li>@Model.ProcessedCount @(Model.ProcessedCount == 1 ? "line" : "lines") processed</li> |
37 | | - <li>@Model.CompetencyGroupsInsertedCount new @(Model.CompetencyGroupsInsertedCount == 1 ? "competency group" : "competency groups") inserted</li> |
38 | | - <li>@Model.CompetenciesInsertedCount new @(Model.CompetenciesInsertedCount == 1 ? "competency" : "competencies") inserted</li> |
39 | | - <li>@Model.SkippedCount rows @(Model.SkippedCount == 1 ? "record" : "records") skipped (nothing inserted but no errors)</li> |
40 | | - <li>@Model.ErrorCount @(Model.ErrorCount == 1 ? "line" : "lines") skipped due to errors</li> |
41 | | - </ul> |
42 | | - |
43 | | - @if (Model.ErrorCount > 0) |
44 | | - { |
45 | | - <div class="nhsuk-warning-callout"> |
46 | | - <h3 class="nhsuk-warning-callout__label"> |
47 | | - <span role="text"> |
48 | | - <span class="nhsuk-u-visually-hidden">Important: </span> |
49 | | - The imported Excel worksheet contained errors |
50 | | - </span> |
51 | | - </h3> |
52 | | - <p>The lines below were skipped due to errors during processing:</p> |
53 | | - <ul> |
54 | | - @foreach (var (rowNumber, errorMessage) in Model.Errors) |
55 | | - { |
56 | | - <li>Line @rowNumber: @errorMessage</li> |
57 | | - } |
58 | | - </ul> |
59 | | - </div> |
60 | | - } |
61 | | - |
62 | | - <vc:action-link asp-controller="Frameworks" asp-action="ViewFramework" asp-all-route-data="@cancelLinkData" link-text="View Framework Structure" /> |
63 | | - </div> |
64 | | -</div> |
0 commit comments