[U] login, signup: sunmit via enter

This commit is contained in:
Jan 2020-10-30 14:46:28 +01:00
parent ef07db5818
commit 0d01e55b6e
2 changed files with 44 additions and 40 deletions

View file

@ -1,3 +1,4 @@
<form>
<div class="row mt-3 justify-content-md-center">
<div class="form-group col-12 col-sm-4">
<label for="email">Email</label>
@ -12,7 +13,7 @@
</div>
<div class="row justify-content-md-center">
<div class="col-12 col-sm-4">
<button class="btn btn-primary text-uppercase" type="button" (click)="login(email.value, password.value)">
<button class="btn btn-primary text-uppercase" type="submit" (click)="login(email.value, password.value)">
Log in
</button> or
<a class="btn btn-secondary text-uppercase" [routerLink]="'/signup'">
@ -20,3 +21,4 @@
</a>
</div>
</div>
</form>

View file

@ -1,3 +1,4 @@
<form>
<div class="row mt-3 justify-content-md-center">
<div class="form-group col-12 col-sm-4">
<label for="email">Email</label>
@ -23,3 +24,4 @@
</button>
</div>
</div>
</form>