@@ -25,20 +25,14 @@ from django.core.urlresolvers import reverse
## TODO: Use a %block tag or something to allow themes to
## override in a more generalizable fashion.
% if not stanford_theme_enabled():
<divclass="cta cta-welcome">
<h3>${_("Welcome to {platform_name}").format(platform_name=platform_name)}</h3>
<p>${_("Registering with {platform_name} gives you access to all of our current and future free courses. Not ready to take a course just yet? Registering puts you on our mailing list - we will update you as courses are added.").format(platform_name=platform_name)}</p>
</div>
% endif
<divclass="cta cta-welcome">
<h3>${_("Welcome to {platform_name}").format(platform_name=platform_name)}</h3>
<p>${_("Registering with {platform_name} gives you access to all of our current and future free courses. Not ready to take a course just yet? Registering puts you on our mailing list - we will update you as courses are added.").format(platform_name=platform_name)}</p>
</div>
<divclass="cta cta-nextsteps">
<h3>${_("Next Steps")}</h3>
% if stanford_theme_enabled():
<p>${_("You will receive an activation email. You must click on the activation link to complete the process. Don't see the email? Check your spam folder and mark emails from class.stanford.edu as 'not spam', since you'll want to be able to receive email from your courses.")}</p>
% else:
<p>${_("As part of joining {platform_name}, you will receive an activation email. You must click on the activation link to complete the process. Don't see the email? Check your spam folder and mark {platform_name} emails as 'not spam'. At {platform_name}, we communicate mostly through email.").format(platform_name=platform_name)}</p>
<h3class="message-title">${_("We're sorry, but this version of your browser is not supported. Try again using a different browser or a newer version of your browser.")}</h3>
<h3class="message-title">${_("The following errors occurred while processing your registration:")} </h3>
<ulclass="message-copy"></ul>
</div>
% if third_party_auth.is_enabled():
% if not running_pipeline:
<divclass="form-actions form-third-party-auth">
% 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).
<buttontype="submit"class="button button-primary button-${enabled.provider_id} register-${enabled.provider_id}"onclick="thirdPartySignin(event, '${pipeline_urls[enabled.provider_id]}');"><spanclass="icon fa ${enabled.icon_class}"></span>${_('Sign up with {provider_name}').format(provider_name=enabled.name)}</button>
% endfor
</div>
<spanclass="deco-divider">
## 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.
<spanclass="copy">${_('or')}</span>
</span>
<pclass="instructions">
${_('Create your own {platform_name} account below').format(platform_name=platform_name)}
<spanclass="note">${_('Required fields are noted by <strongclass="indicator">bold text and an asterisk (*)</strong>.')}</span>
</p>
% else:
<pclass="instructions">
## 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='<strong>%s</strong>' % selected_provider)}<br/>
${_("We just need a little more information before you start learning with {platform_name}.").format(platform_name=settings.PLATFORM_NAME)}
</p>
% endif
% else:
<pclass="instructions">
${_("Please complete the following fields to register for an account. ")}<br/>
${_('Required fields are noted by <strongclass="indicator">bold text and an asterisk (*)</strong>.')}
<spanclass="tip tip-input"id="username-tip">${_('Will be shown in any discussions or forums you participate in')} <strong>(${_('cannot be changed later')})</strong></span>
</li>
% if third_party_auth.is_enabled() and running_pipeline:
<liclass="is-disabled field optional password"id="field-password"hidden>
<spanclass="tip tip-input"id="id="username-tip>${_('Will be shown in any discussions or forums you participate in')} <strong>(${_('cannot be changed later')})</strong></span>
</li>
% if ask_for_fullname:
<liclass="field required text"id="field-name">
<labelfor="name">${_('Full Name')}</label>
<inputid="name"type="text"name="name"value=""placeholder="$_('example: Jane Doe')}"aria-describedby="name-tip"/>
<spanclass="tip tip-input"id="name-tip">${_("Your legal name, used for any certificates you earn.")}</span>
<inputid="city"type="text"name="city"value=""placeholder="${_('example: New York')}"aria-describedby="city-tip"${'requiredaria-required="true"'ifsettings.REGISTRATION_EXTRA_FIELDS['city']=='required'else''}/>
</li>
% endif
% if settings.REGISTRATION_EXTRA_FIELDS['country'] != 'hidden':
<h3class="message-title">${_("We're sorry, but this version of your browser is not supported. Try again using a different browser or a newer version of your browser.")}</h3>
<p>${_("You will receive an activation email. You must click on the activation link to complete the process. Don't see the email? Check your spam folder and mark emails from class.stanford.edu as 'not spam', since you'll want to be able to receive email from your courses.")}</p>
</div>
% if settings.MKTG_URL_LINK_MAP.get('FAQ'):
<divclass="cta cta-help">
<h3>${_("Need Help?")}</h3>
<p>${_("Need help in registering with {platform_name}?").format(platform_name=platform_name)}
<ahref="${marketing_link('FAQ')}">
${_("View our FAQs for answers to commonly asked questions.")}
</a>
${_("Once registered, most questions can be answered in the course specific discussion forums or through the FAQs.")}</p>