feat: add edit page
This commit is contained in:
24
src/app/pages/edit/edit.html
Normal file
24
src/app/pages/edit/edit.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<app-main-header
|
||||
[title]="strings.editContact"
|
||||
>
|
||||
<app-rounded-btn
|
||||
(keydown)="goBack()"
|
||||
(click)="goBack()"
|
||||
slot="action-button"
|
||||
text="Go back"
|
||||
/>
|
||||
</app-main-header>
|
||||
<app-card bgColor="var(--secondary)">
|
||||
@if(form$|async; as form){
|
||||
<app-contact-form
|
||||
class="form"
|
||||
(contact)="edit(form.value)"
|
||||
[form]="form"
|
||||
[submitText]="strings.save"
|
||||
><app-form-header
|
||||
[title]="strings.editTheContact|upperfirst"
|
||||
slot="header"
|
||||
/>
|
||||
</app-contact-form>
|
||||
}
|
||||
</app-card>
|
||||
Reference in New Issue
Block a user