edx.org - adds in I18n syntax for login and register view page titles
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
<%inherit file="main.html" />
|
<%inherit file="main.html" />
|
||||||
|
|
||||||
<%namespace name='static' file='static_content.html'/>
|
<%namespace name='static' file='static_content.html'/>
|
||||||
|
|
||||||
<%! from django.core.urlresolvers import reverse %>
|
<%! from django.core.urlresolvers import reverse %>
|
||||||
|
<%! 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 edX Account</title></%block>
|
||||||
|
|
||||||
<%block name="js_extra">
|
<%block name="js_extra">
|
||||||
@@ -77,14 +80,14 @@
|
|||||||
|
|
||||||
<section class="introduction">
|
<section class="introduction">
|
||||||
<header>
|
<header>
|
||||||
<h1 class="sr">Log Into Your Account</h1>
|
<h1 class="sr">${_("Log Into Your Account")}</h1>
|
||||||
</header>
|
</header>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="login container">
|
<section class="login container">
|
||||||
<section role="main" class="content">
|
<section role="main" class="content">
|
||||||
<header>
|
<header>
|
||||||
<h2 class="sr">Login Form</h2>
|
<h2 class="sr">${_("Login Form")}</h2>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<form role="form" id="login-form" method="post" data-remote="true" action="/login_ajax">
|
<form role="form" id="login-form" method="post" data-remote="true" action="/login_ajax">
|
||||||
|
|||||||
@@ -2,9 +2,11 @@
|
|||||||
|
|
||||||
<%namespace name='static' file='static_content.html'/>
|
<%namespace name='static' file='static_content.html'/>
|
||||||
<%namespace file='main.html' import="login_query"/>
|
<%namespace file='main.html' import="login_query"/>
|
||||||
|
|
||||||
<%! from django.core.urlresolvers import reverse %>
|
<%! from django.core.urlresolvers import reverse %>
|
||||||
<%! from django.utils import html %>
|
<%! from django.utils import html %>
|
||||||
<%! from django_countries.countries import COUNTRIES %>
|
<%! from django_countries.countries import COUNTRIES %>
|
||||||
|
<%! from django.utils.translation import ugettext as _ %>
|
||||||
<%! from student.models import UserProfile %>
|
<%! from student.models import UserProfile %>
|
||||||
<%! from datetime import date %>
|
<%! from datetime import date %>
|
||||||
<%! import calendar %>
|
<%! import calendar %>
|
||||||
@@ -81,14 +83,14 @@
|
|||||||
|
|
||||||
<section class="introduction">
|
<section class="introduction">
|
||||||
<header>
|
<header>
|
||||||
<h1 class="sr">Register for edX</h1>
|
<h1 class="sr">${_("Register for edX")}</h1>
|
||||||
</header>
|
</header>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="register container">
|
<section class="register container">
|
||||||
<section role="main" class="content">
|
<section role="main" class="content">
|
||||||
<header>
|
<header>
|
||||||
<h2 class="sr">Welcome! Register below to create your edX account</h2>
|
<h2 class="sr">${_("Welcome! Register below to create your edX account")}</h2>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<form role="form" id="register-form" method="post" data-remote="true" action="/create_account">
|
<form role="form" id="register-form" method="post" data-remote="true" action="/create_account">
|
||||||
|
|||||||
Reference in New Issue
Block a user