|
3 | 3 | <h2>Framework structure</h2> |
4 | 4 | @if (Model.FrameworkCompetencyGroups.Any()) |
5 | 5 | { |
6 | | - foreach (var frameworkCompetencyGroup in Model.FrameworkCompetencyGroups) |
7 | | - { |
8 | | - <partial name="../Shared/_CompetencyGroupCard.cshtml" model="new CompetencyGroupCardViewModel |
| 6 | + foreach (var frameworkCompetencyGroup in Model.FrameworkCompetencyGroups) |
| 7 | + { |
| 8 | + <partial name="../Shared/_CompetencyGroupCard.cshtml" model="new CompetencyGroupCardViewModel |
9 | 9 | { |
10 | 10 | CanModify = Model.DetailFramework.UserRole > 1, |
11 | 11 | FrameworkCompetencyGroup =frameworkCompetencyGroup, |
12 | 12 | CompetencyFlags = Model.CompetencyFlags |
13 | 13 | }" |
14 | | - view-data='@new ViewDataDictionary(ViewData) |
| 14 | + view-data='new ViewDataDictionary(ViewData) |
15 | 15 | { |
16 | | - { "VocabSingular", @Model.VocabSingular() }, |
17 | | - { "VocabPlural", @Model.VocabPlural() }, |
18 | | - { "GroupCount", @Model.FrameworkCompetencyGroups.Count() } |
| 16 | + { "VocabSingular", Model.VocabSingular() }, |
| 17 | + { "VocabPlural", Model.VocabPlural() }, |
| 18 | + { "GroupCount", Model.FrameworkCompetencyGroups.Count() } |
19 | 19 | }' /> |
20 | | - } |
| 20 | + } |
21 | 21 | } |
22 | 22 | else |
23 | 23 | { |
24 | | - @if (!Model.FrameworkCompetencies.Any()) |
25 | | - { |
26 | | - <div class="nhsuk-warning-callout callout-green"> |
27 | | - <h3 class="nhsuk-warning-callout__label"> |
28 | | - <span role="text"> |
29 | | - This is an empty framework. |
30 | | - </span> |
31 | | - </h3> |
32 | | - @if (Model.DetailFramework.UserRole <= 1) |
33 | | - { |
34 | | - <p>This framework doesn't contain any @Model.VocabSingular().ToLower() groups or @Model.VocabPlural().ToLower().</p> |
35 | | - } |
36 | | - @if (Model.DetailFramework.UserRole > 1) |
37 | | - { |
38 | | - <p>Start adding @Model.VocabSingular().ToLower() groups and @Model.VocabPlural().ToLower() to this framework using the buttons below.</p> |
39 | | - <p>Use the <strong>Details</strong> tab above to view and edit the framework details and working group.</p> |
40 | | - } |
41 | | - @if (Model.DetailFramework.UserRole > 0) |
42 | | - { |
43 | | - <p>Use the <strong>Comments</strong> tab to view, add and respond to comments from working group members on this framework.</p> |
44 | | - } |
45 | | - @if (Model.DetailFramework.UserRole > 1) |
46 | | - { |
47 | | - <p>When you are ready, use the <strong>Send for Review</strong> button above to request review and sign off of your framework.</p> |
48 | | - } |
49 | | - </div> |
50 | | - } |
51 | | - else |
52 | | - { |
53 | | - <p>No @Model.VocabSingular().ToLower() groups in this framework.</p> |
54 | | - } |
| 24 | + @if (!Model.FrameworkCompetencies.Any()) |
| 25 | + { |
| 26 | + <div class="nhsuk-warning-callout callout-green"> |
| 27 | + <h3 class="nhsuk-warning-callout__label"> |
| 28 | + <span role="text"> |
| 29 | + This is an empty framework. |
| 30 | + </span> |
| 31 | + </h3> |
| 32 | + @if (Model.DetailFramework.UserRole <= 1) |
| 33 | + { |
| 34 | + <p>This framework doesn't contain any @Model.VocabSingular().ToLower() groups or @Model.VocabPlural().ToLower().</p> |
| 35 | + } |
| 36 | + @if (Model.DetailFramework.UserRole > 1) |
| 37 | + { |
| 38 | + <p>Start adding @Model.VocabSingular().ToLower() groups and @Model.VocabPlural().ToLower() to this framework using the buttons below.</p> |
| 39 | + <p>Use the <strong>Details</strong> tab above to view and edit the framework details and working group.</p> |
| 40 | + } |
| 41 | + @if (Model.DetailFramework.UserRole > 0) |
| 42 | + { |
| 43 | + <p>Use the <strong>Comments</strong> tab to view, add and respond to comments from working group members on this framework.</p> |
| 44 | + } |
| 45 | + @if (Model.DetailFramework.UserRole > 1) |
| 46 | + { |
| 47 | + <p>When you are ready, use the <strong>Send for Review</strong> button above to request review and sign off of your framework.</p> |
| 48 | + } |
| 49 | + </div> |
| 50 | + } |
| 51 | + else |
| 52 | + { |
| 53 | + <p>No @Model.VocabSingular().ToLower() groups in this framework.</p> |
| 54 | + } |
55 | 55 | } |
56 | 56 | <div id="fc-ungrouped"> |
57 | | - @if (Model.FrameworkCompetencies.Any()) |
58 | | - { |
59 | | - |
60 | | - foreach (var frameworkCompetency in Model.FrameworkCompetencies) |
| 57 | + @if (Model.FrameworkCompetencies.Any()) |
61 | 58 | { |
62 | | - <partial name="../Shared/_CompetencyCard.cshtml" model="new CompetencyCardViewModel() |
| 59 | + |
| 60 | + foreach (var frameworkCompetency in Model.FrameworkCompetencies) |
| 61 | + { |
| 62 | + <partial name="../Shared/_CompetencyCard.cshtml" model="new CompetencyCardViewModel() |
63 | 63 | { |
64 | 64 | CanModify = Model.DetailFramework.UserRole > 1, |
65 | 65 | FrameworkCompetencyGroupId = null, |
66 | 66 | FrameworkCompetency = frameworkCompetency, |
67 | 67 | CompetencyFlags = Model.CompetencyFlags.Where(c => c.CompetencyId == frameworkCompetency.CompetencyID) |
68 | 68 | }" |
69 | | - view-data='@new ViewDataDictionary(ViewData) |
| 69 | + view-data='new ViewDataDictionary(ViewData) |
70 | 70 | { |
71 | | - { "VocabSingular", @Model.VocabSingular() }, |
72 | | - {"VocabPlural", @Model.VocabPlural() } |
| 71 | + { "VocabSingular", Model.VocabSingular() }, |
| 72 | + {"VocabPlural", Model.VocabPlural() } |
73 | 73 | }' /> |
74 | | - } |
| 74 | + } |
75 | 75 |
|
76 | | - } |
| 76 | + } |
77 | 77 | </div> |
78 | 78 | @if (Model.DetailFramework.UserRole > 1) |
79 | 79 | { |
80 | | - <div class="nhsuk-grid-row nhsuk-u-margin-top-3"> |
81 | | - <div class="nhsuk-grid-column-full"> |
82 | | - <a class="nhsuk-button" asp-action="AddEditFrameworkCompetencyGroup" asp-route-frameworkId="@(ViewContext.RouteData.Values["frameworkId"])">Add @Model.VocabSingular().ToLower() group</a> |
83 | | - <a class="nhsuk-button nhsuk-button--secondary" asp-action="AddEditFrameworkCompetency" asp-route-frameworkId="@(ViewContext.RouteData.Values["frameworkId"])">Add ungrouped @Model.VocabSingular().ToLower()</a> |
84 | | - <a class="nhsuk-button nhsuk-button--secondary" asp-action="ImportCompetencies" asp-route-frameworkId="@(ViewContext.RouteData.Values["frameworkId"])" asp-route-tabname="@(ViewContext.RouteData.Values["tabname"])">Import @Model.VocabPlural().ToLower() from Excel</a> |
| 80 | + <div class="nhsuk-grid-row nhsuk-u-margin-top-3"> |
| 81 | + <div class="nhsuk-grid-column-full"> |
| 82 | + <a class="nhsuk-button" asp-action="AddEditFrameworkCompetencyGroup" asp-route-frameworkId="@(ViewContext.RouteData.Values["frameworkId"])">Add @Model.VocabSingular().ToLower() group</a> |
| 83 | + <a class="nhsuk-button nhsuk-button--secondary" asp-action="AddEditFrameworkCompetency" asp-route-frameworkId="@(ViewContext.RouteData.Values["frameworkId"])">Add ungrouped @Model.VocabSingular().ToLower()</a> |
| 84 | + <a class="nhsuk-button nhsuk-button--secondary" asp-action="ImportCompetencies" asp-route-frameworkId="@(ViewContext.RouteData.Values["frameworkId"])" asp-route-tabname="@(ViewContext.RouteData.Values["tabname"])">Import @Model.VocabPlural().ToLower() from Excel</a> |
| 85 | + </div> |
85 | 86 | </div> |
86 | | - </div> |
87 | 87 | } |
88 | 88 |
|
0 commit comments