2018-10-23 18:16:27 +02:00
|
|
|
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise">
|
|
|
|
<header>
|
|
|
|
<div class="left">
|
|
|
|
<button type="button" appBlurClick (click)="back()">
|
|
|
|
<span class="header-icon"><i class="fa fa-chevron-left"></i></span>
|
|
|
|
<span>{{'back' | i18n}}</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="center">
|
|
|
|
<span class="title">{{'collections' | i18n}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="right">
|
|
|
|
<button type="submit" appBlurClick [disabled]="form.loading">
|
|
|
|
<span [hidden]="form.loading">{{'save' | i18n}}</span>
|
|
|
|
<i class="fa fa-spinner fa-lg fa-spin" [hidden]="!form.loading"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</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}}
|
|
|
|
</div>
|
2018-10-23 18:16:27 +02:00
|
|
|
</div>
|
|
|
|
<div class="box-content" *ngIf="collections && collections.length">
|
|
|
|
<div class="box-content-row box-content-row-checkbox" *ngFor="let c of collections; let i = index"
|
|
|
|
appBoxRow>
|
|
|
|
<label for="collection_{{i}}">{{c.name}}</label>
|
|
|
|
<input id="collection_{{i}}" type="checkbox" [(ngModel)]="c.checked"
|
|
|
|
name="Collection[{{i}}].Checked">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</content>
|
|
|
|
</form>
|