-
Notifications
You must be signed in to change notification settings - Fork 1
HEEDLS-435 - implemented Manage Course Page #506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HEEDLS-435 - implemented Manage Course Page #506
Conversation
AlexJacksonDS
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few things about formatting/minor refactoring
| const int centreId = 101; | ||
| const int categoryId = 0; | ||
| var fixedCreationDateTime = DateTime.UtcNow; | ||
| var expectedCourseDetails = new CourseDetails |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth pulling this out into a helper?
| <dt class="nhsuk-summary-list__key"> | ||
| Password | ||
| </dt> | ||
| <partial name="_SummaryFieldValue" model="@Model.Password" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need to use the partial here since there is already a condition around the Password being null or white space.
| <dt class="nhsuk-summary-list__key"> | ||
| Course completion notification email | ||
| </dt> | ||
| <partial name="_SummaryFieldValue" model="@Model.NotificationEmails" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
| <dd class="nhsuk-summary-list__value"> | ||
| @(Model.Active ? "Yes" : "No") | ||
| </dd> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be worth turning these bool to Yes/No into a partial similar to the value with a dash partial
| <div class="nhsuk-card__content basic-card-content"> | ||
| <dl class="nhsuk-summary-list"> | ||
| <div class="nhsuk-summary-list__row basic-summary-list__row"> | ||
| <dt class="nhsuk-summary-list__key">Current version</dt> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sure you've run the formatter here, but is there any other reason for these to all be single line rather than the spaced version we're using elsewhere.
| <dl class="nhsuk-summary-list"> | ||
| <div class="nhsuk-summary-list__row basic-summary-list__row"> | ||
| <dt class="nhsuk-summary-list__key">Current version</dt> | ||
| <dd class="nhsuk-summary-list__value ">@Model.CurrentVersion</dd> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are also a number of classes with a space at the end in this file
AlexJacksonDS
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one thing left to change
| <dd class="nhsuk-summary-list__value"> | ||
| @(Model.ApplyLpDefaultsToSelfEnrol ? "Yes" : "No") | ||
| <partial name="_SummaryBooleanField" model="Model.ApplyLpDefaultsToSelfEnrol"/> | ||
| </dd> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this whole element have been replaced?
....Web/Views/TrackingSystem/CourseSetup/ManageCourse/_LearningPathwayDefaultsExpandable.cshtml
Outdated
Show resolved
Hide resolved
....Web/Views/TrackingSystem/CourseSetup/ManageCourse/_LearningPathwayDefaultsExpandable.cshtml
Outdated
Show resolved
Hide resolved
....Web/Views/TrackingSystem/CourseSetup/ManageCourse/_LearningPathwayDefaultsExpandable.cshtml
Outdated
Show resolved
Hide resolved
...earningSolutions.Web/Views/TrackingSystem/CourseSetup/ManageCourse/_CourseSummaryCard.cshtml
Outdated
Show resolved
Hide resolved
...gSolutions.Web/Views/TrackingSystem/CourseSetup/ManageCourse/_CourseDetailsExpandable.cshtml
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Views/TrackingSystem/CourseSetup/AdminFields/AdminFields.cshtml
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/ViewModels/TrackingSystem/CourseSetup/AdminFieldsViewModel.cs
Show resolved
Hide resolved
DigitalLearningSolutions.Data/DataServices/CourseDataService.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Data/DataServices/CourseDataService.cs
Outdated
Show resolved
Hide resolved
stellake
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! 👍
JIRA link
https://softwiretech.atlassian.net/browse/HEEDLS-435
Description
Added new Manage Course page in the course setup. Manage Admin Fields page has had some breadcrumbs/back links changed to point to this new page. Note that the final two buttons are secondary buttons rather than primary buttons (used in the ticket wireframes) at Stella's suggestion to reduce the amount of green buttons on the page.
Screenshots
Desktop example 1:

Mobile version of example 1:

Desktop example 2:

Learning Pathway defaults with same course name:

Course Options with PLAssess = 0:

Developer checks
I have: