|
13 | 13 | </div>
|
14 | 14 | </div>
|
15 | 15 | {{#if showFiltersOnMobile}}
|
| 16 | + <div class="item"> |
| 17 | + {{#ui-accordion}} |
| 18 | + <span class="title"> |
| 19 | + <i class="dropdown icon"></i> |
| 20 | + {{t 'Date'}} |
| 21 | + </span> |
| 22 | + <div class="content menu"> |
| 23 | + {{#each dateRanges as |dateRange|}} |
| 24 | + <a href="#" class="link item {{if (eq dateType dateRange.key) 'active'}}" {{action 'selectDateFilter' |
| 25 | + dateRange.key}}> |
| 26 | + {{dateRange.name}} |
| 27 | + {{#if (and (eq dateRange.key 'custom_dates') (eq dateType 'custom_dates'))}} |
| 28 | + <div class="explore sub menu"> |
| 29 | + <div class="ui form"> |
| 30 | + <div class="grouped fields"> |
| 31 | + <div class="item field"> |
| 32 | + <label class="required" for="start_date">{{t 'Starts'}}</label> |
| 33 | + {{widgets/forms/date-picker type='text' |
| 34 | + value=customStartDate |
| 35 | + rangePosition='start' |
| 36 | + onChange=(action 'dateValidate') |
| 37 | + }} |
| 38 | + </div> |
| 39 | + <div class="item field"> |
| 40 | + <label class="required" for="end_date">{{t 'Ends'}}</label> |
| 41 | + {{widgets/forms/date-picker type='text' |
| 42 | + value=customEndDate |
| 43 | + rangePosition='end' |
| 44 | + onChange=(action 'onDateChange') |
| 45 | + }} |
| 46 | + </div> |
| 47 | + </div> |
| 48 | + </div> |
| 49 | + </div> |
| 50 | + {{/if}} |
| 51 | + </a> |
| 52 | + {{/each}} |
| 53 | + </div> |
| 54 | + {{/ui-accordion}} |
| 55 | + </div> |
16 | 56 | <div class="item">
|
17 | 57 | {{#ui-accordion}}
|
18 | 58 | <span class="title">
|
19 | 59 | <i class="right floated dropdown icon"></i>
|
20 | 60 | {{t 'Categories'}}
|
21 | 61 | </span>
|
22 | 62 | <div class="content menu">
|
| 63 | + <a href="#" class="link item {{if showAllCategories 'active'}}" {{action 'clearFilterCategory'}}> |
| 64 | + <i class="caret right icon"></i> |
| 65 | + {{t 'All Categories'}} |
| 66 | + </a> |
23 | 67 | {{#each model.eventTopics as |Category| }}
|
24 | 68 | <a href="#"
|
25 | 69 | class="link item {{if (eq category Category.name) 'active'}}" {{action 'selectCategory' Category.name}}>
|
|
46 | 90 | {{t 'Event Type' }}
|
47 | 91 | </span>
|
48 | 92 | <div class="content menu">
|
| 93 | + <a href="#" class="link item {{if showAllTypes 'active'}}" {{action 'clearFilterTypes'}}> |
| 94 | + {{t 'All Types'}} |
| 95 | + </a> |
49 | 96 | {{#each model.eventTypes as |eventType|}}
|
50 | 97 | <a href="#"
|
51 | 98 | class="link item {{if (eq event_type eventType.name) 'active'}}"
|
|
56 | 103 | </div>
|
57 | 104 | {{/ui-accordion}}
|
58 | 105 | </div>
|
59 |
| - <div class="item"> |
60 |
| - {{#ui-accordion}} |
61 |
| - <span class="title"> |
62 |
| - <i class="dropdown icon"></i> |
63 |
| - {{t 'Date'}} |
64 |
| - </span> |
65 |
| - <div class="content menu"> |
66 |
| - {{#each dateRanges as |dateRange|}} |
67 |
| - <a href="#" class="link item {{if (eq dateType dateRange.key) 'active'}}" {{action 'selectDateFilter' |
68 |
| - dateRange.key}}> |
69 |
| - {{dateRange.name}} |
70 |
| - {{#if (and (eq dateRange.key 'custom_dates') (eq dateType 'custom_dates'))}} |
71 |
| - <div class="explore sub menu"> |
72 |
| - <div class="ui form"> |
73 |
| - <div class="grouped fields"> |
74 |
| - <div class="item field"> |
75 |
| - <label class="required" for="start_date">{{t 'Starts'}}</label> |
76 |
| - {{widgets/forms/date-picker type='text' |
77 |
| - value=customStartDate |
78 |
| - rangePosition='start' |
79 |
| - onChange=(action 'dateValidate') |
80 |
| - }} |
81 |
| - </div> |
82 |
| - <div class="item field"> |
83 |
| - <label class="required" for="end_date">{{t 'Ends'}}</label> |
84 |
| - {{widgets/forms/date-picker type='text' |
85 |
| - value=customEndDate |
86 |
| - rangePosition='end' |
87 |
| - onChange=(action 'onDateChange') |
88 |
| - }} |
89 |
| - </div> |
90 |
| - </div> |
91 |
| - </div> |
92 |
| - </div> |
93 |
| - {{/if}} |
94 |
| - </a> |
95 |
| - {{/each}} |
96 |
| - </div> |
97 |
| - {{/ui-accordion}} |
98 |
| - </div> |
99 | 106 | <div class="item">
|
100 | 107 | {{#ui-accordion}}
|
101 | 108 | <span class="title">
|
|
0 commit comments