2018-04-13 06:06:48 +02:00
|
|
|
<form #form (ngSubmit)="submit()" [appApiAction]="formPromise">
|
|
|
|
<header>
|
|
|
|
<div class="left">
|
2018-04-13 19:18:43 +02:00
|
|
|
<a routerLink="/folders">{{'cancel' | i18n}}</a>
|
2018-04-13 06:06:48 +02:00
|
|
|
</div>
|
|
|
|
<div class="center">
|
|
|
|
<span class="title">{{title}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="right">
|
|
|
|
<button type="submit" appBlurClick [disabled]="form.loading">
|
|
|
|
<span [hidden]="form.loading">{{'save' | i18n}}</span>
|
2019-10-08 23:04:44 +02:00
|
|
|
<i class="fa fa-spinner fa-lg fa-spin" [hidden]="!form.loading" aria-hidden="true"></i>
|
2018-04-13 06:06:48 +02:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<content *ngIf="folder">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-content">
|
|
|
|
<div class="box-content-row" appBoxRow>
|
|
|
|
<label for="name">{{'name' | i18n}}</label>
|
2019-02-21 22:53:57 +01:00
|
|
|
<input id="name" type="text" name="Name" [(ngModel)]="folder.name" [appAutofocus]="!editMode">
|
2018-04-13 06:06:48 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="box list" *ngIf="editMode">
|
|
|
|
<div class="box-content single-line">
|
2019-02-21 22:53:57 +01:00
|
|
|
<a class="box-content-row" href="#" appStopClick appBlurClick (click)="delete()"
|
|
|
|
[appApiAction]="deletePromise" #deleteBtn>
|
2018-04-13 06:06:48 +02:00
|
|
|
<div class="row-main text-danger">
|
2019-10-08 23:04:44 +02:00
|
|
|
<div class="icon text-danger" aria-hidden="true">
|
2018-04-13 06:06:48 +02:00
|
|
|
<i class="fa fa-trash-o fa-lg fa-fw" [hidden]="deleteBtn.loading"></i>
|
|
|
|
<i class="fa fa-spinner fa-spin fa-lg fa-fw" [hidden]="!deleteBtn.loading"></i>
|
|
|
|
</div>
|
|
|
|
<span>{{'deleteFolder' | i18n}}</span>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</content>
|
|
|
|
</form>
|