|
|
|
@ -67,6 +67,7 @@ fn time_selector(
|
|
|
|
|
}).collect::<Vec<_>>().into_iter().flatten().collect::<Vec<_>>();
|
|
|
|
|
|
|
|
|
|
let prop_id = property.id();
|
|
|
|
|
let closed = checks.is_empty();
|
|
|
|
|
view! {
|
|
|
|
|
<For each=move || checks.clone() key=|c| c.from.minute() let:data>
|
|
|
|
|
<input type="checkbox"
|
|
|
|
@ -87,6 +88,9 @@ fn time_selector(
|
|
|
|
|
}/>
|
|
|
|
|
<label class="btn btn-outline-primary" for={data.from.to_string() + &property.name.clone()}>{data.from.format("%H:%M").to_string()}</label>
|
|
|
|
|
</For>
|
|
|
|
|
<Show when=move || closed>
|
|
|
|
|
<div class="fs-3">{trl("Closed")}</div>
|
|
|
|
|
</Show>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|