31.4. Settings Component Base Implementation (#31)

This commit is contained in:
Art
2021-10-08 14:10:05 +03:00
parent b11ede8e54
commit eed99b2119
3 changed files with 76 additions and 7 deletions

View File

@ -1 +1,20 @@
<p>settings works!</p>
<!-- change password -->
<div *ngIf="isAdmin" class="tab-pane fade show active" id="reset-password">
<form #resetPasswordForm="ngForm" (ngSubmit)="onResetPassword(resetPasswordForm)">
<fieldset>
<legend>User Password Management</legend>
<div class="form-group">
<label for="email">Email address</label>
<input type="email" name="reset-password-email" required ngModel class="form-control"
id="email"
placeholder="Enter email (example@email.com)">
<small class="form-text text-muted">We'll never share your email with anyone else.</small>
</div>
<button type="submit" [disabled]="resetPasswordForm.invalid" class="btn btn-primary">
<i *ngIf="refreshing" class="fas fa-spinner fa-spin"></i>&nbsp;&nbsp;
<span>{{refreshing ? 'Loading...' : 'Reset Password'}}</span>
</button>
</fieldset>
</form>
</div>