form-login.component.html 848 Bytes
Newer Older
Tifenn Guillas's avatar
Tifenn Guillas committed
1
<form name="form" (ngSubmit)="f.form.valid && emitSubmit(f.form.value)" #f="ngForm" novalidate>
François Agneray's avatar
François Agneray committed
2
3
    <div class="form-group">
        <label for="email">Email address</label>
Tifenn Guillas's avatar
Tifenn Guillas committed
4
5
        <input type="email" id="email" class="form-control" name="email" [(ngModel)]="model.email"
            placeholder="Enter email" required autofocus>
François Agneray's avatar
François Agneray committed
6
7
8
9
        <small class="form-text text-muted">We'll never share your email with anyone else.</small>
    </div>
    <div class="form-group">
        <label for="password">Password</label>
Tifenn Guillas's avatar
Tifenn Guillas committed
10
11
        <input type="password" id="password" class="form-control" name="password" [(ngModel)]="model.password"
            placeholder="Password" required>
François Agneray's avatar
François Agneray committed
12
13
14
15
16
    </div>
    <div class="form-group">
        <button type="submit" class="btn btn-success" [disabled]="!f.form.valid || f.form.pristine">Sign In</button>
    </div>
</form>