|
1 | 1 | <div class="item-metadata" *ngIf="form"> |
2 | 2 | <div class="button-row top d-flex my-2 space-children-mr ml-gap"> |
3 | 3 | <button class="mr-auto btn btn-success" id="dso-add-btn" [disabled]="form.newValue || (saving$ | async)" |
| 4 | + [attr.aria-label]="dsoType + '.edit.metadata.add-button' | translate" |
4 | 5 | [title]="dsoType + '.edit.metadata.add-button' | translate" |
5 | 6 | (click)="add()"><i class="fas fa-plus" aria-hidden="true"></i> |
6 | 7 | <span class="d-none d-sm-inline"> {{ dsoType + '.edit.metadata.add-button' | translate }}</span> |
7 | 8 | </button> |
8 | 9 | <button class="btn btn-warning ml-1" id="dso-reinstate-btn" *ngIf="isReinstatable" [disabled]="(saving$ | async)" |
| 10 | + [attr.aria-label]="dsoType + '.edit.metadata.reinstate-button' | translate" |
9 | 11 | [title]="dsoType + '.edit.metadata.reinstate-button' | translate" |
10 | 12 | (click)="reinstate()"><i class="fas fa-undo-alt" aria-hidden="true"></i> |
11 | 13 | <span class="d-none d-sm-inline"> {{ dsoType + '.edit.metadata.reinstate-button' | translate }}</span> |
12 | 14 | </button> |
13 | 15 | <button class="btn btn-primary ml-1" id="dso-save-btn" [disabled]="!hasChanges || (saving$ | async)" |
| 16 | + [attr.aria-label]="dsoType + '.edit.metadata.save-button' | translate" |
14 | 17 | [title]="dsoType + '.edit.metadata.save-button' | translate" |
15 | 18 | (click)="submit()"><i class="fas fa-save" aria-hidden="true"></i> |
16 | 19 | <span class="d-none d-sm-inline"> {{ dsoType + '.edit.metadata.save-button' | translate }}</span> |
17 | 20 | </button> |
18 | 21 | <button class="btn btn-danger ml-1" id="dso-discard-btn" *ngIf="!isReinstatable" |
| 22 | + [attr.aria-label]="dsoType + '.edit.metadata.discard-button' | translate" |
19 | 23 | [title]="dsoType + '.edit.metadata.discard-button' | translate" |
20 | 24 | [disabled]="!hasChanges || (saving$ | async)" |
21 | 25 | (click)="discard()"><i class="fas fa-times" aria-hidden="true"></i> |
|
74 | 78 | <div class="button-row bottom d-inline-block w-100"> |
75 | 79 | <div class="mt-2 float-right space-children-mr ml-gap"> |
76 | 80 | <button class="btn btn-warning" *ngIf="isReinstatable" [disabled]="(saving$ | async)" |
| 81 | + [attr.aria-label]="dsoType + '.edit.metadata.reinstate-button' | translate" |
77 | 82 | [title]="dsoType + '.edit.metadata.reinstate-button' | translate" |
78 | 83 | (click)="reinstate()"> |
79 | 84 | <i class="fas fa-undo-alt" aria-hidden="true"></i> {{ dsoType + '.edit.metadata.reinstate-button' | translate }} |
80 | 85 | </button> |
81 | 86 | <button class="btn btn-primary" [disabled]="!hasChanges || (saving$ | async)" |
| 87 | + [attr.aria-label]="dsoType + '.edit.metadata.save-button' | translate" |
82 | 88 | [title]="dsoType + '.edit.metadata.save-button' | translate" |
83 | 89 | (click)="submit()"> |
84 | 90 | <i class="fas fa-save" aria-hidden="true"></i> {{ dsoType + '.edit.metadata.save-button' | translate }} |
85 | 91 | </button> |
86 | 92 | <button class="btn btn-danger" *ngIf="!isReinstatable" |
| 93 | + [attr.aria-label]="dsoType + '.edit.metadata.discard-button' | translate" |
87 | 94 | [title]="dsoType + '.edit.metadata.discard-button' | translate" |
88 | 95 | [disabled]="!hasChanges || (saving$ | async)" |
89 | 96 | (click)="discard()"> |
|
0 commit comments