bitwarden-estensione-browser/src/popup/settings/folder-add-edit.component.html

41 lines
1.7 KiB
HTML
Raw Normal View History

<form #form (ngSubmit)="submit()" [appApiAction]="formPromise">
<header>
<div class="left">
2018-04-13 19:18:43 +02:00
<a routerLink="/folders">{{'cancel' | i18n}}</a>
</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>
</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">
</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>
<div class="row-main text-danger">
2019-10-08 23:04:44 +02:00
<div class="icon text-danger" aria-hidden="true">
<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>