-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy pathdetail.component.html
61 lines (61 loc) · 2.87 KB
/
detail.component.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
<div class="mask" (click)="goBack()">
<div class="container" (click)="$event.stopPropagation()">
<div style="text-align: right;">
<button nz-button nzType="primary" nzSize="large" nzShape="circle" (click)="confirm()" style="margin-right: 10px;">
<i class="anticon anticon-check"></i>
</button>
<button nz-button nz-popconfirm nzPlacement="bottomRight" nzTitle="你真的要删除这条待办事项吗?" (nzOnConfirm)="delete()" nzType="danger"
nzSize="large" nzShape="circle">
<i class="anticon anticon-delete"></i>
</button>
</div>
<label nz-checkbox (click)="$event.stopPropagation()" [(ngModel)]="currentTodo.completedFlag"></label>
<span>标记完成</span>
<nz-divider nzText="标签" nzOrientation="left"></nz-divider>
<div class="input-container">
<nz-tag
*ngFor="let tagName of currentTodo.tags; let i = index"
nzMode="closeable"
(nzAfterClose)="handleTagClose(i)">{{ tagName }}</nz-tag>
<nz-tag
*ngIf="!addTagInputVisible"
class="editable-tag"
(click)="showAddTagInput()">
<i class="anticon anticon-plus"></i> New Tag
</nz-tag>
<input
*ngIf="addTagInputVisible"
#tagNameInput
style="width: 78px;"
nz-input
[(ngModel)]="newTagName"
nzSize="small"
(blur)="handleAddTagConfirm()"
(keyup.enter)="handleAddTagConfirm()">
</div>
<nz-divider nzText="标题" nzOrientation="left"></nz-divider>
<div class="input-container">
<input nz-input [(ngModel)]="currentTodo.title" placeholder="待办事项" [disabled]="!!currentTodo.completedFlag" id="title" name="title">
</div>
<nz-divider nzText="日期与提醒" nzOrientation="left"></nz-divider>
<div class="due-date-container input-container">
<span class="prefix">截止日期</span>
<nz-date-picker [(ngModel)]="dueDate" [disabled]="!!currentTodo.completedFlag" [nzDisabledDate]="dueDisabledDate" (ngModelChange)="handleDueDateChange($event)">
</nz-date-picker>
</div>
<div class="plan-date-container input-container">
<span class="prefix">计划日期</span>
<nz-date-picker nzShowTime [(ngModel)]="planDate" [disabled]="!!currentTodo.completedFlag" [nzDisabledDate]="planDisabledDate"
(ngModelChange)="handlePlanDateChange($event)">
</nz-date-picker>
</div>
<div class="input-container">
<span class="prefix">计划提醒</span>
<nz-switch [(ngModel)]="currentTodo.notifyMe" [nzControl]="true" [nzDisabled]="!!currentTodo.completedFlag" (click)="clickSwitch()"></nz-switch>
</div>
<nz-divider nzText="更多" nzOrientation="left"></nz-divider>
<div class="input-container">
<textarea nz-input="" row="8" placeholder="待办详情" [disabled]="!!currentTodo.completedFlag" [(ngModel)]="currentTodo.desc"></textarea>
</div>
</div>
</div>