<%page expression_filter="h"/> <%! import third_party_auth import six from third_party_auth import pipeline, provider from django.utils.translation import ugettext as _ from openedx.core.djangolib.markup import HTML, Text from django_countries import countries from student.models import UserProfile %> % if third_party_auth.is_enabled(): % if not running_pipeline:
% for enabled in provider.Registry.displayed_for_login(): ## 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)} ${Text(_('Required fields are noted by {strong_start}bold text and an asterisk (*){strong_end}.')).format( strong_start=HTML(''), strong_end=HTML(''))}

% else:

## Translators: selected_provider is the name of an external, third-party user authentication service (like Google or LinkedIn). ${Text(_("You've successfully signed in with {selected_provider}.")).format(selected_provider=HTML('{selected_provider}').format(selected_provider=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. ")}
${Text(_('Required fields are noted by {strong_start}bold text and an asterisk (*){strong_end}.')).format( \ strong_start=HTML(''), strong_end=HTML(''))}

% endif

${_('Required Information')}

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

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

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

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

${_("Additional Personal Information")}

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

${_("Account Acknowledgements")}

  1. % if has_extauth_info is UNDEFINED or ask_for_tos :
    % endif % if settings.REGISTRATION_EXTRA_FIELDS['honor_code'] != 'hidden': ## check if we have an Honor Code link in our marketing map % if marketing_link('HONOR') and marketing_link('HONOR') != '#':
    <% honor_code_path = marketing_link('HONOR') %>
    % endif % endif