]> source.dussan.org Git - archiva.git/blob
b7f07258c45dd1fd111948482f8ce7f650ced239
[archiva.git] /
1 <!--
2   ~ Licensed to the Apache Software Foundation (ASF) under one
3   ~ or more contributor license agreements.  See the NOTICE file
4   ~ distributed with this work for additional information
5   ~ regarding copyright ownership.  The ASF licenses this file
6   ~ to you under the Apache License, Version 2.0 (the
7   ~ "License"); you may not use this file except in compliance
8   ~ with the License.  You may obtain a copy of the License at
9   ~
10   ~ http://www.apache.org/licenses/LICENSE-2.0
11   ~ Unless required by applicable law or agreed to in writing,
12   ~ software distributed under the License is distributed on an
13   ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14   ~ KIND, either express or implied.  See the License for the
15   ~ specific language governing permissions and limitations
16   ~ under the License.
17   -->
18
19 <app-paginated-entities [service]="service" pageSize="10" [(sortField)]="sortField" [(sortOrder)]="sortOrder"
20                         #parent>
21     <ng-container *ngIf="parent.items$ |async as roleItemLoader" >
22         <ng-template [ngIf]="roleItemLoader.loading" #spinner let-modal>
23             <div class="fixed-top d-flex justify-content-center mt-5 pt-5">
24                 <div class="spinner-border text-info mt-5" role="status">
25                     <span class="sr-only">Loading...</span>
26                 </div>
27             </div>
28         </ng-template>
29     </ng-container>
30     <ng-container *ngIf="parent.items$ |stripLoading|async as propertyItem" >
31         <table class="table table-striped table-bordered">
32             <thead class="thead-light">
33             <tr sorted [sortFieldEmitter]="parent.sortFieldChange" [sortOrderEmitter]="parent.sortOrderChange"
34                 [toggleObserver]="parent">
35                 <app-th-sorted [fieldArray]="['key']" contentText="security.config.properties.attributes.key"></app-th-sorted>
36                 <app-th-sorted [fieldArray]="['value']" contentText="security.config.properties.attributes.value"></app-th-sorted>
37                 <th>{{'headers.action' |translate}}</th>
38             </tr>
39             </thead>
40             <tbody>
41             <tr *ngFor="let propertyEntry  of propertyItem.data" >
42                 <td>{{propertyEntry.key}}</td>
43                 <td *ngIf="isEdit(propertyEntry.key)"><input class="form-control" type="text" [(ngModel)]="propertyValue"></td>
44                 <td *ngIf="!isEdit(propertyEntry.key)">{{propertyEntry.value}}</td>
45                 <td>
46                     <a [routerLink]="" (click)="toggleEditProperty(propertyEntry)"
47                        [attr.title]="'security.config.properties.edit' |translate"><span class="fas fa-edit"></span></a>
48                 </td>
49             </tr>
50             </tbody>
51         </table>
52     </ng-container>
53
54 </app-paginated-entities>
55
56