/
edit-list-item.component.html
45 lines (40 loc) · 1.51 KB
/
edit-list-item.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
<dsp-progress-indicator *ngIf="loading"></dsp-progress-indicator>
<div *ngIf="!loading" class="form-content list-info">
<!-- list label -->
<dsp-string-literal-input
[placeholder]="'Child node label'"
[value]="labels"
(dataChanged)="handleData($event, 'labels')">
</dsp-string-literal-input>
<span class="invalid-form" *ngIf="formInvalidMessage">{{ formInvalidMessage }}</span>
<br><br>
<!-- list description / comment -->
<dsp-string-literal-input
[textarea]="true"
[placeholder]="'Child node description'"
[value]="comments"
(dataChanged)="handleData($event, 'comments')"
[language]="labels.length ? labels[0].language : 'en'">
</dsp-string-literal-input>
<div class="form-panel form-action">
<span>
<button
mat-button
type="button"
(click)="closeDialog.emit()">
{{ 'appLabels.form.action.cancel' | translate }}
</button>
</span>
<span class="fill-remaining-space"></span>
<span>
<button
mat-raised-button
type="submit"
color="primary"
[disabled]="saveButtonDisabled"
(click)=" mode === 'editListNode' ? updateChildNode() : insertChildNode()">
{{ mode === 'editListNode' ? 'appLabels.form.action.update' : 'appLabels.form.action.submit' | translate }}
</button>
</span>
</div>
</div>