UI: Implement toggle-bars to My conference filters #103981
@ -169,9 +169,9 @@ function scheduleFilterUpdateFilterStatus(event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (($(event).find(".favorite-star[data-is-checked]").length === 0 &&
|
if (($(event).find(".favorite-star[data-is-checked]").length === 0 &&
|
||||||
$(".schedule-filter[data-schedule-filter-type=favorites] > input:checkbox:checked").length) ||
|
$(".schedule-filter[data-schedule-filter-type=favorites] input:checkbox:checked").length) ||
|
||||||
($(event).find(".going-star[data-is-checked]").length === 0 &&
|
($(event).find(".going-star[data-is-checked]").length === 0 &&
|
||||||
$(".schedule-filter[data-schedule-filter-type=going] > input:checkbox:checked").length)) {
|
$(".schedule-filter[data-schedule-filter-type=going] input:checkbox:checked").length)) {
|
||||||
$(event).attr("data-filtered-personal", "data-filtered-personal");
|
$(event).attr("data-filtered-personal", "data-filtered-personal");
|
||||||
} else {
|
} else {
|
||||||
$(event).attr("data-filtered-personal", null);
|
$(event).attr("data-filtered-personal", null);
|
||||||
|
@ -294,3 +294,13 @@ button.going-star
|
|||||||
td
|
td
|
||||||
padding-left: var(--spacer) !important
|
padding-left: var(--spacer) !important
|
||||||
padding-right: var(--spacer) !important
|
padding-right: var(--spacer) !important
|
||||||
|
|
||||||
|
// TODO: @web-assets check toggle-bar sizing
|
||||||
|
.toggle-bar
|
||||||
|
max-width: 3.2rem
|
||||||
|
width: 3.2rem !important
|
||||||
|
|
||||||
|
.toggle-bar-container
|
||||||
|
align-items: center
|
||||||
|
display: flex
|
||||||
|
height: calc(var(--spacer) * 2.5)
|
@ -101,26 +101,30 @@
|
|||||||
.schedule-filter.filter-going(
|
.schedule-filter.filter-going(
|
||||||
data-schedule-filter-type="going",
|
data-schedule-filter-type="going",
|
||||||
data-schedule-filter-value="only-show-going")
|
data-schedule-filter-value="only-show-going")
|
||||||
|
|
||||||
|
.toggle-bar-container
|
||||||
|
label.me-2.toggle-bar(for="filter-going-only-show-going")
|
||||||
input(type="checkbox",
|
input(type="checkbox",
|
||||||
id="filter-going-only-show-going",
|
id="filter-going-only-show-going",
|
||||||
checked=false,
|
checked=false,
|
||||||
onchange="scheduleFilterToggle(event)",
|
onchange="scheduleFilterToggle(event)",
|
||||||
autocomplete="off")
|
autocomplete="off")
|
||||||
label.btn.filter-going(for="filter-going-only-show-going")
|
span.slider
|
||||||
i.i-user-check
|
div Going
|
||||||
span My Agenda
|
|
||||||
| {% else %}
|
| {% else %}
|
||||||
.schedule-filter.filter-favorite(
|
.schedule-filter.filter-favorite(
|
||||||
data-schedule-filter-type="favorites",
|
data-schedule-filter-type="favorites",
|
||||||
data-schedule-filter-value="only-show-favorites")
|
data-schedule-filter-value="only-show-favorites")
|
||||||
|
|
||||||
|
.toggle-bar-container
|
||||||
|
label.me-2.toggle-bar(for="filter-favorites-only-show-favorites")
|
||||||
input(type="checkbox",
|
input(type="checkbox",
|
||||||
id="filter-favorites-only-show-favorites",
|
id="filter-favorites-only-show-favorites",
|
||||||
checked=false,
|
checked=false,
|
||||||
onchange="scheduleFilterToggle(event)",
|
onchange="scheduleFilterToggle(event)",
|
||||||
autocomplete="off")
|
autocomplete="off")
|
||||||
label.btn.filter-favorite(for="filter-favorites-only-show-favorites")
|
span.slider
|
||||||
i.i-heart
|
div Favorites
|
||||||
span Favorites
|
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
| {% else %}
|
| {% else %}
|
||||||
.schedule-filters
|
.schedule-filters
|
||||||
|
Loading…
Reference in New Issue
Block a user