Commit 90ebb4c8 by Nate Hardison

Theme the login page

As with the registration page, the bulk of the theming work here is
replacing instances of "edX" with the `PLATFORM_NAME` setting. There
is also a change to the "help" section, disabling it if the FAQ
marketing link isn't set.
parent 8c19b0c9
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<%! from django.core.urlresolvers import reverse %> <%! from django.core.urlresolvers import reverse %>
<%! from django.utils.translation import ugettext as _ %> <%! from django.utils.translation import ugettext as _ %>
<%block name="title"><title>Log into your edX Account</title></%block> <%block name="title"><title>Log into your ${settings.PLATFORM_NAME} Account</title></%block>
<%block name="js_extra"> <%block name="js_extra">
<script type="text/javascript"> <script type="text/javascript">
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
$submitButton. $submitButton.
removeClass('is-disabled'). removeClass('is-disabled').
removeProp('disabled'). removeProp('disabled').
html('Log into My edX Account <span class="orn-plus">+</span> Access My Courses'); html('Log into My ${settings.PLATFORM_NAME} Account <span class="orn-plus">+</span> Access My Courses');
} }
else { else {
$submitButton. $submitButton.
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<!-- status messages --> <!-- status messages -->
<div role="alert" class="status message"> <div role="alert" class="status message">
<h3 class="message-title">We're Sorry, edX accounts are unavailable currently</h3> <h3 class="message-title">We're Sorry, ${settings.PLATFORM_NAME} accounts are unavailable currently</h3>
<p class="message-copy">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p> <p class="message-copy">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
</div> </div>
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
</div> </div>
<p class="instructions sr"> <p class="instructions sr">
Please provide the following information to log into your edX account. Required fields are noted by <strong class="indicator">bold text and an asterisk (*)</strong>. Please provide the following information to log into your ${settings.PLATFORM_NAME} account. Required fields are noted by <strong class="indicator">bold text and an asterisk (*)</strong>.
</p> </p>
<fieldset class="group group-form group-form-requiredinformation"> <fieldset class="group group-form group-form-requiredinformation">
...@@ -164,14 +164,16 @@ ...@@ -164,14 +164,16 @@
<div class="cta cta-help"> <div class="cta cta-help">
<h3>Not Enrolled?</h3> <h3>Not Enrolled?</h3>
<p><a href="${reverse('register_user')}">Sign up for edX today!</a></p> <p><a href="${reverse('register_user')}">Sign up for ${settings.PLATFORM_NAME} today!</a></p>
<h3>Need Help?</h3> ## Disable help unless the FAQ marketing link is enabled
<p>Looking for help in logging in or with your edX account? % if settings.MKTG_URL_LINK_MAP.get('FAQ', None) is not None:
<a href="${marketing_link('FAQ')}"> <h3>Need Help?</h3>
View our help section for answers to commonly asked questions. <p>Looking for help in logging in or with your ${settings.PLATFORM_NAME} account?
</a></p> <a href="${marketing_link('FAQ')}">
View our help section for answers to commonly asked questions.
</a></p>
% endif
</div> </div>
</aside> </aside>
</section> </section>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment