This commit implements STUD-1490, allowing creation of components on the container page. It also enables the delete and duplicate buttons now that new content can be created that would benefit. Note that it also creates shared functionality for adding components, and refactors the unit page to use it too.
31 lines
1.1 KiB
HTML
31 lines
1.1 KiB
HTML
<%! from django.utils.translation import ugettext as _ %>
|
|
<%namespace name='static' file='static_content.html'/>
|
|
|
|
<div class="wrapper wrapper-component-action-header">
|
|
<div class="component-header">
|
|
${label}
|
|
</div>
|
|
<ul class="component-actions">
|
|
<li class="action-item action-edit">
|
|
<a href="#" class="edit-button action-button">
|
|
<i class="icon-pencil"></i>
|
|
<span class="action-button-text">${_("Edit")}</span>
|
|
</a>
|
|
</li>
|
|
<li class="action-item action-duplicate">
|
|
<a href="#" data-tooltip="${_("Duplicate")}" class="duplicate-button action-button">
|
|
<i class="icon-copy"></i>
|
|
<span class="sr">${_("Duplicate this component")}</span>
|
|
</a>
|
|
</li>
|
|
<li class="action-item action-delete">
|
|
<a href="#" data-tooltip="${_("Delete")}" class="delete-button action-button">
|
|
<i class="icon-trash"></i>
|
|
<span class="sr">${_("Delete this component")}</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<span data-tooltip="${_("Drag to reorder")}" class="drag-handle action"></span>
|
|
${preview}
|