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
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
19 <app-paginated-entities [service]="service" pageSize="10" [(sortField)]="sortField" [(sortOrder)]="sortOrder"
22 <table class="table table-striped table-bordered">
23 <thead class="thead-light">
24 <tr sorted [sortFieldEmitter]="parent.sortFieldChange" [sortOrderEmitter]="parent.sortOrderChange"
25 [toggleObserver]="parent">
26 <app-th-sorted [fieldArray]="['id']" contentText="roles.attributes.id"></app-th-sorted>
27 <app-th-sorted [fieldArray]="['name']" contentText="roles.attributes.name" ></app-th-sorted>
28 <app-th-sorted [fieldArray]="['description']" contentText="roles.attributes.description" ></app-th-sorted>
29 <app-th-sorted [fieldArray]="['template_instance']" contentText="roles.attributes.template_instance" ></app-th-sorted>
30 <app-th-sorted [fieldArray]="['resource']" contentText="roles.attributes.resource" ></app-th-sorted>
35 <tr *ngFor="let role of parent.items$ | async" [ngClass]="(role.permanent)?'table-secondary':''">
36 <td><span data-toggle="tooltip" placement="left" ngbTooltip="{{role.id}}">{{role.id}}</span></td>
37 <td>{{role.name}}</td>
38 <td>{{role.description}}</td>
39 <td><span class="far" [attr.aria-valuetext]="role.template_instance"
40 [ngClass]="role.template_instance?'fa-check-circle':'fa-circle'"></span></td>
41 <td>{{role.resource}}</td>
43 <a [routerLink]="['..','edit', role.id]" [queryParams]="{editmode:true}" [attr.title]="'roles.edit.head' |translate"><span class="fas fa-edit"></span></a>
50 </app-paginated-entities>