-
Notifications
You must be signed in to change notification settings - Fork 0
/
note-details.page.html
72 lines (70 loc) · 1.98 KB
/
note-details.page.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<ion-toolbar>
<ion-buttons slot="start">
<ion-back-button defaultHref="/"></ion-back-button>
</ion-buttons>
<ion-title class="ion-text-center">Note Details</ion-title>
<ion-buttons slot="end">
<ion-button slot="icon-only" (click)="showPrompt()">
<ion-icon name="alarm-outline"></ion-icon>
</ion-button>
</ion-buttons>
</ion-toolbar>
<ion-content fullscreen>
<ion-card class="card-max-width">
<ion-card-header color={{note.colorTag}}>
<ion-card-title>
<ion-input
[(ngModel)]="note.title"
maxLength="30"
placeholder="Name"
class="bold"
></ion-input>
<ion-button fill="clear" class="special" (click)="showColorPrompt()">
<ion-icon name="color-palette" color="dark"></ion-icon>
</ion-button>
</ion-card-title>
</ion-card-header>
<quill-editor
[(ngModel)]="note.body" [bounds]="'self'" placeholder=" "
></quill-editor>
<ion-footer *ngIf="!note.id">
<ion-toolbar color="success">
<ion-button
expand="full"
fill="clear"
color="light"
(click)="addNote()"
>
<ion-icon name="checkmark" slot="start"></ion-icon>
Add Idea
</ion-button>
</ion-toolbar>
</ion-footer>
<ion-footer *ngIf="note.id">
<ion-row no-padding text-center>
<ion-col size="6">
<ion-button
expand="block"
fill="solid"
color="danger"
(click)="deleteNote()"
>
<ion-icon name="trash" slot="start"></ion-icon>
Delete
</ion-button>
</ion-col>
<ion-col size="6">
<ion-button
expand="block"
fill="solid"
color="green"
(click)="updateNote()"
>
<ion-icon name="save" slot="start"></ion-icon>
Save Changes
</ion-button>
</ion-col>
</ion-row>
</ion-footer>
</ion-card>
</ion-content>