Commit a266330b by Giulio Gratta

made signup form labels and close modal button accessible friendly and tweaked…

made signup form labels and close modal button accessible friendly and tweaked login form to match signup form
parent 3eac9376
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<form id="login_form" class="login_form" method="post" data-remote="true" action="/login"> <form id="login_form" class="login_form" method="post" data-remote="true" action="/login">
<label for="login_email">E-mail</label> <label for="login_email">E-mail</label>
<input id="login_email" type="email" name="email" placeholder="e.g. jane.doe@email.com" /> <input id="login_email" type="email" name="email" placeholder="e.g. yourname@domain.com" />
<label for="login_password">Password</label> <label for="login_password">Password</label>
<input id="login_password" type="password" name="password" placeholder="&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;" /> <input id="login_password" type="password" name="password" placeholder="&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;" />
......
...@@ -20,27 +20,31 @@ ...@@ -20,27 +20,31 @@
<div class="input-group"> <div class="input-group">
% if has_extauth_info is UNDEFINED: % if has_extauth_info is UNDEFINED:
<label data-field="email">E-mail*</label> <label data-field="email" for="signup_email">E-mail *</label>
<input name="email" type="email" placeholder="eg. yourname@domain.com"> <input id="signup_email" type="email" name="email" placeholder="e.g. yourname@domain.com" required />
<label data-field="password">Password*</label>
<input name="password" type="password" placeholder="****"> <label data-field="password" for="signup_password">Password *</label>
<label data-field="username">Public Username*</label> <input id="signup_password" type="password" name="password" placeholder="&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;" required />
<input name="username" type="text" placeholder="Shown on forums">
<label data-field="name">Full Name*</label> <label data-field="username" for="signup_username">Public Username *</label>
<input name="name" type="text" placeholder="For your certificate"> <input id="signup_username" type="text" name="username" placeholder="e.g. yourname (shown on forums)" required />
<label data-field="name" for="signup_fullname">Full Name *</label>
<input id="signup_fullname" type="text" name="name" placeholder="e.g. Your Name (for certificates)" required />
% else: % else:
<p><i>Welcome</i> ${extauth_email}</p><br/> <p><i>Welcome</i> ${extauth_email}</p><br/>
<p><i>Enter a public username:</i></p> <p><i>Enter a public username:</i></p>
<label data-field="username">Public Username*</label>
<input name="username" type="text" value="${extauth_username}" placeholder="Shown on forums"> <label data-field="username" for="signup_username">Public Username *</label>
<input id="signup_username" type="text" name="username" value="${extauth_username}" placeholder="e.g. yourname (shown on forums)" required />
% endif % endif
</div> </div>
<div class="input-group"> <div class="input-group">
<section class="citizenship"> <section class="citizenship">
<label data-field="level_of_education">Ed. completed</label> <label data-field="level_of_education" for="signup_ed_level">Ed. Completed</label>
<div class="input-wrapper"> <div class="input-wrapper">
<select name="level_of_education"> <select id="signup_ed_level" name="level_of_education">
<option value="">--</option> <option value="">--</option>
%for code, ed_level in UserProfile.LEVEL_OF_EDUCATION_CHOICES: %for code, ed_level in UserProfile.LEVEL_OF_EDUCATION_CHOICES:
<option value="${code}">${ed_level}</option> <option value="${code}">${ed_level}</option>
...@@ -50,9 +54,9 @@ ...@@ -50,9 +54,9 @@
</section> </section>
<section class="gender"> <section class="gender">
<label data-field="gender">Gender</label> <label data-field="gender" for="signup_gender">Gender</label>
<div class="input-wrapper"> <div class="input-wrapper">
<select name="gender"> <select id="signup_gender" name="gender">
<option value="">--</option> <option value="">--</option>
%for code, gender in UserProfile.GENDER_CHOICES: %for code, gender in UserProfile.GENDER_CHOICES:
<option value="${code}">${gender}</option> <option value="${code}">${gender}</option>
...@@ -62,9 +66,9 @@ ...@@ -62,9 +66,9 @@
</section> </section>
<section class="date-of-birth"> <section class="date-of-birth">
<label data-field="date-of-birth">Year of birth</label> <label data-field="date-of-birth" for="signup_birth_year">Year of birth</label>
<div class="input-wrapper"> <div class="input-wrapper">
<select name="year_of_birth"> <select id="signup_birth_year" name="year_of_birth">
<option value="">--</option> <option value="">--</option>
%for year in UserProfile.VALID_YEARS: %for year in UserProfile.VALID_YEARS:
<option value="${year}">${year}</option> <option value="${year}">${year}</option>
...@@ -74,22 +78,23 @@ ...@@ -74,22 +78,23 @@
</div> </div>
</section> </section>
<label data-field="mailing_address">Mailing address</label> <label data-field="mailing_address" for="signup_mailing_address">Mailing address</label>
<textarea name="mailing_address"></textarea> <textarea id="signup_mailing_address" name="mailing_address"></textarea>
<label data-field="goals">Goals in signing up for edX</label>
<textarea name="goals"></textarea> <label data-field="goals" for="signup_goals">Goals in signing up for edX</label>
<textarea name="goals" id="signup_goals"></textarea>
</div> </div>
<div class="input-group"> <div class="input-group">
<label data-field="terms_of_service" class="terms-of-service"> <label data-field="terms_of_service" class="terms-of-service" for="signup_tos">
<input name="terms_of_service" type="checkbox" value="true"> <input id="signup_tos" name="terms_of_service" type="checkbox" value="true">
I agree to the I agree to the
<a href="${reverse('tos')}" target="_blank">Terms of Service</a>* <a href="${reverse('tos')}" target="_blank">Terms of Service</a>*
</label> </label>
<label data-field="honor_code" class="honor-code"> <label data-field="honor_code" class="honor-code" for="signup_honor">
<input name="honor_code" type="checkbox" value="true"> <input id="signup_honor" name="honor_code" type="checkbox" value="true">
I agree to the I agree to the
<a href="${reverse('honor')}" target="_blank">Honor Code</a>* <a href="${reverse('honor')}" target="_blank">Honor Code</a>*
</label> </label>
...@@ -110,11 +115,11 @@ ...@@ -110,11 +115,11 @@
</div> </div>
<div class="close-modal"> <a href="javascript:void(0);" class="close-modal" title="Close Modal">
<div class="inner"> <div class="inner">
<p>&#10005;</p> <p>&#10005;</p>
</div> </div>
</div> </a>
</div> </div>
</section> </section>
......
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