Skip to content
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

Pedrovgp/se4781 add custom html templates in studio #405

Conversation

pedrovgp
Copy link

@pedrovgp pedrovgp commented Sep 21, 2021

This is the master version 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. Since changes are customer specific, they won't merge into this branch.

[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
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