bitwarden-desktop/src/app/vault/attachments.component.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

79 lines
2.7 KiB
HTML
Raw Normal View History

<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="attachmentsTitle">
2019-04-02 05:27:54 +02:00
<div class="modal-dialog" role="document">
2018-02-01 03:56:47 +01:00
<form class="modal-content" #form (ngSubmit)="submit()" [appApiAction]="formPromise">
2018-01-30 05:19:55 +01:00
<div class="modal-body">
2018-01-30 19:32:58 +01:00
<div class="box" *ngIf="cipher && cipher.hasAttachments">
2019-04-02 05:27:54 +02:00
<div class="box-header" id="attachmentsTitle">
2018-01-30 05:19:55 +01:00
{{ "attachments" | i18n }}
</div>
2018-01-30 19:32:58 +01:00
<div class="box-content no-hover">
<div class="box-content-row box-content-row-flex" *ngFor="let a of cipher.attachments">
<div class="row-main">
{{ a.fileName }}
</div>
<small class="row-sub-label">{{ a.sizeName }}</small>
<div class="action-buttons no-pad">
2018-04-11 19:51:29 +02:00
<button
class="row-btn btn"
type="button"
appStopClick
2019-04-02 04:43:42 +02:00
appA11yTitle="{{ 'delete' | i18n }}"
2019-04-02 04:56:28 +02:00
(click)="delete(a)"
#deleteBtn
[appApiAction]="deletePromises[a.id]"
2018-02-01 03:56:47 +01:00
[disabled]="deleteBtn.loading"
>
<i
class="bwi bwi-trash bwi-lg bwi-fw"
2019-04-02 04:56:28 +02:00
[hidden]="deleteBtn.loading"
aria-hidden="true"
></i>
<i
class="bwi bwi-spinner bwi-spin bwi-lg bwi-fw"
2019-04-02 04:56:28 +02:00
[hidden]="!deleteBtn.loading"
aria-hidden="true"
2021-12-20 15:47:17 +01:00
></i>
2018-01-30 05:19:55 +01:00
</button>
2021-12-20 15:47:17 +01:00
</div>
</div>
</div>
</div>
2018-01-30 05:19:55 +01:00
<div class="box">
<div class="box-header">
{{ "newAttachment" | i18n }}
2021-12-20 15:47:17 +01:00
</div>
2018-01-30 05:19:55 +01:00
<div class="box-content no-hover">
<div class="box-content-row">
<label for="file">{{ "file" | i18n }}</label>
<input type="file" id="file" name="file" required />
</div>
2021-12-20 15:47:17 +01:00
</div>
2018-01-30 05:19:55 +01:00
<div class="box-footer">
{{ "maxFileSize" | i18n }}
2021-12-20 15:47:17 +01:00
</div>
</div>
</div>
2018-01-30 05:19:55 +01:00
<div class="modal-footer">
2021-12-20 15:47:17 +01:00
<button
2019-04-02 04:43:42 +02:00
type="submit"
class="primary"
appA11yTitle="{{ 'save' | i18n }}"
[disabled]="form.loading"
2021-12-20 15:47:17 +01:00
>
<i
class="bwi bwi-save-changes bwi-lg bwi-fw"
[hidden]="form.loading"
aria-hidden="true"
></i>
<i
class="bwi bwi-spinner bwi-spin bwi-lg bwi-fw"
2019-04-02 04:56:28 +02:00
[hidden]="!form.loading"
aria-hidden="true"
2021-12-20 15:47:17 +01:00
></i>
2018-01-30 05:19:55 +01:00
</button>
<button type="button" data-dismiss="modal">{{ "close" | i18n }}</button>
2021-12-20 15:47:17 +01:00
</div>
2018-02-01 03:56:47 +01:00
</form>
2018-01-30 05:19:55 +01:00
</div>
</div>