NIHVIVO-2280: Styled 'create new password' page for new user accounts.

This commit is contained in:
manolobevia 2011-06-13 18:12:18 +00:00
parent 29ab2290b6
commit 1415323fde
2 changed files with 14 additions and 16 deletions

View file

@ -359,4 +359,5 @@ div.sparqlform .parenthetical {
.note { .note {
font-size: .8em; font-size: .8em;
line-height: 1.3em; line-height: 1.3em;
color: #7f8993;
} }

View file

@ -3,7 +3,6 @@
<#-- Template for adding a user account --> <#-- Template for adding a user account -->
<h3>Create your Password</h3> <h3>Create your Password</h3>
<#if errorPasswordIsEmpty??> <#if errorPasswordIsEmpty??>
<#assign errorMessage = "No password supplied." /> <#assign errorMessage = "No password supplied." />
</#if> </#if>
@ -24,26 +23,24 @@
</#if> </#if>
<section id="create-password" role="region"> <section id="create-password" role="region">
<fieldset> <p>Please enter your new password for ${userAccount.emailAddress}</p>
<legend>Please enter your new password for ${userAccount.emailAddress}</legend>
<form method="POST" action="${formUrls.createPassword}" class="customForm" role="create password"> <form method="POST" action="${formUrls.createPassword}" class="customForm" role="create password">
<input type="hidden" name="user" value="${userAccount.emailAddress}" /> <input type="hidden" name="user" value="${userAccount.emailAddress}" role="input" />
<input type="hidden" name="key" value="${userAccount.passwordLinkExpiresHash}" /> <input type="hidden" name="key" value="${userAccount.passwordLinkExpiresHash}" role="input" />
<label for="new-password">Password<span class="requiredHint"> *</span></label> <label for="new-password">Password<span class="requiredHint"> *</span></label>
<input type="password" name="newPassword" value="${newPassword}" id="new-password" role="input "/> <input type="password" name="newPassword" value="${newPassword}" id="new-password" role="input" />
<p>Minimum of ${minimumLength} characters in length.</p> <p class="note">Minimum of ${minimumLength} characters in length.</p>
<label for="confirm-password">Confirm Password<span class="requiredHint"> *</span></label> <label for="confirm-password">Confirm Password<span class="requiredHint"> *</span></label>
<input type="password" name="confirmPassword" value="${confirmPassword}" id="confirm-password" role="input "/> <input type="password" name="confirmPassword" value="${confirmPassword}" id="confirm-password" role="input" />
<input type="submit" name="submit" value="Save changes" class="submit"/> <p><input type="submit" name="submit" value="Save changes" class="submit"/></p>
<p class="requiredHint">* required fields</p> <p class="requiredHint">* required fields</p>
</form> </form>
</fieldset>
</section> </section>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />')} ${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />')}