Changed order of events to match certificate
This commit is contained in:
parent
89a72c9fbc
commit
713f40783e
@ -22,14 +22,14 @@ pub fn Participants(
|
|||||||
<Show when=move || show_group>
|
<Show when=move || show_group>
|
||||||
<th>"Groep"</th>
|
<th>"Groep"</th>
|
||||||
</Show>
|
</Show>
|
||||||
<Show when=move || show_lifesaver>
|
<Show when=move || show_popduiken>
|
||||||
<th>"Lifesaver"</th>
|
<th>"Popduiken"</th>
|
||||||
</Show>
|
</Show>
|
||||||
<Show when=move || show_hindernis>
|
<Show when=move || show_hindernis>
|
||||||
<th>"Hindernis"</th>
|
<th>"Hindernis"</th>
|
||||||
</Show>
|
</Show>
|
||||||
<Show when=move || show_popduiken>
|
<Show when=move || show_lifesaver>
|
||||||
<th>"Popduiken"</th>
|
<th>"Lifesaver"</th>
|
||||||
</Show>
|
</Show>
|
||||||
</tr>
|
</tr>
|
||||||
<For
|
<For
|
||||||
@ -44,20 +44,26 @@ pub fn Participants(
|
|||||||
</Show>
|
</Show>
|
||||||
{ move || match child.value.get().events {
|
{ move || match child.value.get().events {
|
||||||
Some(events) => view! {
|
Some(events) => view! {
|
||||||
<Show when=move || show_lifesaver>
|
<Show when=move || show_popduiken>
|
||||||
<td>{ Time::from_milliseconds_to_string(events.lifesaver.unwrap_or(0)) }</td>
|
<td>{ Time::from_milliseconds_to_string(events.popduiken.unwrap_or(0)) }</td>
|
||||||
</Show>
|
</Show>
|
||||||
<Show when=move || show_hindernis>
|
<Show when=move || show_hindernis>
|
||||||
<td>{ Time::from_milliseconds_to_string(events.hindernis.unwrap_or(0)) }</td>
|
<td>{ Time::from_milliseconds_to_string(events.hindernis.unwrap_or(0)) }</td>
|
||||||
</Show>
|
</Show>
|
||||||
<Show when=move || show_popduiken>
|
<Show when=move || show_lifesaver>
|
||||||
<td>{ Time::from_milliseconds_to_string(events.popduiken.unwrap_or(0)) }</td>
|
<td>{ Time::from_milliseconds_to_string(events.lifesaver.unwrap_or(0)) }</td>
|
||||||
</Show>
|
</Show>
|
||||||
},
|
},
|
||||||
None => view! {
|
None => view! {
|
||||||
|
<Show when=move || show_popduiken>
|
||||||
<td>"0"</td>
|
<td>"0"</td>
|
||||||
|
</Show>
|
||||||
|
<Show when=move || show_hindernis>
|
||||||
<td>"0"</td>
|
<td>"0"</td>
|
||||||
|
</Show>
|
||||||
|
<Show when=move || show_lifesaver>
|
||||||
<td>"0"</td>
|
<td>"0"</td>
|
||||||
|
</Show>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -78,16 +78,16 @@ pub fn Groups() -> impl IntoView {
|
|||||||
<components::participants::Participants participants=total_score_participants.into() show_group=false />
|
<components::participants::Participants participants=total_score_participants.into() show_group=false />
|
||||||
<div class="events-container">
|
<div class="events-container">
|
||||||
<div>
|
<div>
|
||||||
<h3>"Lifesaver"</h3>
|
<h3>"Popduiken"</h3>
|
||||||
<components::participants::Participants participants=participants_lifesaver.into() show_group=false show_popduiken=false show_hindernis=false />
|
<components::participants::Participants participants=participants_popduiken.into() show_group=false show_hindernis=false show_lifesaver=false />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h3>"Hindernis"</h3>
|
<h3>"Hindernis"</h3>
|
||||||
<components::participants::Participants participants=participants_hindernis.into() show_group=false show_popduiken=false show_lifesaver=false />
|
<components::participants::Participants participants=participants_hindernis.into() show_group=false show_popduiken=false show_lifesaver=false />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h3>"Popduiken"</h3>
|
<h3>"Lifesaver"</h3>
|
||||||
<components::participants::Participants participants=participants_popduiken.into() show_group=false show_hindernis=false show_lifesaver=false />
|
<components::participants::Participants participants=participants_lifesaver.into() show_group=false show_popduiken=false show_hindernis=false />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user