Skip to content

Commit 0ce8975

Browse files
authored
Merge pull request #3162 from TechnologyEnhancedLearning/Develop/fixes/TD-5322_Moving_The_Framework_Buttons_To_Top
TD-5322 Moving the framework buttons from the bottom of the screen to the top for visibility
2 parents eef3550 + 030e2cc commit 0ce8975

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

DigitalLearningSolutions.Web/Views/Frameworks/Developer/_Structure.cshtml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
@using DigitalLearningSolutions.Web.ViewModels.Frameworks;
22
@model FrameworkViewModel;
3+
4+
5+
@if (Model.DetailFramework.UserRole > 1)
6+
{
7+
<div class="nhsuk-grid-row nhsuk-u-margin-top-3">
8+
<div class="nhsuk-grid-column-full">
9+
<a class="nhsuk-button" asp-action="AddEditFrameworkCompetencyGroup" asp-route-frameworkId="@(ViewContext.RouteData.Values["frameworkId"])">Add @Model.VocabSingular().ToLower() group</a>
10+
<a class="nhsuk-button nhsuk-button--secondary" asp-action="AddEditFrameworkCompetency" asp-route-frameworkId="@(ViewContext.RouteData.Values["frameworkId"])">Add ungrouped @Model.VocabSingular().ToLower()</a>
11+
<a class="nhsuk-button nhsuk-button--secondary" asp-action="ImportCompetencies" asp-route-frameworkId="@(ViewContext.RouteData.Values["frameworkId"])" asp-route-isNotBlank="@(Model.FrameworkCompetencies.Any()|Model.FrameworkCompetencyGroups.Any())" asp-route-tabname="@(ViewContext.RouteData.Values["tabname"])">Bulk upload/update @Model.VocabPlural().ToLower()</a>
12+
<a class="nhsuk-button nhsuk-button--secondary" asp-action="PrintLayout" asp-route-frameworkId="@(ViewContext.RouteData.Values["frameworkId"])">View for print</a>
13+
</div>
14+
</div>
15+
}
316
<h2>Framework structure</h2>
417
@if (Model.FrameworkCompetencyGroups.Any())
518
{
@@ -75,15 +88,3 @@ else
7588

7689
}
7790
</div>
78-
@if (Model.DetailFramework.UserRole > 1)
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-isNotBlank="@(Model.FrameworkCompetencies.Any()|Model.FrameworkCompetencyGroups.Any())" asp-route-tabname="@(ViewContext.RouteData.Values["tabname"])">Bulk upload/update @Model.VocabPlural().ToLower()</a>
85-
<a class="nhsuk-button nhsuk-button--secondary" asp-action="PrintLayout" asp-route-frameworkId="@(ViewContext.RouteData.Values["frameworkId"])">View for print</a>
86-
</div>
87-
</div>
88-
}
89-

0 commit comments

Comments
 (0)