Newer
Older
<mat-sidenav-container autosize class="maarch-container">

Alex ORLUC
committed
<ng-template #adminMenuTemplate>
<h3 mat-subheader>{{'lang.actions' | translate}}</h3>
<a mat-list-item routerLink="/administration/groups/new">
<mat-icon color="primary" mat-list-icon class="fa fa-plus"></mat-icon>
<p mat-line>
</p>
</a>
</mat-nav-list>

Alex ORLUC
committed
</ng-template>
<mat-sidenav-content>
<div class="bg-head">
<div class="bg-head-title" [class.customContainerRight]="appService.getViewMode()">
<div class="bg-head-title-label">

Alex ORLUC
committed
<header-left></header-left>
</div>
<div class="bg-head-title-tool">
<header-right></header-right>
</div>
<div class="bg-head-content" [class.fullContainer]="appService.getViewMode()">
</div>
</div>
<div class="container" [class.fullContainer]="appService.getViewMode()">
<div class="container-content">
<div *ngIf="loading" style="display:flex;height:100%;">
<mat-spinner style="margin:auto;"></mat-spinner>
<mat-card *ngIf="!loading" class="card-app-content">
<div class="row" style="margin:0px;">
<div class="col-md-6 col-xs-6">
<mat-form-field>

Florian Azizian
committed
<input matInput [formControl]="adminService.getFilterField()" placeholder="{{'lang.filterBy' | translate}}">
<mat-icon *ngIf="adminService.searchTerm.value !== ''" matSuffix class="fas fa-times" [title]="'lang.clearFilter' | translate" style="font-size: 15px; cursor: pointer;"
color="primary" (click)="adminService.searchTerm.setValue('')"></mat-icon>
</mat-form-field>
</div>
<div class="col-md-6 col-xs-6">
<mat-paginator #paginator [length]="100" [hidePageSize]="true" [pageSize]="10">
</mat-paginator>
</div>
</div>
<mat-table #table [dataSource]="adminService.getDataSource()" matSortDisableClear matSort>
<ng-container matColumnDef="group_id">

Alex ORLUC
committed
<mat-header-cell *matHeaderCellDef mat-sort-header
[class.hide-for-mobile]="appService.getViewMode()">{{'lang.id' | translate}}</mat-header-cell>
<mat-cell *matCellDef="let element" [class.hide-for-mobile]="appService.getViewMode()">
{{element.group_id}} </mat-cell>
</ng-container>
<ng-container matColumnDef="group_desc">
<mat-header-cell *matHeaderCellDef mat-sort-header style="flex:2;">{{'lang.description' | translate}}

Alex ORLUC
committed
</mat-header-cell>
<mat-cell *matCellDef="let element" style="flex:2;">
{{element.group_desc}} </mat-cell>
</ng-container>
<ng-container matColumnDef="actions">
<mat-header-cell *matHeaderCellDef style="flex:1;"></mat-header-cell>
<mat-cell *matCellDef="let element" style="justify-content: flex-end;flex:1;">
<button mat-icon-button color="warn" matTooltip="{{'lang.delete' | translate}}"

Alex ORLUC
committed
(click)="$event.stopPropagation();preDelete(element)">
<mat-icon class="fa fa-trash-alt fa-2x" aria-hidden="true"></mat-icon>
</button>
</mat-cell>
</ng-container>
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>

Alex ORLUC
committed
<mat-row *matRowDef="let row; columns: displayedColumns;"
routerLink="/administration/groups/{{row.id}}" style="cursor:pointer;"
matTooltip="{{'lang.view' | translate}}"></mat-row>

Alex ORLUC
committed
<div class="mat-paginator"
style="min-height:48px;display: flex;justify-content: end;align-items: center;padding-right: 20px;">
{{groups.length}} {{'lang.groups' | translate}}</div>
</mat-card>
</div>
</div>
</mat-sidenav-content>

Alex ORLUC
committed
</mat-sidenav-container>