57 lines
2.2 KiB
HTML
57 lines
2.2 KiB
HTML
<!-- <h2 mat-dialog-title>Choose a list</h2>
|
|
<mat-dialog-content>
|
|
<mat-form-field appearance="fill">
|
|
<mat-label>List Name</mat-label>
|
|
<input [formControl]="searchControl" matInput>
|
|
</mat-form-field>
|
|
<mat-dialog-actions align="center" *ngIf="doShowAddButton()">
|
|
<button mat-button (click)="createList()" *ngIf="doShowAddButton()">Create List</button>
|
|
</mat-dialog-actions>
|
|
<mat-selection-list #shoes (selectionChange)="onSelectionChange($event)">
|
|
<mat-list-option *ngFor="let list of listsToShow" [value]="list.id" checkboxPosition="before">
|
|
{{list.name}}
|
|
</mat-list-option>
|
|
</mat-selection-list>
|
|
</mat-dialog-content>
|
|
<mat-dialog-actions align="end">
|
|
<button mat-button [mat-dialog-close]="true">OK</button>
|
|
<button mat-button mat-dialog-close>Cancel</button>
|
|
</mat-dialog-actions> -->
|
|
<div class="modal-content user-lists">
|
|
<div class="modal-header">
|
|
<h2 class="modal-title">Choose a list</h2>
|
|
<button type="button" class="btn-close" (click)="closeDialog()"></button>
|
|
</div>
|
|
|
|
<!-- Modal Body -->
|
|
<div class="modal-body">
|
|
<div class="input-group mb-3 ">
|
|
<!-- <label for="listNameInput" class="form-label">List Name</label> -->
|
|
<input type="text" class="form-control" id="listNameInput" [formControl]="searchControl"
|
|
placeholder="List name..." @scaleInOut>
|
|
<button class="btn btn-success growing-width-element" type="button" *ngIf="doShowAddButton()" (click)="createList()" @scaleInOut>Create
|
|
List</button>
|
|
|
|
</div>
|
|
<div class="d-grid gap-2" *ngIf="doShowAddButton()">
|
|
</div>
|
|
<div data-simplebar class="simplebar-content-wrapper">
|
|
<div class="list-group">
|
|
|
|
<label *ngFor="let list of listsToShow" class="list-group-item">
|
|
<input class="form-check-input me-1" type="checkbox" [value]="list.id"
|
|
(change)="onSelectionChange(list, $event)" [checked]="list.isChecked">
|
|
{{ list.name }}
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Modal Footer -->
|
|
<div class="modal-footer">
|
|
<div class="btn-group">
|
|
<!-- <button type="button" class="btn btn-secondary" (click)="closeDialog()">Cancel</button> -->
|
|
<button type="button" class="btn btn-primary" (click)="confirmSelection()">OK</button>
|
|
</div>
|
|
</div>
|
|
</div> |