RegisterTemplate.html revision 09b555c24f00f6b2c1e4400bc20c959f69af3bd2
<div class="container-shadow">
{{#if isStageOne}}
<form id="forgotPassword" action="" class="form" method="post" onsubmit="return false">
<h1>{{t "templates.user.UserRegistrationTemplate.registerYourAccount"}}</h1><br/>
<div id="step1">
<fieldset>
<div class="group-field-row group-field-short">
<label for="email" >{{t "common.user.emailAddress"}}</label>
<input type="email" id="email" name="email" value="" required autofocus data-validator="required" data-validator-event="keyup change"/>
<span class="error">x</span>
</div>
<div class="group-actions-block float-right">
<input type="submit" id="continue" value="{{t 'common.form.submit'}}" disabled="true" class="button" />
<input type="button" value="{{t "common.form.cancel"}}" class="button cancelButton"/>
</div>
</fieldset>
</div>
<div id="emailSent" style="display:none">
{{t "templates.user.UserRegistrationTemplate.emailSent"}}
</div>
</form>
{{else}}
<form id="registration" action="" class="form" method="post" onsubmit="return false">
<h1>{{t "templates.user.UserRegistrationTemplate.registerYourAccount"}}</h1><br/>
<fieldset id="step2">
<div class="group-field-row">
<label for="username">{{t "common.user.username"}}</label>
<input type="text" id="username" name="username" value="" autofocus data-validator="required" data-validator-event="keyup change"/>
<span class="error">x</span>
</div>
<div class="group-field-row">
<label for="givenname">{{t "common.user.givenName"}}</label>
<input type="text" id="givenname" name="givenname" value="" />
</div>
<div class="group-field-row">
<label for="sn">{{t "common.user.familyName"}}</label>
<input type="text" id="sn" name="sn" value="" data-validator="required" data-validator-event="keyup change"/>
<span class="error">x</span>
</div>
<div class="group-field-row">
<label for="telephonenumber">{{t "common.user.phoneNumber"}}</label>
<input type="tel" id="telephonenumber" name="telephonenumber" value="" />
</div>
<div class="group-field-row">
<label for="password">{{t "common.user.password"}}</label>
<div class="group-input-span">
<input type="password" id="password" name="password" value="" data-validator="minLength" minLength="8" data-validator-event="keyup change" data-validation-status="error" />
<div class="field-rule">
<span class="error">x</span>
<span data-for-validator="minLength">{{t "common.form.validation.atLeast8Characters"}}</span>
</div>
</div>
</div>
<div class="group-field-row">
<label for="passwordConfirm">{{t "common.user.confirmPassword"}}</label>
<div class="group-input-span">
<input type="password" id="passwordConfirm" name="passwordConfirm" value="" data-validator="passwordConfirm" data-validator-event="keyup change" />
<div class="field-rule">
<span class="error">x</span>
<span data-for-validator="passwordConfirm">{{t "common.form.validation.confirmationMatchesPassword"}}</span>
</div>
</div>
</div>
<div class="group-actions-block float-right">
<input type="submit" id="registerButton" value="{{t "common.form.submit"}}" class="button" disabled="true" />
<input type="button" id="cancel" value="{{t "common.form.cancel"}}" class="button cancelButton"/>
</div>
</fieldset>
<div id="registerSuccess" style="display:none">
{{t "config.messages.UserMessages.afterRegistration"}} <a href="#" class="cancelButton">{{t "templates.user.ForgottenPasswordTemplate.proceedToLogin"}}</a>
</div>
</form>
{{/if}}
</div>