1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-10 06:08:34 +02:00
bitwarden-browser/src/app/vault/collections.component.html

54 lines
2.7 KiB
HTML
Raw Normal View History

2019-10-11 17:47:41 +02:00
<div class="modal fade" tabindex="-1" role="dialog" aria-modal="true" aria-labelledby="collectionsTitle">
<div class="modal-dialog modal-dialog-scrollable" role="document">
2018-06-12 19:08:47 +02:00
<form class="modal-content" #form (ngSubmit)="submit()" [appApiAction]="formPromise">
<div class="modal-header">
2019-10-11 17:47:41 +02:00
<h2 class="modal-title" id="collectionsTitle">
2018-06-12 19:08:47 +02:00
{{'collections' | i18n}}
<small *ngIf="cipher">{{cipher.name}}</small>
</h2>
2019-10-11 17:22:21 +02:00
<button type="button" class="close" data-dismiss="modal" appA11yTitle="{{'close' | i18n}}">
2018-06-12 19:08:47 +02:00
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<p>{{'collectionsDesc' | i18n}}</p>
<div class="d-flex">
<h3>{{'collections' | i18n}}</h3>
<div class="ml-auto d-flex" *ngIf="collections && collections.length">
2018-07-18 05:21:23 +02:00
<button type="button" (click)="selectAll(true)" class="btn btn-link btn-sm py-0">
2018-06-12 19:08:47 +02:00
{{'selectAll' | i18n}}
</button>
2018-07-18 05:21:23 +02:00
<button type="button" (click)="selectAll(false)" class="btn btn-link btn-sm py-0">
2018-06-12 19:08:47 +02:00
{{'unselectAll' | i18n}}
</button>
</div>
2018-06-12 19:08:47 +02:00
</div>
<div *ngIf="!collections || !collections.length">
{{'noCollectionsInList' | i18n}}
</div>
<table class="table table-hover table-list mb-0" *ngIf="collections && collections.length">
2018-06-12 19:08:47 +02:00
<tbody>
<tr *ngFor="let c of collections; let i = index" (click)="check(c)">
<td class="table-list-checkbox">
2019-02-21 22:50:37 +01:00
<input type="checkbox" [(ngModel)]="c.checked" name="Collection[{{i}}].Checked"
appStopProp>
2018-06-12 19:08:47 +02:00
</td>
<td>
{{c.name}}
2018-06-12 19:08:47 +02:00
</td>
</tr>
</tbody>
</table>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
2019-10-11 16:35:24 +02:00
<i class="fa fa-spinner fa-spin" title="{{'loading' | i18n}}" aria-hidden="true"></i>
<span>{{'save' | i18n}}</span>
2018-06-12 19:08:47 +02:00
</button>
2019-02-21 22:50:37 +01:00
<button type="button" class="btn btn-outline-secondary"
data-dismiss="modal">{{'cancel' | i18n}}</button>
2018-06-12 19:08:47 +02:00
</div>
</form>
</div>
</div>