Skip to content

Pedrovgp/se4781 add custom html templates in studio - #403

Merged
pedrovgp merged 3 commits into
opencraft-release/koa.3from
pedrovgp/se4781-add-custom-html-templates-in-studio
Sep 21, 2021
Merged

Pedrovgp/se4781 add custom html templates in studio#403
pedrovgp merged 3 commits into
opencraft-release/koa.3from
pedrovgp/se4781-add-custom-html-templates-in-studio

Conversation

@pedrovgp

Copy link
Copy Markdown

This is the continuation of #399, which was closed when I cleaned the commits. The changes in this PR will be cherry picked to the customers production branches as needed.

[SE-4781] This creates a custom list of HTML elements to add to a Unit, in a Subsection, in a Section of a course authored in Studio. This affects any author of courses using Studio.

JIRA tickets:

SE-4781

Screenshots:

When clicking HTML (below)
image
The list that appears (default below)
image

Should show all the units designed by ESME and available at this link

Merge deadline: 2021-09-17

Testing instructions:

  1. Make sure to have devstack up and running,
  2. In the edx-platform repository pull the branch
  3. Run make dev.restart-devserver.studio
  4. Visit http://localhost:18010
  5. Edit the demo course and add another unit
  6. In the new unit add an HTML block
  7. Check the items in the list. They need to include the ones added by this commit.
  8. Select "overview" from the list
  9. Publish the changed course
  10. Run make lms-up
  11. Run make lms-static
  12. Run frontend-app-learning-up
  13. Visit http://localhost:18000, access the demo course as audit student, go to the changed section
  14. Check that the overview contains the styles from .div-overview from the scss file changed by this PR

Author notes and concerns:

This PR is being compared to the current branch in the staging environment.

Reviewers

@jvdm

The customer required replacing the default list,
which requires deleting these snippet files.
ADD html snippets from overview unit

From here: https://studio.esme-staging.opencraft.hosting/course/course-v1:esme+CT+2021?show=block-v1%3Aesme%2BCT%2B2021%2Btype%40chapter%2Bblock%400d4aefe059784786bd1f8eb850a633b2

The snippets from the overview Unit were added.

ADD snippets from all other subsections

Added snippets from Typical Section and Quiz
CSS lines were removed from all files, as per requested.

CORRECT typo which made template invalid
@pedrovgp
pedrovgp changed the base branch from opencraft-release/koa.3 to esme-oxford-release/koa.3 September 21, 2021 18:08
@pedrovgp
pedrovgp changed the base branch from esme-oxford-release/koa.3 to opencraft-release/koa.3 September 21, 2021 18:09
@pedrovgp
pedrovgp requested a review from jvdm September 21, 2021 18:09
@pedrovgp pedrovgp self-assigned this Sep 21, 2021
@pedrovgp
pedrovgp merged commit 8893cd2 into opencraft-release/koa.3 Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant