diff --git a/lms/static/js/student_account/views/FormView.js b/lms/static/js/student_account/views/FormView.js index 1d00f59a70..989db79b87 100644 --- a/lms/static/js/student_account/views/FormView.js +++ b/lms/static/js/student_account/views/FormView.js @@ -76,6 +76,10 @@ var edx = edx || {}; this.fields = data; for ( i=0; i minlength="<%= restrictions.min_length %>"<% } %> <% if ( restrictions.max_length ) { %> maxlength="<%= restrictions.max_length %>"<% } %> - <% if ( typeof errorMessages !== 'undefined' ) { _.each(errorMessages, function(msg, type) {%> - data-errormsg-<%= type %>="<%= msg %>" - <% }); } %> + <% if ( typeof errorMessages !== 'undefined' ) { + _.each(errorMessages, function( msg, type ) {%> + data-errormsg-<%= type %>="<%= msg %>" + <% }); + } %> <% if ( required ) { %> required<% } %> > <% } else { %> @@ -41,9 +43,11 @@ <% if ( restrictions.min_length ) { %> minlength="<%= restrictions.min_length %>"<% } %> <% if ( restrictions.max_length ) { %> maxlength="<%= restrictions.max_length %>"<% } %> <% if ( required ) { %> required<% } %> - <% if ( typeof errorMessages !== 'undefined' ) { _.each(errorMessages, function(msg, type) {%> - data-errormsg-<%= type %>="<%= msg %>" - <% }); } %> + <% if ( typeof errorMessages !== 'undefined' ) { + _.each(errorMessages, function( msg, type ) {%> + data-errormsg-<%= type %>="<%= msg %>" + <% }); + } %> value="<%- defaultValue %>" /> <% } %> @@ -51,7 +55,7 @@ <% if ( type === 'checkbox' ) { %> <% } %> + <% if ( required && requiredStr ) { %> <%= requiredStr %><% } %> <% } %> diff --git a/lms/templates/student_account/login.underscore b/lms/templates/student_account/login.underscore index 2442807959..d6f37273b7 100644 --- a/lms/templates/student_account/login.underscore +++ b/lms/templates/student_account/login.underscore @@ -1,7 +1,7 @@ -
+ diff --git a/lms/templates/student_account/register.underscore b/lms/templates/student_account/register.underscore index e98d0f5147..294428582e 100644 --- a/lms/templates/student_account/register.underscore +++ b/lms/templates/student_account/register.underscore @@ -1,7 +1,6 @@ <% if (currentProvider) { %>
-

You've successfully signed in with <%- currentProvider %>.

-

You've successfully signed in with <%- currentProvider %>. We just need a little more information before you start learning with edX.

+

You've successfully signed in with <%- currentProvider %>. We just need a little more information before you start learning with edX.

<% } else { _.each( providers, function( provider) { %> @@ -18,4 +17,4 @@ <%= fields %> -
\ No newline at end of file +