-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TSK-1276 Replaced checkboxes with radiobuttons in workbasket filter
- Loading branch information
1 parent
89641ec
commit 5416de4
Showing
9 changed files
with
64 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,4 +118,4 @@ | |
"prefix": "app" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,37 @@ | ||
<div class="dropdown"> | ||
<button class="btn btn-default" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> | ||
<span class="material-icons md-20 blue {{sort.sortDirection === 'asc'? '' : 'flip' }}" data-toggle="tooltip" | ||
title="{{sort.sortDirection === 'asc'? 'A-Z' : 'Z-A' }}">sort</span> | ||
</button> | ||
<div class="dropdown-menu dropdown-menu-{{menuPosition}} sortby-dropdown popup" aria-labelledby="sortingDropdown"> | ||
<div> | ||
<div class="col-xs-6"> | ||
<h5>Sort By</h5> | ||
</div> | ||
<div class="btn-group"> | ||
<button id="sort-by-direction-asc" type="button" (click)="changeOrder('asc')" data-toggle="tooltip" | ||
title="A-Z" class="btn btn-default {{sort.sortDirection === 'asc'? 'selected' : '' }}"> | ||
<span class="material-icons md-20 blue ">sort</span> | ||
</button> | ||
<button id="sort-by-direction-desc" type="button" (click)="changeOrder('desc')" data-toggle="tooltip" | ||
title="Z-A" class="btn btn-default {{sort.sortDirection === 'desc'? 'selected' : '' }}"> | ||
<span class="material-icons md-20 blue flip">sort</span> | ||
</button> | ||
</div> | ||
</div> | ||
<div role="separator" class="divider"></div> | ||
<ul> | ||
<li id="sort-by-{{sortingField.key}}" (click)="changeSortBy(sortingField.key)" *ngFor="let sortingField of sortingFields | mapValues"> | ||
<a> | ||
<label> | ||
<span class="material-icons md-20 blue ">{{sort.sortBy === sortingField.key? | ||
'check_box': 'check_box_outline_blank'}} </span> | ||
<span> {{sortingField.value}} </span> | ||
</label> | ||
</a> | ||
</li> | ||
</ul> | ||
<button class="btn btn-default" type="button" data-toggle="dropdown" aria-haspopup="true" | ||
aria-expanded="true"> | ||
<span class="material-icons md-20 blue {{sort.sortDirection === 'asc'? '' : 'flip' }}" | ||
data-toggle="tooltip" | ||
title="{{sort.sortDirection === 'asc'? 'A-Z' : 'Z-A' }}">sort</span> | ||
</button> | ||
<div class="dropdown-menu dropdown-menu-{{menuPosition}} sortby-dropdown popup" | ||
aria-labelledby="sortingDropdown"> | ||
<div> | ||
<div class="col-xs-6"> | ||
<h5>Sort By</h5> | ||
</div> | ||
<div class="btn-group"> | ||
<button id="sort-by-direction-asc" type="button" (click)="changeOrder('asc')" | ||
data-toggle="tooltip" | ||
title="A-Z" | ||
class="btn btn-default {{sort.sortDirection === 'asc'? 'selected' : '' }}"> | ||
<span class="material-icons md-20 blue ">sort</span> | ||
</button> | ||
<button id="sort-by-direction-desc" type="button" (click)="changeOrder('desc')" | ||
data-toggle="tooltip" | ||
title="Z-A" | ||
class="btn btn-default {{sort.sortDirection === 'desc'? 'selected' : '' }}"> | ||
<span class="material-icons md-20 blue flip">sort</span> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
<div role="separator" class="divider"></div> | ||
<mat-radio-group name="sort" color="accent" class="radio-group"> | ||
<mat-radio-button *ngFor="let sortingField of sortingFields | mapValues" | ||
name="sort" id="sort-by-{{sortingField.key}}" [checked]="sortingField.key === defaultSortBy" | ||
(change)="changeSortBy(sortingField.key)" [value]="sortingField.value"> {{ sortingField.value }}</mat-radio-button> | ||
<!--TODO make sortingby the default checked and change theme colors to use taskana colors--> | ||
</mat-radio-group> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters