2021-01-11 12:22:35 -08:00
< div class = "btn-group w-100" ngbDropdown role = "group" >
< button class = "btn btn-sm flex-fill" id = "dropdown{{title}}" ngbDropdownToggle [ ngClass ] = " dateBefore | | dateAfter ? ' btn-primary ' : ' btn-outline-primary ' " >
2020-12-13 11:20:28 -08:00
{{title}}
< / button >
2020-12-18 16:03:52 -08:00
< div class = "dropdown-menu date-dropdown shadow pt-0" ngbDropdownMenu attr . aria-labelledby = "dropdown{{title}}" >
2020-12-11 01:03:05 -08:00
< div class = "list-group list-group-flush" >
2020-12-18 14:55:21 -08:00
< button * ngFor = "let qf of quickFilters" class = "list-group-item small list-goup list-group-item-action d-flex p-2 pl-3" role = "menuitem" ( click ) = " setDateQuickFilter ( qf . id ) " >
{{qf.name}}
2020-12-13 14:11:43 -08:00
< / button >
2020-12-11 01:03:05 -08:00
< div class = "list-group-item d-flex flex-column align-items-start" role = "menuitem" >
2020-12-18 14:55:21 -08:00
< div class = "mb-2 d-flex flex-row w-100 justify-content-between small" >
2020-12-28 15:39:53 +01:00
< div i18n > After< / div >
2020-12-18 14:55:21 -08:00
< a * ngIf = "dateAfter" class = "btn btn-link p-0 m-0" ( click ) = " clearAfter ( ) " >
< svg width = "0.8em" height = "0.8em" viewBox = "0 0 16 16" class = "bi bi-x" fill = "currentColor" xmlns = "http://www.w3.org/2000/svg" >
< path fill-rule = "evenodd" d = "M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z" / >
< / svg >
2020-12-28 15:39:53 +01:00
< small i18n > Clear< / small >
2020-12-18 14:55:21 -08:00
< / a >
< / div >
2020-12-11 01:03:05 -08:00
< div class = "input-group input-group-sm" >
2020-12-18 14:55:21 -08:00
< input type = "date" class = "form-control" id = "date_after" [ ( ngModel ) ] = " dateAfter " ( change ) = " onChangeDebounce ( ) " >
2020-12-11 01:03:05 -08:00
< / div >
< / div >
< div class = "list-group-item d-flex flex-column align-items-start" role = "menuitem" >
2020-12-18 14:55:21 -08:00
< div class = "mb-2 d-flex flex-row w-100 justify-content-between small" >
2020-12-28 15:39:53 +01:00
< div i18n > Before< / div >
2020-12-18 14:55:21 -08:00
< a * ngIf = "dateBefore" class = "btn btn-link p-0 m-0" ( click ) = " clearBefore ( ) " >
< svg width = "0.8em" height = "0.8em" viewBox = "0 0 16 16" class = "bi bi-x" fill = "currentColor" xmlns = "http://www.w3.org/2000/svg" >
< path fill-rule = "evenodd" d = "M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z" / >
< / svg >
2020-12-28 15:39:53 +01:00
< small i18n > Clear< / small >
2020-12-18 14:55:21 -08:00
< / a >
< / div >
2020-12-13 15:38:28 -08:00
< div class = "input-group input-group-sm" >
2020-12-18 14:55:21 -08:00
< input type = "date" class = "form-control" id = "date_before" [ ( ngModel ) ] = " dateBefore " ( change ) = " onChangeDebounce ( ) " >
2020-12-11 01:03:05 -08:00
< / div >
< / div >
< / div >
< / div >
< / div >