- Add announcements view using JSX to the dashboard sidebar - Create a new maintenance interface to edit and manage announcements - Adds an override to main.html template to include new skip links - Add plugins required for announcements to TinyMCE This is motivated by a desire to have system wide messages for students that show on the dashboard. Enabled with FEATURES['ENABLE_ANNOUNCEMENTS']. Global staff are allowed to edit from the studio maintenance view.
41 lines
1.5 KiB
HTML
41 lines
1.5 KiB
HTML
<%page expression_filter="h"/>
|
|
<%inherit file="base.html" />
|
|
<%namespace name='static' file='../static_content.html'/>
|
|
<%!
|
|
from django.utils.translation import ugettext as _
|
|
from openedx.core.djangolib.markup import HTML, Text
|
|
%>
|
|
<%block name="title">${_('Delete Announcement')}</%block>
|
|
<%block name="viewtitle">
|
|
<h3 class="info-course">
|
|
<span>${_('Delete Announcement')}</span>
|
|
</h3>
|
|
</%block>
|
|
|
|
<%block name="viewcontent">
|
|
<section class="container maintenance-content">
|
|
<div id="delete-announcement-form" class="studio-view maintenance-form">
|
|
<div class="container-message wrapper-message">
|
|
<div class="message has-warnings" aria-hidden="true">
|
|
<p class="warning">
|
|
<span class="icon fa fa-warning"></span>
|
|
${_('Are you sure you want to delete this Announcement?')}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<form action="" method="post" class="form-create announcement-container">
|
|
<input type="hidden" name="csrfmiddlewaretoken" value="${csrf_token}"/>
|
|
<div class="announcement-item">
|
|
<div class="announcement-content">
|
|
## xss-lint: disable=mako-invalid-html-filter
|
|
${object.content | n}
|
|
</div>
|
|
</div>
|
|
<div class="actions">
|
|
<button type="submit" class="action action-primary" value="Confirm">${_('Confirm')}</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
</%block>
|