Add accessibility accomodation request page to studio and link to said page in footer, both behind a Waffle switch. Add tests for the new page.
This commit is contained in:
26
cms/templates/accessibility.html
Normal file
26
cms/templates/accessibility.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<%page expression_filter="h"/>
|
||||
<%inherit file="base.html" />
|
||||
<%def name="online_help_token()"><% return "accessibility" %></%def>
|
||||
<%!
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.utils.translation import ugettext as _
|
||||
from openedx.core.djangolib.markup import HTML, Text
|
||||
from openedx.core.djangolib.js_utils import js_escaped_string, dump_js_escaped_json
|
||||
%>
|
||||
<%block name="title">${_("Studio Accessibility Policy")}</%block>
|
||||
<%block name="bodyclass">is-signedin not-signedin view-accessibility</%block>
|
||||
|
||||
<%namespace name='static' file='static_content.html'/>
|
||||
|
||||
<%block name="content">
|
||||
|
||||
<div class="wrapper-content wrapper">
|
||||
<div class="content">
|
||||
<div class="content-primary">
|
||||
<div id="root"></div>
|
||||
<h1>Accessibility Accommodation Request</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</%block>
|
||||
@@ -4,6 +4,7 @@ from django.core.urlresolvers import reverse
|
||||
from datetime import datetime
|
||||
from django.conf import settings
|
||||
import pytz
|
||||
from cms.djangoapps.contentstore.config.waffle import waffle, ENABLE_ACCESSIBILITY_POLICY_PAGE
|
||||
%>
|
||||
|
||||
<div class="wrapper-footer wrapper">
|
||||
@@ -14,7 +15,7 @@ import pytz
|
||||
<p>© ${datetime.now(pytz.timezone(settings.TIME_ZONE)).year} <a data-rel="edx.org" href="${marketing_link('ROOT')}" rel="external">${settings.PLATFORM_NAME}</a>.</p>
|
||||
</div>
|
||||
|
||||
% if is_any_marketing_link_set(['TOS', 'PRIVACY']):
|
||||
% if is_any_marketing_link_set(['TOS', 'PRIVACY']) or waffle().is_enabled(ENABLE_ACCESSIBILITY_POLICY_PAGE):
|
||||
<nav class="nav-peripheral">
|
||||
<ol>
|
||||
% if is_marketing_link_set('TOS'):
|
||||
@@ -27,6 +28,11 @@ import pytz
|
||||
<a data-rel="edx.org" href="${marketing_link('PRIVACY')}">${_("Privacy Policy")}</a>
|
||||
</li>
|
||||
% endif
|
||||
% if waffle().is_enabled(ENABLE_ACCESSIBILITY_POLICY_PAGE):
|
||||
<li class="nav-item nav-peripheral-aar">
|
||||
<a data-rel="edx.org" href="${reverse('accessibility')}">${_("Accessibility Accommodation Request")}</a>
|
||||
</li>
|
||||
%endif
|
||||
</ol>
|
||||
</nav>
|
||||
% endif
|
||||
|
||||
Reference in New Issue
Block a user