Skip to content
Snippets Groups Projects
form-register.component.html 1021 B
Newer Older
  • Learn to ignore specific revisions
  • François Agneray's avatar
    François Agneray committed
    <form (ngSubmit)="f.form.valid && submitted.emit(f.form.value)" #f="ngForm" novalidate>
        <div class="form-group">
            <label for="register_email">Email address</label>
            <input type="email" id="register_email" class="form-control" name="email" [(ngModel)]="model.email" placeholder="Enter email" required>
            <small class="form-text text-muted">We'll never share your email with anyone else.</small>
        </div><div class="form-group">
            <label for="confirm_email">Email confirmation</label>
            <input type="email" id="confirm_email" class="form-control" name="confirm_email" placeholder="Enter email" required>
        </div>
        <div class="form-group">
            <label for="register_password">Password</label>
            <input type="password" id="register_password" class="form-control" name="password" [(ngModel)]="model.password" placeholder="Password" required>
        </div>
        <button type="submit" class="btn btn-success" [disabled]="!f.form.valid || f.form.pristine">Register</button>
    </form>