We want to support a flow for SSO-enabled Enterprise customers who have agreed off-platform that none of their learners will opt-in to marketing emails or sharing research data. This change proposes to do so by adding an optional field that, when enabled, disables the presence of the two checkboxes on this registration form and sets their values to false. ENT-11401
75 lines
3.8 KiB
Plaintext
75 lines
3.8 KiB
Plaintext
<div class="js-form-feedback" aria-live="assertive" tabindex="-1">
|
|
</div>
|
|
|
|
<% if (!context.syncLearnerProfileData) { %>
|
|
<div class="toggle-form">
|
|
<span class="text"><%- edx.StringUtils.interpolate(gettext('Already have an {platformName} account?'), {platformName: context.platformName }) %></span>
|
|
<a href="#login" class="form-toggle" data-type="login"><%- gettext("Sign in.") %></a>
|
|
</div>
|
|
<% } %>
|
|
|
|
<form id="register" class="register-form" autocomplete="off" tabindex="-1" method="POST">
|
|
|
|
<% if (!context.currentProvider) { %>
|
|
<% if (context.providers.length > 0 || context.hasSecondaryProviders) { %>
|
|
<div class="login-providers">
|
|
<div class="section-title lines">
|
|
<h3>
|
|
<span class="text"><%- gettext("Create an account using") %></span>
|
|
</h3>
|
|
</div>
|
|
<%
|
|
_.each( context.providers, function( provider) {
|
|
if ( provider.registerUrl ) { %>
|
|
<button type="button" class="button button-primary button-<%- provider.id %> login-provider register-<%- provider.id %>" data-provider-url="<%- provider.registerUrl %>">
|
|
<div class="icon <% if ( provider.iconClass ) { %>fa <%- provider.iconClass %><% } %>" aria-hidden="true">
|
|
<% if ( provider.iconImage ) { %>
|
|
<img class="icon-image" src="<%- provider.iconImage %>" alt="<%- provider.name %> icon" />
|
|
<% } %>
|
|
</div>
|
|
<span aria-hidden="true"><%- provider.name %></span>
|
|
<span class="sr"><%- _.sprintf( gettext("Create account using %(providerName)s."), {providerName: provider.name} ) %></span>
|
|
</button>
|
|
<% }
|
|
}); %>
|
|
|
|
<% if ( context.hasSecondaryProviders ) { %>
|
|
<button type="button" class="button-secondary-login form-toggle" data-type="institution_login">
|
|
<%- gettext("Use my institution/campus credentials") %>
|
|
</button>
|
|
<% } %>
|
|
</div>
|
|
<% if (!context.is_require_third_party_auth_enabled) { %>
|
|
<div class="section-title lines">
|
|
<h3>
|
|
<span class="text"><%- gettext("or create a new one here") %></span>
|
|
</h3>
|
|
</div>
|
|
<% } %>
|
|
<% } else if (!context.is_require_third_party_auth_enabled) { %>
|
|
<h1 class="section-title"><%- gettext('Create an Account')%></h1>
|
|
<% } %>
|
|
<% } else if (context.autoRegisterWelcomeMessage) { %>
|
|
<span class="auto-register-message"><%- context.autoRegisterWelcomeMessage %></span>
|
|
<% } %>
|
|
|
|
<div class="form-fields <% if (context.is_require_third_party_auth_enabled) { %>hidden<% } %>">
|
|
<%= context.fields /* xss-lint: disable=underscore-not-escaped */ %>
|
|
|
|
<% if (!context.skipRegistrationOptionalCheckboxes) { %>
|
|
<div class="form-field checkbox-optional_fields_toggle">
|
|
<input type="checkbox" id="toggle_optional_fields" class="input-block checkbox"">
|
|
<label for="toggle_optional_fields">
|
|
<span class="label-text-small">
|
|
<%- gettext("Support education research by providing additional information") %>
|
|
</span>
|
|
</label>
|
|
</div>
|
|
<% } %>
|
|
|
|
<button type="submit" class="action action-primary action-update js-register register-button">
|
|
<% if ( context.registerFormSubmitButtonText ) { %><%- context.registerFormSubmitButtonText %><% } else { %><%- gettext("Create Account") %><% } %>
|
|
</button>
|
|
</div>
|
|
</form>
|