gaf-mobile
Version:
GAF mobile Web site
61 lines (57 loc) • 3.41 kB
HTML
<div class="reset-password scroll-container" fl-analytics-section="ResetPassword">
<!-- PAGE VIEW -->
<!-- User retrieve password form -->
<section class="section-inner" ng-if="!ctrl.state.success" >
<h1>Reset your password</h1>
<fl-form id="form" name="form" class="form" action="ctrl.resetPassword(ctrl.email)">
<fieldset>
<legend>Enter your email address registered to your <strong>freelancer.com</strong> account</legend>
<!-- Email input -->
<div class="input-prepend">
<span class="icon-email input-prepend-icon"></span>
<input name="email" type="email" placeholder="yourname@email.com" required ng-model="ctrl.email" ng-change="ctrl.error.unknownEmail = false" fl-invalid-if="ctrl.error.unknownEmail" fl-analytics="ChangedEmail">
</div>
<div ng-if="form.$submitted || form.email.$touched" ng-messages="form.email.$error">
<span class="validation validation-error" ng-message="required">
<span class="icon-notification"> </span>
Please input your email
</span>
<span class="validation validation-error" ng-message="email">
<span class="icon-notification"> </span>
Invalid email
</span>
</div>
<div ng-messages="ctrl.error">
<span class="validation validation-error" ng-message="unknownEmail">
<span class="icon-notification"> </span>
Cannot find a user with that email address
</span>
<span class="validation validation-error" ng-message="invalidEmail">
<span class="icon-notification"> </span>
Invalid email
</span>
<span class="validation validation-error" ng-message="accessDenied">
<span class="icon-notification"> </span>
There was a problem logging in with your account. Please contact <a href="https://www.freelancer.com/support">support</a>.
</span>
<span class="validation validation-error" ng-if="ctrl.error.internalError">
<span class="icon-notification"> </span>
An internal error has occurred: {{ ctrl.error.internalError }}
</span>
</div>
<fl-button type="submit" class="btn btn-primary reset-password-button" fl-analytics="ResetPassword">Reset Password</fl-button>
<aside>
<span class="icon-notification"> </span>
Don't have one? Please <a href="/signup" fl-analytics="GoToSignup" fl-analytics-label="CreateAccount">create your account.</a>
</aside>
</fieldset>
</fl-form>
</section>
<!-- PAGE VIEW -->
<!-- Displayed on success -->
<section class="reset-password-success section-inner" ng-if="ctrl.state.success">
<span class="icon-feedback large-icon"> </span>
<h1>Your password is on its way!</h1>
<p>Please check your mailbox for instructions to reset your password.</p>
</section>
</div>