- <%block name="register_form"> - - - - - - - - % if third_party_auth.is_enabled(): - - % if not running_pipeline: - -
- - % for enabled in provider.Registry.accepting_logins(): - ## Translators: provider_name is the name of an external, third-party user authentication service (like Google or LinkedIn). - - % endfor - -
- - - ## Developers: this is a sentence fragment, which is usually frowned upon. The design of the pags uses this fragment to provide an "else" clause underneath a number of choices. It's OK to leave it. - ## Translators: this is the last choice of a number of choices of how to log in to the site. - ${_('or')} - - -

- ${_('Create your own {platform_name} account below').format(platform_name=platform_name)} - ${_('Required fields are noted by bold text and an asterisk (*).')} -

- - - % else: - -

- ## Translators: selected_provider is the name of an external, third-party user authentication service (like Google or LinkedIn). - ${_("You've successfully signed in with {selected_provider}.").format(selected_provider='%s' % selected_provider)}
- ${_("We just need a little more information before you start learning with {platform_name}.").format(platform_name=settings.PLATFORM_NAME)} -

- - % endif - - % else: - -

- ${_("Please complete the following fields to register for an account. ")}
- ${_('Required fields are noted by bold text and an asterisk (*).')} -

- - % endif - -
-

${_('Required Information')}

- - % if has_extauth_info is UNDEFINED: - -
    -
  1. - - -
  2. - -
  3. - - - ${_("Your legal name, used for any certificates you earn.")} -
  4. -
  5. - - - ${_('Will be shown in any discussions or forums you participate in')} (${_('cannot be changed later')}) -
  6. - - % if third_party_auth.is_enabled() and running_pipeline: - - - - % else: - -
  7. - - -
  8. - - % endif -
- - % else: - -
-

${_("Welcome {username}").format(username=extauth_id)}

-

${_("Enter a Public Display Name:")}

-
- -
    - - % if ask_for_email: - -
  1. - - -
  2. - - % endif - -
  3. - - - ${_('Will be shown in any discussions or forums you participate in')} (${_('cannot be changed later')}) -
  4. - - % if ask_for_fullname: - -
  5. - - - ${_("Your legal name, used for any certificates you earn.")} -
  6. - - % endif - -
- - % endif -
- -
-

${_("Additional Personal Information")}

- -
    - % if settings.REGISTRATION_EXTRA_FIELDS['city'] != 'hidden': -
  1. - - -
  2. - % endif - % if settings.REGISTRATION_EXTRA_FIELDS['country'] != 'hidden': -
  3. -
    - - -
    -
  4. - % endif - % if settings.REGISTRATION_EXTRA_FIELDS['level_of_education'] != 'hidden': -
  5. -
    - - -
    -
  6. - % endif - % if settings.REGISTRATION_EXTRA_FIELDS['gender'] != 'hidden': -
  7. -
    - - -
    -
  8. - % endif - % if settings.REGISTRATION_EXTRA_FIELDS['year_of_birth'] != 'hidden': -
  9. -
    - - -
    - % endif -
  10. -
-
- -
-
    - % if settings.REGISTRATION_EXTRA_FIELDS['mailing_address'] != 'hidden': -
  1. - - -
  2. - % endif - - % if settings.REGISTRATION_EXTRA_FIELDS['goals'] != 'hidden': -
  3. - - -
  4. - % endif -
-
- -
-

${_("Account Acknowledgements")}

- -
    -
  1. - - % if has_extauth_info is UNDEFINED or ask_for_tos : -
    - - -
    - % endif - - % if settings.REGISTRATION_EXTRA_FIELDS['honor_code'] != 'hidden': - ## If the stanford theme isn't enabled, check if we have an Honor Code link in our marketing map - % if not self.stanford_theme_enabled() and marketing_link('HONOR') and marketing_link('HONOR') != '#': -
    - - <% - ## 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') - %> - -
    - % endif - % endif -
  2. -
-
- -
- -
- +<% + # allow for microsite override on the registration form + registration_form = microsite.get_template_path('register-form.html') +%> + <%include file="${registration_form}" />