|
1 | | -<ds-alert *ngIf="description" [content]="description" [type]="'alert-info'"></ds-alert> |
2 | | -<div class="treeview-header row mb-1"> |
3 | | - <div class="col-12"> |
| 1 | +<ds-alert *ngIf="description" [content]="description" [type]="AlertType.Info"></ds-alert> |
| 2 | +<div class="treeview-header row"> |
| 3 | + <div class="col-12 d-flex"> |
4 | 4 | <div class="input-group"> |
5 | | - <input type="text" class="form-control" [(ngModel)]="searchText" (keyup.enter)="search()" |
6 | | - [placeholder]="'vocabulary-treeview.search.form.search-placeholder' | translate"> |
| 5 | + <input type="text" class="form-control" [(ngModel)]="searchText" (keyup.enter)="search()"> |
7 | 6 | <div class="input-group-append" id="button-addon4"> |
8 | | - <button class="btn btn-outline-primary" type="button" (click)="search()" [disabled]="!isSearchEnabled()"> |
9 | | - {{'vocabulary-treeview.search.form.search' | translate}} |
10 | | - </button> |
11 | | - <button class="btn btn-outline-secondary" type="button" (click)="reset()"> |
12 | | - {{'vocabulary-treeview.search.form.reset' | translate}} |
13 | | - </button> |
14 | | - <button class="btn btn-outline-primary" type="button" (click)="add()" [disabled]="this.vocabularyOptions.closed"> |
15 | | - {{'vocabulary-treeview.search.form.add' | translate}} |
| 7 | + <button class="btn btn-primary" type="button" (click)="search()" [disabled]="!isSearchEnabled()"> |
| 8 | + <span><i class="fas fa-search"></i> {{'vocabulary-treeview.search.form.search' | translate}}</span> |
16 | 9 | </button> |
17 | 10 | </div> |
18 | 11 | </div> |
| 12 | + <button class="btn btn-secondary ml-3 flex-shrink-0" type="button" (click)="reset()"> |
| 13 | + <span><i class="fas fa-eraser"></i> {{'vocabulary-treeview.search.form.reset' | translate}}</span> |
| 14 | + </button> |
| 15 | + <button *ngIf="showAdd && !this.vocabularyOptions.closed" class="btn btn-secondary ml-3 flex-shrink-0" type="button" (click)="add()"> |
| 16 | + <span><i class="fas fa-plus"></i> {{'vocabulary-treeview.search.form.add' | translate}}</span> |
| 17 | + </button> |
19 | 18 | </div> |
20 | 19 | </div> |
21 | 20 | <div class="treeview-container"> |
@@ -59,7 +58,7 @@ <h2 *ngIf="!(loading | async) && dataSource.data.length === 0" class="h4 text-ce |
59 | 58 | <button type="button" class="btn btn-default px-2 mr-1" cdkTreeNodeToggle |
60 | 59 | [attr.aria-label]="'toggle ' + node.name" |
61 | 60 | (click)="loadChildren(node)"> |
62 | | - <i class="fas fa-fw {{treeControl.isExpanded(node) ? 'fa-angle-down' : 'fa-angle-right'}}"></i> |
| 61 | + <span class="fas fa-fw {{treeControl.isExpanded(node) ? 'fa-angle-down' : 'fa-angle-right'}}"></span> |
63 | 62 | </button> |
64 | 63 |
|
65 | 64 | <label *ngIf="multiSelect" class="d-flex align-items-center m-0 p-0 form-check" |
|
0 commit comments