Commit bcef7611 by Renzo Lucioni

Clean up logistration copy

parent c47eb12a
...@@ -76,10 +76,10 @@ class LoginSessionView(APIView): ...@@ -76,10 +76,10 @@ class LoginSessionView(APIView):
form_desc.add_field( form_desc.add_field(
"email", "email",
field_type="email", field_type="email",
label=_(u"E-mail"), label=_(u"Email"),
placeholder=_(u"example: username@domain.com"), placeholder=_(u"username@domain.com"),
instructions=_( instructions=_(
u"This is the e-mail address you used to register with {platform}" u"The email address you used to register with {platform}"
).format(platform=settings.PLATFORM_NAME), ).format(platform=settings.PLATFORM_NAME),
restrictions={ restrictions={
"min_length": account_api.EMAIL_MIN_LENGTH, "min_length": account_api.EMAIL_MIN_LENGTH,
...@@ -255,10 +255,10 @@ class RegistrationView(APIView): ...@@ -255,10 +255,10 @@ class RegistrationView(APIView):
form_desc.add_field( form_desc.add_field(
"email", "email",
field_type="email", field_type="email",
label=_(u"E-mail"), label=_(u"Email"),
placeholder=_(u"example: username@domain.com"), placeholder=_(u"username@domain.com"),
instructions=_( instructions=_(
u"This is the e-mail address you used to register with {platform}" u"The email address you want to use with {platform}"
).format(platform=settings.PLATFORM_NAME), ).format(platform=settings.PLATFORM_NAME),
restrictions={ restrictions={
"min_length": account_api.EMAIL_MIN_LENGTH, "min_length": account_api.EMAIL_MIN_LENGTH,
...@@ -271,7 +271,7 @@ class RegistrationView(APIView): ...@@ -271,7 +271,7 @@ class RegistrationView(APIView):
form_desc.add_field( form_desc.add_field(
"name", "name",
label=_(u"Full Name"), label=_(u"Full Name"),
instructions=_(u"Needed for any certificates you may earn"), instructions=_(u"The name that will appear on your certificates"),
restrictions={ restrictions={
"max_length": profile_api.FULL_NAME_MAX_LENGTH, "max_length": profile_api.FULL_NAME_MAX_LENGTH,
}, },
...@@ -281,8 +281,8 @@ class RegistrationView(APIView): ...@@ -281,8 +281,8 @@ class RegistrationView(APIView):
def _add_username_field(self, form_desc, required=True): def _add_username_field(self, form_desc, required=True):
form_desc.add_field( form_desc.add_field(
"username", "username",
label=_(u"Public Username"), label=_(u"Username"),
instructions=_(u"Will be shown in any discussions or forums you participate in (cannot be changed)"), instructions=_(u"The name that will identify you in your courses"),
restrictions={ restrictions={
"min_length": account_api.USERNAME_MIN_LENGTH, "min_length": account_api.USERNAME_MIN_LENGTH,
"max_length": account_api.USERNAME_MAX_LENGTH, "max_length": account_api.USERNAME_MAX_LENGTH,
...@@ -340,7 +340,7 @@ class RegistrationView(APIView): ...@@ -340,7 +340,7 @@ class RegistrationView(APIView):
def _add_goals_field(self, form_desc, required=True): def _add_goals_field(self, form_desc, required=True):
form_desc.add_field( form_desc.add_field(
"goals", "goals",
label=_("Please share with us your reasons for registering with edX"), label=_("If you'd like, tell us why you're interested in edX."),
field_type="textarea", field_type="textarea",
required=required required=required
) )
......
...@@ -10,10 +10,10 @@ var edx = edx || {}; ...@@ -10,10 +10,10 @@ var edx = edx || {};
validate: { validate: {
msg: { msg: {
email: '<li>A properly formatted e-mail is required</li>', email: '<li>The email address you\'ve provided is invalid.</li>',
min: '<li><%= field %> must be a minimum of <%= count %> characters long</li>', min: '<li><%= field %> must have at least <%= count %> characters.</li>',
max: '<li><%= field %> must be a maximum of <%= count %> characters long</li>', max: '<li><%= field %> can only contain up to <%= count %> characters.</li>',
required: '<li><%= field %> field is required</li>', required: '<li><%= field %> is required.</li>',
custom: '<li><%= content %></li>' custom: '<li><%= content %></li>'
}, },
......
...@@ -78,8 +78,8 @@ var edx = edx || {}; ...@@ -78,8 +78,8 @@ var edx = edx || {};
reset: function( context ) { reset: function( context ) {
var model = new edx.student.account.PasswordResetModel(), var model = new edx.student.account.PasswordResetModel(),
data = [{ data = [{
label: 'E-mail', label: 'Email',
instructions: 'This is the e-mail address you used to register with edX', instructions: 'The email address you used to register with edX',
name: 'email', name: 'email',
required: true, required: true,
type: 'email', type: 'email',
......
<header class="js-login-register-header header"> <header class="js-login-register-header header">
<h1 class="headline">Welcome!</h1> <h1 class="headline">Welcome!</h1>
<p class="tagline">Please log in to continue</p> <p class="tagline">Log in or register to take courses from the world's best universities.</p>
</header> </header>
<section class="form-type"> <section class="form-type">
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<section class="form-type"> <section class="form-type">
<h2> <h2>
<input type="radio" name="form" id="login-option" value="login" class="form-toggle" <% if ( mode === 'login' ) { %>checked<% } %>> <input type="radio" name="form" id="login-option" value="login" class="form-toggle" <% if ( mode === 'login' ) { %>checked<% } %>>
<label for="login-option" class="form-label">I am a returning user with an edX account</label> <label for="login-option" class="form-label">I am a returning user</label>
</h2> </h2>
<div id="login-form" class="form-wrapper <% if ( mode !== 'login' ) { %>hidden" aria-hidden="true<% } %>"></div> <div id="login-form" class="form-wrapper <% if ( mode !== 'login' ) { %>hidden" aria-hidden="true<% } %>"></div>
</section> </section>
......
<form id="login" class="login-form"> <form id="login" class="login-form">
<div class="status already-authenticated-msg hidden" aria-hidden="true"> <div class="status already-authenticated-msg hidden" aria-hidden="true">
<% if (currentProvider) { %> <% if (currentProvider) { %>
<p class="message-copy">You've successfully logged into <%- currentProvider %>, but you need to link your account. Please click "I am a new user" to create an edX account.</p> <p class="message-copy">You've successfully logged into <%- currentProvider %>, but your <%- currentProvider %> account isn't linked with an edX account. To link your accounts, go to your edX dashboard.</p>
<% } %> <% } %>
</div> </div>
...@@ -16,6 +16,6 @@ ...@@ -16,6 +16,6 @@
<% _.each( providers, function( provider) { %> <% _.each( providers, function( provider) { %>
<button type="submit"class="button button-primary button-<%- provider.name %> login-provider" data-provider-url="<%- provider.loginUrl %>"> <button type="submit"class="button button-primary button-<%- provider.name %> login-provider" data-provider-url="<%- provider.loginUrl %>">
<span class="icon <%- provider.iconClass %>"></span>Sign in with <%- provider.name %> <span class="icon <%- provider.iconClass %>"></span>Log in using <%- provider.name %>
</button> </button>
<% }); %> <% }); %>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<%inherit file="../main.html" /> <%inherit file="../main.html" />
<%block name="pagetitle">${_("Login and Register")}</%block> <%block name="pagetitle">${_("Log in or Register")}</%block>
<%block name="js_extra"> <%block name="js_extra">
<script type="text/javascript" src="${static.url('js/vendor/underscore-min.js')}"></script> <script type="text/javascript" src="${static.url('js/vendor/underscore-min.js')}"></script>
......
<header class="header"> <header class="header">
<h1 class="headline">Password assistance</h1> <h1 class="headline">Reset Password</h1>
</header> </header>
<section class="form-type"> <section class="form-type">
<div id="password-reset-form" class="form-wrapper"> <div id="password-reset-form" class="form-wrapper">
<p class="action-label">Please enter your email address below and we will send you instructions for setting a new password.</p> <!-- <p class="action-label">Please enter your email address below and we will send you instructions for setting a new password.</p> -->
<p class="action-label">Enter the email address you used to create your account. We'll send you a link you can use to reset your password.</p>
<form id="password-reset-form"> <form id="password-reset-form">
<div class="status submission-error hidden" aria-hidden="true"> <div class="status submission-error hidden" aria-hidden="true">
<h4 class="message-title">An error occurred.</h4> <h4 class="message-title">An error occurred.</h4>
...@@ -13,14 +14,14 @@ ...@@ -13,14 +14,14 @@
<%= fields %> <%= fields %>
<button class="action action-primary action-update js-reset">Reset my password</button> <button class="action action-primary action-update js-reset">Reset password</button>
</form> </form>
</div> </div>
<div class="js-reset-success status submission-success hidden" aria-hidden="true"> <div class="js-reset-success status submission-success hidden" aria-hidden="true">
<h4 class="message-title">Password Reset Successful</h4> <h4 class="message-title">Password Reset Email Sent</h4>
<div class="message-copy"> <div class="message-copy">
<p>We've e-mailed you instructions for setting your password to the e-mail address you submitted. You should be receiving it shortly.</p> <p>We've sent instructions for resetting your password to the email address you provided.</p>
</div> </div>
</div> </div>
</section> </section>
<% if (currentProvider) { %> <% if (currentProvider) { %>
<div class="status" aria-hidden="false"> <div class="status" aria-hidden="false">
<p class="message-copy">You've successfully signed in with <%- currentProvider %>. We just need a little more information before you start learning with edX.</p> <p class="message-copy">You've successfully logged into <%- currentProvider %>. We just need a little more information before you start learning with edX.</p>
</div> </div>
<% } else { <% } else {
_.each( providers, function( provider) { %> _.each( providers, function( provider) { %>
<button type="submit"class="button button-primary button-<%- provider.name %> login-provider" data-provider-url="<%- provider.registerUrl %>"> <button type="submit"class="button button-primary button-<%- provider.name %> login-provider" data-provider-url="<%- provider.registerUrl %>">
<span class="icon <%- provider.iconClass %>"></span>Sign up with <%- provider.name %> <span class="icon <%- provider.iconClass %>"></span>Register using <%- provider.name %>
</button> </button>
<% }); <% });
} %> } %>
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
<h4 class="message-title">An error occurred in your registration.</h4> <h4 class="message-title">An error occurred in your registration.</h4>
<ul class="message-copy"></ul> <ul class="message-copy"></ul>
</div> </div>
<!-- PASSWORD FIELD DISPLAYS IN PLAIN TEXT -->
<%= fields %> <%= fields %>
<button class="action action-primary action-update js-register">Create My edX Account</button> <button class="action action-primary action-update js-register">Register</button>
</form> </form>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment