]> source.dussan.org Git - archiva.git/blob
6cc327424abafc030ffd77342738bd42f1e5c074
[archiva.git] /
1 <h3>Roles</h3>
2 <table class="table">
3     <thead class="thead-light">
4     <tr class="d-flex">
5         <th class="col-3">Role</th>
6         <th class="col-2">Scope</th>
7         <th class="col-1">Assign</th>
8     </tr>
9     </thead>
10     <tbody>
11     <tr *ngFor="let baseRole of baseRoles" class="d-flex">
12         <td class="col-3" [innerHTML]="getRoleContent(baseRole)"></td>
13         <td class="col-2">
14             {{baseRole.application_id}}
15         </td>
16         <td class="col-1">
17             <div class="form-check form-check-inline"><input class="form-check-input" type="checkbox"
18                                                              [attr.disabled]="baseRole.enabled?null:true"
19                                                              [attr.id]="baseRole.id"
20                                                              [(ngModel)]="baseRole.assigned"
21                                                              (change)="changeBaseAssignment(baseRole, $event)"
22             >
23             </div>
24         </td>
25     </tr>
26     </tbody>
27 </table>
28
29
30 <h3>Repository Roles</h3>
31 <table class="table">
32     <thead class="thead-light">
33     <tr class="d-flex">
34         <th scope="row" class="col-1">Repository</th>
35         <th scope="col" class="col-1" *ngFor="let templateRole of templateRoles$ | async">{{templateRole.name}}</th>
36     </tr>
37     </thead>
38     <tbody>
39     <tr class="d-flex" *ngFor="let res of templateRoleInstances | keyvalue" >
40         <td class="table-secondary col-1">{{res.key}}</td>
41         <td class="col-1 text-center" *ngFor="let templateRole of templateRoles$ | async">
42             <div class="form-check form-check-inline" *ngIf="getInstanceContent(templateRole, res.value) as role">
43                 <input class="form-check-input" type="checkbox" [attr.id]="role.id"
44                        [(ngModel)]="role.assigned" (ngModelChange)="changeInstAssignment(role, $event)"/>
45             </div>
46         </td>
47     </tr>
48     </tbody>
49
50 </table>