Created
October 7, 2022 11:59
-
-
Save hieptlccc/086ff48774a3586732921f4c7e706a57 to your computer and use it in GitHub Desktop.
1 on 1 Angular Chat - profile.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="app"> | |
<div class="login-page"> | |
<div class="form"> | |
<img class="header__logo" src="/assets/logo.svg" alt="logo" /> | |
<form | |
class="login-form" | |
#profileForm="ngForm" | |
(ngSubmit)="submit(profileForm)" | |
> | |
<input | |
type="text" | |
placeholder="Fullname" | |
required | |
minlength="3" | |
[ngModel]="user?.displayName" | |
name="fullname" | |
#fullname="ngModel" | |
id="fullname" | |
disabled | |
/> | |
<input | |
type="email" | |
placeholder="Email" | |
required | |
minlength="3" | |
[ngModel]="user?.email" | |
name="email" | |
#email="ngModel" | |
id="email" | |
disabled | |
/> | |
<input | |
placeholder="Avatar" | |
required | |
minlength="3" | |
[ngModel]="user?.photoURL" | |
name="avatar" | |
#Avatar="ngModel" | |
id="avatar" | |
/> | |
<select name="theme" [ngModel]="''" #theme="ngModel" id="theme" required> | |
<option value="" selected>Select Theme</option> | |
<option value="aliceblue">Alice Blue</option> | |
<option value="antiquewhite">Antique White</option> | |
<option value="ghostwhite">Ghost White</option> | |
<option value="mistyrose">Misty Rose</option> | |
</select> | |
<button | |
type="submit" | |
[style]=" | |
!profileForm.valid || loading | |
? 'background-color: rgb(147 218 165);' | |
: '' | |
" | |
type="submit" | |
[disabled]="!profileForm.valid || loading" | |
> | |
{{ loading ? "Updating..." : "Update" }} | |
</button> | |
<p class="message"> | |
Back to chat page? <a [routerLink]="['/']">Click here</a> | |
</p> | |
</form> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment