/
list-info-form.component.html
34 lines (29 loc) · 1.41 KB
/
list-info-form.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
<div>
<dsp-progress-indicator *ngIf="loading"></dsp-progress-indicator>
<div *ngIf="!loading" class="form-content list-info">
<!-- list label -->
<dsp-string-literal-input [placeholder]="'List label *'" [value]="labels"
(dataChanged)="handleData($event, 'labels')">
</dsp-string-literal-input>
<mat-hint class="invalid-form string-literal-error" *ngIf="labelInvalidMessage">{{ labelInvalidMessage }}</mat-hint>
<br><br>
<!-- list description / comment -->
<dsp-string-literal-input [textarea]="true" [placeholder]="'List 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(list)">
{{ 'appLabels.form.action.cancel' | translate }}
</button>
</span>
<span class="fill-remaining-space"></span>
<span>
<button mat-raised-button type="submit" color="primary" [disabled]="labels.length === 0"
(click)="submitData()" class="list-submit">
{{ mode === 'update' ? 'Update' : 'Create' | translate }}
</button>
</span>
</div>
</div>
</div>