* feat: add share link modal when hide from toc is enabled Adds a new button in the child subsections of sections with Hide From TOC enabled. This button displays a new modal with two tabs. The first tab displays a button that allows you to copy the link of that subsection to the clipboard. The second tab displays a button that allows you to copy the embedded link of the same subsection to the clipboard. Ref: https://openedx.atlassian.net/wiki/spaces/OEPM/pages/3853975595/Feature+Enhancement+Proposal+Hide+Sections+from+course+outline
21 lines
890 B
Plaintext
21 lines
890 B
Plaintext
<div class="modal-section-content">
|
|
<div class="subsection-share-link-container">
|
|
<div>
|
|
<p>
|
|
<%- gettext('Embed your subsection content directly on a page using an iframe, and view it withput the LMS header and footer.') %>
|
|
</p>
|
|
<button
|
|
type="button"
|
|
id="embed-link-button"
|
|
data-clipboard-text="<%- embedLmsUrl %>"
|
|
title="<%- gettext('Click to copy link to clipboard') %>"
|
|
class="button btn-primary copy-link-button"
|
|
>
|
|
<span class="icon fa fa-clipboard icon-copy-clipboard"></span>
|
|
<span class="copy-link-button-text"><%- gettext('Copy link') %></span>
|
|
</button>
|
|
</div>
|
|
<img class="share-link-animated-svg" src="/static/studio/images/subsection-embed.svg">
|
|
</div>
|
|
</div>
|