mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
40 lines
1.2 KiB
<div class="container">
|
|
<div class="header">
|
|
<button type="button" class="btn btn-secondary btn-sm" (click)="resetDefault()">
|
|
{{ 'contents.viewReset' | sqxTranslate }}
|
|
</button>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div
|
|
cdkDropList
|
|
[cdkDropListData]="fieldNames"
|
|
(cdkDropListDropped)="drop($event)">
|
|
<div *ngFor="let field of fieldNames" cdkDrag>
|
|
<i class="icon-drag2 drag-handle"></i>
|
|
|
|
<div class="form-check">
|
|
<input class="form-check-input" type="checkbox" checked (click)="removeField(field)" id="field_{{field}}">
|
|
<label class="form-check-label" for="field_{{field}}">
|
|
{{field}}
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div>
|
|
<div *ngFor="let field of fieldsNotAdded">
|
|
<i class="icon-drag2 drag-handle invisible"></i>
|
|
|
|
<div class="form-check">
|
|
<input class="form-check-input" type="checkbox" (click)="addField(field)" id="field_{{field}}">
|
|
<label class="form-check-label" for="field_{{field}}">
|
|
{{field}}
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|