1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-06 09:20:43 +01:00

add thead for entity users

This commit is contained in:
Kyle Spearrin 2018-10-17 23:04:39 -04:00
parent 6b09210a80
commit 7ab132bbf6

View File

@ -18,6 +18,16 @@
{{'noUsersInList' | i18n}} {{'noUsersInList' | i18n}}
</ng-container> </ng-container>
<table class="table table-hover table-list mb-0" *ngIf="users && users.length"> <table class="table table-hover table-list mb-0" *ngIf="users && users.length">
<thead>
<tr>
<th>&nbsp;</th>
<th>&nbsp;</th>
<th>{{'name' | i18n}}</th>
<th *ngIf="entity === 'collection'">&nbsp;</th>
<th>{{'userType' | i18n}}</th>
<th width="100" class="text-center" *ngIf="entity === 'collection'">{{'readOnly' | i18n}}</th>
</tr>
</thead>
<tbody> <tbody>
<tr *ngFor="let u of users; let i = index"> <tr *ngFor="let u of users; let i = index">
<td class="table-list-checkbox" (click)="check(u)"> <td class="table-list-checkbox" (click)="check(u)">
@ -30,13 +40,14 @@
</td> </td>
<td> <td>
{{u.email}} {{u.email}}
<span class="badge badge-secondary" *ngIf="u.status === organizationUserStatusType.Invited">{{'invited' | i18n}}</span> <span class="badge badge-secondary" *ngIf="u.status === organizationUserStatusType.Invited">{{'invited'
<span class="badge badge-warning" *ngIf="u.status === organizationUserStatusType.Accepted">{{'accepted' | i18n}}</span> | i18n}}</span>
<span class="badge badge-warning" *ngIf="u.status === organizationUserStatusType.Accepted">{{'accepted'
| i18n}}</span>
<small class="text-muted d-block" *ngIf="u.name">{{u.name}}</small> <small class="text-muted d-block" *ngIf="u.name">{{u.name}}</small>
</td> </td>
<td *ngIf="entity === 'collection'"> <td *ngIf="entity === 'collection'">
<i class="fa fa-th" *ngIf="u.accessAll" title="{{'userAccessAllItems' | i18n}}"></i> <i class="fa fa-th" *ngIf="u.accessAll" title="{{'userAccessAllItems' | i18n}}"></i>
<i class="fa fa-eye" *ngIf="u.readOnly" title="{{'readOnly' | i18n}}"></i>
</td> </td>
<td> <td>
<span *ngIf="u.type === organizationUserType.Owner">{{'owner' | i18n}}</span> <span *ngIf="u.type === organizationUserType.Owner">{{'owner' | i18n}}</span>
@ -44,6 +55,9 @@
<span *ngIf="u.type === organizationUserType.Manager">{{'manager' | i18n}}</span> <span *ngIf="u.type === organizationUserType.Manager">{{'manager' | i18n}}</span>
<span *ngIf="u.type === organizationUserType.User">{{'user' | i18n}}</span> <span *ngIf="u.type === organizationUserType.User">{{'user' | i18n}}</span>
</td> </td>
<td class="text-center" *ngIf="entity === 'collection'">
<input type="checkbox" [(ngModel)]="u.readOnly" name="Users[{{i}}].ReadOnly" [disabled]="u.accessAll || !u.checked">
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>