From 728df71acf0e3e7c6a9309496cc1283721cf698f Mon Sep 17 00:00:00 2001 From: AlasdairSwan Date: Mon, 27 Oct 2014 16:10:13 -0400 Subject: [PATCH] ECOM-531 Updated style after review with Andy Waldrop --- .../js/student_account/views/FormView.js | 12 +++ lms/static/sass/views/_login-register.scss | 88 +++++++++++-------- .../student_account/form_field.underscore | 18 ++-- .../student_account/login.underscore | 4 +- .../student_account/register.underscore | 5 +- 5 files changed, 77 insertions(+), 50 deletions(-) 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 +