2018-10-23 18:16:27 +02:00
|
|
|
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise">
|
|
|
|
<header>
|
|
|
|
<div class="left">
|
|
|
|
<button type="button" appBlurClick (click)="back()">
|
2022-01-28 11:53:06 +01:00
|
|
|
<span class="header-icon"><i class="bwi bwi-angle-left" aria-hidden="true"></i></span>
|
2018-10-23 18:16:27 +02:00
|
|
|
<span>{{ "back" | i18n }}</span>
|
|
|
|
</button>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-11-02 23:28:53 +01:00
|
|
|
<h1 class="center">
|
2018-10-23 18:16:27 +02:00
|
|
|
<span class="title">{{ "collections" | i18n }}</span>
|
2021-12-21 15:43:35 +01:00
|
|
|
</h1>
|
2018-10-23 18:16:27 +02:00
|
|
|
<div class="right">
|
|
|
|
<button type="submit" appBlurClick [disabled]="form.loading">
|
|
|
|
<span [hidden]="form.loading">{{ "save" | i18n }}</span>
|
2022-01-28 11:53:06 +01:00
|
|
|
<i class="bwi bwi-spinner bwi-lg bwi-spin" [hidden]="!form.loading" aria-hidden="true"></i>
|
2018-10-23 18:16:27 +02:00
|
|
|
</button>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2018-10-23 18:16:27 +02:00
|
|
|
</header>
|
|
|
|
<content>
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-content" *ngIf="!collections || !collections.length">
|
2019-06-25 02:38:23 +02:00
|
|
|
<div class="box-content-row padded no-hover">
|
|
|
|
{{ "noCollectionsInList" | i18n }}
|
2018-10-23 18:16:27 +02:00
|
|
|
</div>
|
2021-12-21 15:43:35 +01:00
|
|
|
</div>
|
2021-11-02 23:28:53 +01:00
|
|
|
<div class="box-content" *ngIf="collections && collections.length">
|
2021-12-21 15:43:35 +01:00
|
|
|
<div
|
2018-10-23 18:16:27 +02:00
|
|
|
class="box-content-row box-content-row-checkbox"
|
|
|
|
*ngFor="let c of collections; let i = index"
|
2021-12-21 15:43:35 +01:00
|
|
|
appBoxRow
|
|
|
|
>
|
2018-10-23 18:16:27 +02:00
|
|
|
<label for="collection_{{ i }}">{{ c.name }}</label>
|
|
|
|
<input
|
|
|
|
id="collection_{{ i }}"
|
|
|
|
type="checkbox"
|
2019-10-08 23:04:44 +02:00
|
|
|
[(ngModel)]="c.checked"
|
|
|
|
name="Collection[{{ i }}].Checked"
|
2018-10-23 18:16:27 +02:00
|
|
|
/>
|
|
|
|
</div>
|
2019-06-25 02:38:23 +02:00
|
|
|
</div>
|
2018-10-23 18:16:27 +02:00
|
|
|
</div>
|
|
|
|
</content>
|
|
|
|
</form>
|