2021-10-25 08:26:12 +02:00
|
|
|
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="collectionsTitle">
|
2019-04-02 05:27:54 +02:00
|
|
|
<div class="modal-dialog" role="document">
|
2018-10-23 21:50:21 +02:00
|
|
|
<form class="modal-content" #form (ngSubmit)="submit()" [appApiAction]="formPromise">
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="box">
|
2019-04-02 05:27:54 +02:00
|
|
|
<div class="box-header" id="collectionsTitle">
|
2018-10-23 21:50:21 +02:00
|
|
|
{{ "collections" | i18n }}
|
|
|
|
</div>
|
|
|
|
<div class="box-content" *ngIf="!collections || !collections.length">
|
|
|
|
{{ "noCollectionsInList" | i18n }}
|
|
|
|
</div>
|
|
|
|
<div class="box-content" *ngIf="collections && collections.length">
|
|
|
|
<div
|
|
|
|
class="box-content-row box-content-row-checkbox"
|
2019-02-21 22:53:32 +01:00
|
|
|
*ngFor="let c of collections; let i = index"
|
|
|
|
appBoxRow
|
|
|
|
>
|
2018-10-23 21:50:21 +02:00
|
|
|
<label for="collection_{{ i }}">{{ c.name }}</label>
|
|
|
|
<input
|
|
|
|
id="collection_{{ i }}"
|
|
|
|
type="checkbox"
|
|
|
|
[(ngModel)]="c.checked"
|
|
|
|
name="Collection[{{ i }}].Checked"
|
|
|
|
/>
|
|
|
|
</div>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-10-23 21:50:21 +02:00
|
|
|
<div class="modal-footer">
|
2019-04-02 04:43:42 +02:00
|
|
|
<button
|
|
|
|
appBlurClick
|
|
|
|
type="submit"
|
|
|
|
class="primary"
|
|
|
|
appA11yTitle="{{ 'save' | i18n }}"
|
|
|
|
[disabled]="form.loading"
|
|
|
|
>
|
2019-04-02 04:56:28 +02:00
|
|
|
<i class="fa fa-save fa-lg fa-fw" [hidden]="form.loading" aria-hidden="true"></i>
|
|
|
|
<i
|
|
|
|
class="fa fa-spinner fa-spin fa-lg fa-fw"
|
|
|
|
[hidden]="!form.loading"
|
|
|
|
aria-hidden="true"
|
|
|
|
></i>
|
2018-10-23 21:50:21 +02:00
|
|
|
</button>
|
|
|
|
<button type="button" data-dismiss="modal">{{ "cancel" | i18n }}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|