.control-group
label.control-label(for="oldpassword") Old password
.controls
- input#username(type="password", name="oldpassword",
+ input#oldpassword(type="password", name="oldpassword",
placeholder="enter your current password...")
- if (errors.newpassword)
.control-group.error
label.control-label(for="newpassword") New password
.controls
- input#password(type="password", name="newpassword")
+ input#newpassword(type="password", name="newpassword")
span.help-inline #{errors.newpassword}
- else
.control-group
label.control-label(for="newpassword") New password
.controls
- input#password(type="password", name="newpassword",
+ input#newpassword(type="password", name="newpassword",
placeholder="enter your new password...")
- else
.control-group
label.control-label(for="oldpassword") Old password
.controls
- input#username(type="password", name="oldpassword",
+ input#oldpassword(type="password", name="oldpassword",
placeholder="enter your current password...")
.control-group
label.control-label(for="password") New password
.controls
- input#password(type="password", name="newpassword",
+ input#newpassword(type="password", name="newpassword",
placeholder="enter your new password...")
button.submit-button.btn.btn-primary(type="submit")
i.icon-edit.icon-white
label.control-label(for="username") Name
.controls
input#username(type="text", name="username",
- value=oldvalues.username)
+ maxlength="15", value=oldvalues.username)
span.help-inline #{errors.username}
- else
.control-group
label.control-label(for="username") Name
.controls
input#username(type="text", name="username",
- value=oldvalues.username)
+ maxlength="15", value=oldvalues.username)
- if (errors.password)
.control-group.error
label.control-label(for="password") Password
label.control-label(for="username") Name
.controls
input#username(type="text", name="username",
- placeholder="enter your nickname...")
+ maxlength="15", placeholder="enter your nickname...")
.control-group
label.control-label(for="password") Password
.controls
.control-group.error
label.control-label(for="email") Email
.controls
- input#oldpassword(type="text", name="email",
+ input#email(type="text", name="email",
value=oldvalues.email)
span.help-inline #{errors.email}
- else
.control-group
label.control-label(for="email") Email
.controls
- input#username(type="text", name="email",
+ input#email(type="text", name="email",
value=oldvalues.email)
- if (errors.captcha)
.control-group.error
label.control-label(for="captcha-input") Are you human?
.controls
img#captcha(src=captchaurl)
- input#captcha-input(type="text", name="captcha")
+ input#captcha-input(type="text", name="captcha",
+ maxlength="4")
span.help-inline #{errors.captcha}
- else
.control-group
.controls
img#captcha(src=captchaurl)
input#captcha-input(type="text", name="captcha",
- placeholder="type what you see...")
+ maxlength="4", placeholder="type what you see...")
- else
.control-group
label.control-label(for="email") Email
.controls
img#captcha(src=captchaurl)
input#captcha-input(type="text", name="captcha",
- placeholder="type what you see...")
+ maxlength="4", placeholder="type what you see...")
button.submit-button.btn.btn-primary(type="submit")
i.icon-envelope.icon-white
| Send password reset link
| #{errors.alert}
form.form-horizontal.well(method="post", action="/resetpasswd?token=#{token}")
fieldset
- - if (locals.errors)
- - if (errors.password)
- .control-group.error
- label.control-label(for="password") New password
- .controls
- input#oldpassword(type="password", name="password")
- span.help-inline #{errors.password}
- - else
- .control-group
- label.control-label(for="password") New password
- .controls
- input#username(type="password", name="password",
- placeholder="enter your new password...")
+ - if (locals.errors && errors.password)
+ .control-group.error
+ label.control-label(for="password") New password
+ .controls
+ input#password(type="password", name="password")
+ span.help-inline #{errors.password}
- else
.control-group
- label.control-label(for="oldpassword") New password
+ label.control-label(for="password") New password
.controls
- input#username(type="password", name="password",
+ input#password(type="password", name="password",
placeholder="enter your new password...")
button.submit-button.btn.btn-primary(type="submit")
i.icon-edit.icon-white
label.control-label(for="username") Name
.controls
input#username(type="text", name="username",
- value=oldvalues.username)
+ maxlength="15", value=oldvalues.username)
span.help-inline #{errors.username}
- else
.control-group
label.control-label(for="username") Name
.controls
input#username(type="text", name="username",
- value=oldvalues.username)
+ maxlength="15", value=oldvalues.username)
- if (errors.email)
.control-group.error
label.control-label(for="email") Email
label.control-label(for="captcha-input") Are you human?
.controls
img#captcha(src=captchaurl)
- input#captcha-input(type="text", name="captcha")
+ input#captcha-input(type="text", name="captcha",
+ maxlength="4")
span.help-inline #{errors.captcha}
- else
.control-group
.controls
img#captcha(src=captchaurl)
input#captcha-input(type="text", name="captcha",
- placeholder="type what you see...")
+ maxlength="4", placeholder="type what you see...")
- else
.control-group
label.control-label(for="username") Name
.controls
input#username(type="text", name="username",
- placeholder="enter a nickname...")
+ maxlength="15", placeholder="enter a nickname...")
.control-group
label.control-label(for="email") Email
.controls
.controls
img#captcha(src=captchaurl)
input#captcha-input(type="text", name="captcha",
- placeholder="type what you see...")
+ maxlength="4", placeholder="type what you see...")
button.submit-button.btn.btn-success(type="submit")
i.icon-user.icon-white
| Sign up!