%! from django.utils.translation import ugettext as _ %> <%! from microsite_configuration import microsite %> <%inherit file="main.html" /> <%namespace name='static' file='static_content.html'/> <%namespace file='main.html' import="login_query"/> <%! from django.core.urlresolvers import reverse %> <%! from django.utils import html %> <%! from django_countries.countries import COUNTRIES %> <%! from django.utils.translation import ugettext as _ %> <%! from student.models import UserProfile %> <%! from datetime import date %> <%! import calendar %> <%block name="pagetitle">${_("Register for {platform_name}").format(platform_name=platform_name)}%block> <%block name="bodyclass">view-register%block> <%block name="js_extra"> %block> ${_("Welcome!")} ${_("Register below to create your {platform_name} account").format(platform_name=platform_name)} ${_("We're sorry, {platform_name} enrollment is not available in your region").format(platform_name=platform_name)} ${_("The following errors occurred while processing your registration:")} ${_("Please complete the following fields to register for an account. ")} ${_('Required fields are noted by bold text and an asterisk (*).')} ${_('Required Information')} % if has_extauth_info is UNDEFINED: ${_('E-mail')} ${_('Password')} ${_('Public Username')} ${_('Will be shown in any discussions or forums you participate in')} (${_('cannot be changed later')}) ${_('Full Name')} ${_("Needed for any certificates you may earn")} % else: ${_("Welcome {username}").format(username=extauth_id)} ${_("Enter a Public Display Name:")} % if ask_for_email: ${_("E-mail")} % endif ${_('Public Display Name')} ${_('Will be shown in any discussions or forums you participate in')} (${_('cannot be changed later')}) % if ask_for_fullname: ${_('Full Name')} ${_("Needed for any certificates you may earn")} % endif % endif ${_("Extra Personal Information")} % if settings.REGISTRATION_EXTRA_FIELDS['city'] != 'hidden': ${_('City')} % endif % if settings.REGISTRATION_EXTRA_FIELDS['country'] != 'hidden': ${_("Country")} -- %for code, country_name in COUNTRIES: ${ unicode(country_name) } %endfor % endif % if settings.REGISTRATION_EXTRA_FIELDS['level_of_education'] != 'hidden': ${_("Highest Level of Education Completed")} -- %for code, ed_level in UserProfile.LEVEL_OF_EDUCATION_CHOICES: ${ed_level} %endfor % endif % if settings.REGISTRATION_EXTRA_FIELDS['gender'] != 'hidden': ${_("Gender")} -- %for code, gender in UserProfile.GENDER_CHOICES: ${gender} %endfor % endif % if settings.REGISTRATION_EXTRA_FIELDS['year_of_birth'] != 'hidden': ${_("Year of Birth")} -- %for year in UserProfile.VALID_YEARS: ${year} %endfor % endif ${_("Extra Personal Information")} % if settings.REGISTRATION_EXTRA_FIELDS['mailing_address'] != 'hidden': ${_("Mailing Address")} % endif % if settings.REGISTRATION_EXTRA_FIELDS['goals'] != 'hidden': ${_("Please share with us your reasons for registering with {platform_name}").format(platform_name=platform_name)} % endif ${_("Account Acknowledgements")} % if has_extauth_info is UNDEFINED or ask_for_tos : ${_('I agree to the {link_start}Terms of Service{link_end}').format( link_start=''.format(url=marketing_link('TOS')), link_end='')} % endif % if settings.REGISTRATION_EXTRA_FIELDS['honor_code'] != 'hidden': <% ## TODO: provide a better way to override these links if self.stanford_theme_enabled(): honor_code_path = marketing_link('TOS') + "#honor" else: honor_code_path = marketing_link('HONOR') %> ${_('I agree to the {link_start}Honor Code{link_end}').format( link_start=''.format(url=honor_code_path), link_end='')} % endif % if course_id and enrollment_action: % endif ${_('Register')} + ${_('Create My Account')}
${_("Please complete the following fields to register for an account. ")} ${_('Required fields are noted by bold text and an asterisk (*).')}
${_("Enter a Public Display Name:")}