Skip to content
Snippets Groups Projects
Commit e5ab3b1c authored by Pegane Nestor's avatar Pegane Nestor
Browse files

FEAT #7593 Flex on cells and headers

parent c3efa85e
No related branches found
No related tags found
No related merge requests found
...@@ -49,13 +49,13 @@ ...@@ -49,13 +49,13 @@
</div> </div>
<mat-table #table [dataSource]="dataSource" matSort matSortActive="label" matSortDirection="asc"> <mat-table #table [dataSource]="dataSource" matSort matSortActive="label" matSortDirection="asc">
<ng-container matColumnDef="label"> <ng-container matColumnDef="label">
<mat-header-cell *matHeaderCellDef mat-sort-header>{{lang.label}}</mat-header-cell> <mat-header-cell *matHeaderCellDef mat-sort-header style="flex:2;">{{lang.label}}</mat-header-cell>
<mat-cell *matCellDef="let element"> <mat-cell *matCellDef="let element" style="flex:2;">
<input type="color" value="{{element.color}}" style="background:none;border:none;width:45px;" disabled> {{element.label}} </mat-cell> <input type="color" value="{{element.color}}" style="background:none;border:none;width:45px;" disabled> {{element.label}} </mat-cell>
</ng-container> </ng-container>
<ng-container matColumnDef="delays"> <ng-container matColumnDef="delays">
<mat-header-cell *matHeaderCellDef mat-sort-header [class.hide-for-mobile]="mobileQuery.matches">{{lang.processDelayDay}}</mat-header-cell> <mat-header-cell *matHeaderCellDef mat-sort-header [class.hide-for-mobile]="mobileQuery.matches" style="flex:2;">{{lang.processDelayDay}}</mat-header-cell>
<mat-cell *matCellDef="let element" [class.hide-for-mobile]="mobileQuery.matches"> <mat-cell *matCellDef="let element" [class.hide-for-mobile]="mobileQuery.matches" style="flex:2;">
<span *ngIf="element.delays == null"> <span *ngIf="element.delays == null">
<i style="opacity:0.5">{{lang.processDelayDoctype}}</i> <i style="opacity:0.5">{{lang.processDelayDoctype}}</i>
</span> </span>
...@@ -65,8 +65,8 @@ ...@@ -65,8 +65,8 @@
</mat-cell> </mat-cell>
</ng-container> </ng-container>
<ng-container matColumnDef="working_days"> <ng-container matColumnDef="working_days">
<mat-header-cell *matHeaderCellDef mat-sort-header [class.hide-for-mobile]="mobileQuery.matches">{{lang.processType}}</mat-header-cell> <mat-header-cell *matHeaderCellDef mat-sort-header [class.hide-for-mobile]="mobileQuery.matches" style="flex:3;">{{lang.processType}}</mat-header-cell>
<mat-cell *matCellDef="let element" [class.hide-for-mobile]="mobileQuery.matches"> <mat-cell *matCellDef="let element" [class.hide-for-mobile]="mobileQuery.matches" style="flex:3;">
<span *ngIf="element.working_days"> <span *ngIf="element.working_days">
{{lang.workingDays}} {{lang.workingDays}}
</span> </span>
...@@ -76,8 +76,8 @@ ...@@ -76,8 +76,8 @@
</mat-cell> </mat-cell>
</ng-container> </ng-container>
<ng-container matColumnDef="default_priority"> <ng-container matColumnDef="default_priority">
<mat-header-cell *matHeaderCellDef mat-sort-header [class.hide-for-mobile]="mobileQuery.matches" >{{lang.defaultPriority}}</mat-header-cell> <mat-header-cell *matHeaderCellDef mat-sort-header [class.hide-for-mobile]="mobileQuery.matches" style="flex:1;">{{lang.defaultPriority}}</mat-header-cell>
<mat-cell *matCellDef="let element" [class.hide-for-mobile]="mobileQuery.matches"> <mat-cell *matCellDef="let element" [class.hide-for-mobile]="mobileQuery.matches" style="flex:1;">
<span *ngIf="element.default_priority" color="primary" class="fa fa-check fa-2x"></span> <span *ngIf="element.default_priority" color="primary" class="fa fa-check fa-2x"></span>
</mat-cell> </mat-cell>
</ng-container> </ng-container>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment