diff --git a/DigitalLearningSolutions.Web/Styles/myAccount/notificationPreferences.scss b/DigitalLearningSolutions.Web/Styles/myAccount/notificationPreferences.scss index a096eead23..55bd47c7cc 100644 --- a/DigitalLearningSolutions.Web/Styles/myAccount/notificationPreferences.scss +++ b/DigitalLearningSolutions.Web/Styles/myAccount/notificationPreferences.scss @@ -28,6 +28,10 @@ text-align: right; padding-left: nhsuk-spacing(3); } + + @include govuk-media-query($until: desktop) { + margin-bottom: nhsuk-spacing(3); + } } .preference-tag { diff --git a/DigitalLearningSolutions.Web/Views/MyAccount/Index.cshtml b/DigitalLearningSolutions.Web/Views/MyAccount/Index.cshtml index edb636ebd0..8aef7b6fcf 100644 --- a/DigitalLearningSolutions.Web/Views/MyAccount/Index.cshtml +++ b/DigitalLearningSolutions.Web/Views/MyAccount/Index.cshtml @@ -13,138 +13,26 @@ @if (User.IsDelegateOnlyAccount()) { ViewData["Application"] = "Learning Portal"; - @section NavMenuItems { - - } -} else { - @section NavMenuItems { - - } -} +@section NavMenuItems { + +}} else { +@section NavMenuItems { + +}}

My account

-
-
-
-
-
- Centre: -
-
- @Model.Centre -
-
- - @if (Model.User?.Length > 0) { -
-
- User: -
-
- @Model.User -
-
- } - - @if (Model.DelegateNumber?.Length > 0) { -
-
- Delegate id: -
-
- @Model.DelegateNumber -
-
- } -
-
-
-
-
-
-
-
- - - My Details - - -
-
-
-
- First name: -
-
- @Model.FirstName -
-
- -
-
- Last name: -
-
- @Model.Surname -
-
- -
-
- Email address: -
-
- @Model.User -
-
- - @if (Model.DelegateNumber != null) { -
-
- Job group: -
-
- @Model.JobGroup -
-
- - foreach (var customField in Model.CustomFields) { - - } - } - -
-
- Profile picture (optional): -
-
- @if (Model.ProfilePicture != null) { - Profile Picture - } else { - Default Profile Picture - } -
-
-
- - - Edit details - - - Change password - + -
-
+
diff --git a/DigitalLearningSolutions.Web/Views/MyAccount/_AccountSummaryCard.cshtml b/DigitalLearningSolutions.Web/Views/MyAccount/_AccountSummaryCard.cshtml new file mode 100644 index 0000000000..ea89760b80 --- /dev/null +++ b/DigitalLearningSolutions.Web/Views/MyAccount/_AccountSummaryCard.cshtml @@ -0,0 +1,39 @@ +@using DigitalLearningSolutions.Web.ViewModels.MyAccount +@model MyAccountViewModel + +
+
+
+
+
+ Centre +
+
+ @Model.Centre +
+
+ + @if (Model.User?.Length > 0) { +
+
+ User +
+
+ @Model.User +
+
+ } + + @if (Model.DelegateNumber?.Length > 0) { +
+
+ Delegate id +
+
+ @Model.DelegateNumber +
+
+ } +
+
+
diff --git a/DigitalLearningSolutions.Web/Views/MyAccount/_MyDetailsCard.cshtml b/DigitalLearningSolutions.Web/Views/MyAccount/_MyDetailsCard.cshtml new file mode 100644 index 0000000000..0a4f73aed8 --- /dev/null +++ b/DigitalLearningSolutions.Web/Views/MyAccount/_MyDetailsCard.cshtml @@ -0,0 +1,75 @@ +@using DigitalLearningSolutions.Web.ViewModels.MyAccount +@model MyAccountViewModel + +
+
+

+ My Details +

+
+
+
+
+ First name +
+
+ @Model.FirstName +
+
+ +
+
+ Last name +
+
+ @Model.Surname +
+
+ +
+
+ Email address +
+
+ @Model.User +
+
+ + @if (Model.DelegateNumber != null) { +
+
+ Job group +
+
+ @Model.JobGroup +
+
+ + foreach (var customField in Model.CustomFields) { + + } + } + +
+
+ Profile picture (optional) +
+
+ @if (Model.ProfilePicture != null) { + Profile Picture + } else { + Default Profile Picture + } +
+
+
+ + + Edit details + + + Change password + +
+
+
diff --git a/DigitalLearningSolutions.Web/Views/NotificationPreferences/_NotificationPreferenceList.cshtml b/DigitalLearningSolutions.Web/Views/NotificationPreferences/_NotificationPreferenceList.cshtml index 70cda6e48a..f2647b8527 100644 --- a/DigitalLearningSolutions.Web/Views/NotificationPreferences/_NotificationPreferenceList.cshtml +++ b/DigitalLearningSolutions.Web/Views/NotificationPreferences/_NotificationPreferenceList.cshtml @@ -11,7 +11,7 @@ @Html.Raw(notification.Description)
- + @(notification.Accepted ? "Subscribed" : "Unsubscribed")