Skip to content

Commit 9b18a43

Browse files
committed
Add form labels
1 parent 21ba044 commit 9b18a43

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

account/account/templates/logged_out.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ <h4>Login Page</h4>
2121
<table width="60%">
2222
<tr><td colspan="5"><hr width="100%" /></td></tr>
2323
<tr><td nowrap colspan="1">Sali Lab Web Server Login {{ help_link("account") }}</td></tr>
24-
<tr><td width="20%" align="right" colspan="1">Username:</td> <td align="left" colspan="1"><input type="text" name="user_name" size="10" maxlength="25" /></td> <td align="right" colspan="1"><input type="submit" name=".submit" value="Login" /></td></tr>
25-
<tr><td align="right" colspan="1">Password:</td> <td align="left" colspan="1"><input type="password" name="password" size="10" maxlength="25" /></td> <td align="right"><input type="reset" /></td></tr>
24+
<tr><td width="20%" align="right" colspan="1"><label for="user_name">Username:</label></td> <td align="left" colspan="1"><input id="user_name" type="text" name="user_name" size="10" maxlength="25" /></td> <td align="right" colspan="1"><input type="submit" name=".submit" value="Login" /></td></tr>
25+
<tr><td align="right" colspan="1"><label for="password">Password:</label></td> <td align="left" colspan="1"><input id="password" type="password" name="password" size="10" maxlength="25" /></td> <td align="right"><input type="reset" /></td></tr>
2626
<tr><td align="center" colspan="2"><label><input type="checkbox" name="permanent" value="on" checked="checked" />Check if you want to <span class="tooltip" title="If set, the logon cookie will expire after one year rather than at the end of your browser session.">log on permanently</span> on this computer</label></td></tr>
2727
<tr><td align="left" colspan="2"><br /> <a href="{{ url_for("reset") }}">Forgot Username or Password?</a></td></tr>
2828
<tr><td align="left" colspan="2"><br /> <a href="{{ url_for("register") }}">Create Account</a></td></tr>

account/account/templates/register.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ <h4>Account Setup</h4>
1111
<table>
1212
<tr><td colspan="5"><hr /></td></tr>
1313
<tr><th colspan="2">Create an Account {{ help_link("account") }}</th></tr>
14-
<tr><td>Choose Username (max 25 characters):</td> <td><input type="text" name="user_name" value="{{ form.user_name }}" size="10" maxlength="25" /></td></tr>
15-
<tr><td>Choose Password (min 8, max 25 characters):</td> <td><input type="password" name="password" size="10" maxlength="25" /></td></tr>
16-
<tr><td>Re-enter Password:</td> <td><input type="password" name="passwordcheck" size="10" maxlength="25" /></td></tr>
17-
<tr><td>First Name <input type="hidden" name="create" value="y" /></td> <td><input type="text" name="first_name" value="{{ form.first_name }}" size="20" maxlength="40" /></td></tr>
18-
<tr><td>Last Name</td> <td><input type="text" name="last_name" value="{{ form.last_name }}" size="20" maxlength="40" /></td></tr>
19-
<tr><td>Institution</td> <td><input type="text" name="institution" value="{{ form.institution }}" size="20" maxlength="40" /></td></tr>
20-
<tr><td><span class="tooltip" title="This will be used to notify you of completed jobs, and to reset your password if you forget it. It will not be used for any other purpose.">Email Address</span></td> <td><input type="text" name="email" value="{{ form.email }}" size="20" maxlength="40" /></td></tr>
21-
<tr><td><a href="https://salilab.org/modeller/" title="If you have a MODELLER license key, you can save it here; it will be provided automatically to any web service that needs it.">MODELLER license key</a> (optional)</td> <td><input type="text" name="modeller_key" value="{{ form.modeller_key }}" size="20" maxlength="40" /></td></tr>
14+
<tr><td><label for="user_name">Choose Username (max 25 characters):</label></td> <td><input id="user_name" type="text" name="user_name" value="{{ form.user_name }}" size="10" maxlength="25" /></td></tr>
15+
<tr><td><label for="password">Choose Password (min 8, max 25 characters):</label></td> <td><input id="password" type="password" name="password" size="10" maxlength="25" /></td></tr>
16+
<tr><td><label for="passwordcheck">Re-enter Password:</label></td> <td><input id="passwordcheck" type="password" name="passwordcheck" size="10" maxlength="25" /></td></tr>
17+
<tr><td><label for="first_name">First Name</label> <input type="hidden" name="create" value="y" /></td> <td><input id="first_name" type="text" name="first_name" value="{{ form.first_name }}" size="20" maxlength="40" /></td></tr>
18+
<tr><td><label for="last_name">Last Name</label></td> <td><input id="last_name" type="text" name="last_name" value="{{ form.last_name }}" size="20" maxlength="40" /></td></tr>
19+
<tr><td><label for="institution">Institution</label></td> <td><input id="institution" type="text" name="institution" value="{{ form.institution }}" size="20" maxlength="40" /></td></tr>
20+
<tr><td><span class="tooltip" title="This will be used to notify you of completed jobs, and to reset your password if you forget it. It will not be used for any other purpose."><label for="email">Email Address</label></span></td> <td><input id="email" type="text" name="email" value="{{ form.email }}" size="20" maxlength="40" /></td></tr>
21+
<tr><td><a href="https://salilab.org/modeller/" title="If you have a MODELLER license key, you can save it here; it will be provided automatically to any web service that needs it."><label for="modeller_key">MODELLER license key</label></a> (optional)</td> <td><input id="modeller_key" type="text" name="modeller_key" value="{{ form.modeller_key }}" size="20" maxlength="40" /></td></tr>
2222
<tr><td align="center" colspan="2"><div class=standout> <label><input type="checkbox" name="academic" value="on" {{ 'checked="checked"' if form.academic }} />I am a <span class="tooltip" title="Sali Lab web server accounts are currently only available for non-profit or academic users.">non-profit/academic user</span>
2323
and this server will be used solely for educational
2424
purposes or for basic research intended to advance

account/account/templates/reset.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ <h4>Password Reset</h4>
1414
<form method="post" enctype="multipart/form-data">
1515
<table>
1616
<tr>
17-
<td>Email:</td>
18-
<td><input type="text" name="email" size="10" /></td>
17+
<td><label for="reset-email">Email:</label></td>
18+
<td><input id="reset-email" type="text" name="email" size="10" /></td>
1919
</tr>
2020
<tr>
2121
<td><input type="submit" name=".submit" value="Send reset email" /></td>

0 commit comments

Comments
 (0)