remove log from page
This commit is contained in:
parent
e30dae68ad
commit
e49279afef
@ -47,7 +47,6 @@ async fn index(
|
|||||||
let distances = Logbook::distances(db).await;
|
let distances = Logbook::distances(db).await;
|
||||||
|
|
||||||
let on_water = Logbook::on_water(db).await;
|
let on_water = Logbook::on_water(db).await;
|
||||||
let completed = Logbook::completed(db).await;
|
|
||||||
|
|
||||||
let mut context = Context::new();
|
let mut context = Context::new();
|
||||||
if let Some(msg) = flash {
|
if let Some(msg) = flash {
|
||||||
@ -60,7 +59,6 @@ async fn index(
|
|||||||
context.insert("logtypes", &logtypes);
|
context.insert("logtypes", &logtypes);
|
||||||
context.insert("loggedin_user", &adminuser.user);
|
context.insert("loggedin_user", &adminuser.user);
|
||||||
context.insert("on_water", &on_water);
|
context.insert("on_water", &on_water);
|
||||||
context.insert("completed", &completed);
|
|
||||||
context.insert("distances", &distances);
|
context.insert("distances", &distances);
|
||||||
|
|
||||||
Template::render("log", context.into_json())
|
Template::render("log", context.into_json())
|
||||||
@ -87,7 +85,6 @@ async fn kiosk(
|
|||||||
let distances = Logbook::distances(db).await;
|
let distances = Logbook::distances(db).await;
|
||||||
|
|
||||||
let on_water = Logbook::on_water(db).await;
|
let on_water = Logbook::on_water(db).await;
|
||||||
let completed = Logbook::completed(db).await;
|
|
||||||
|
|
||||||
let mut context = Context::new();
|
let mut context = Context::new();
|
||||||
if let Some(msg) = flash {
|
if let Some(msg) = flash {
|
||||||
@ -99,7 +96,6 @@ async fn kiosk(
|
|||||||
context.insert("users", &users);
|
context.insert("users", &users);
|
||||||
context.insert("logtypes", &logtypes);
|
context.insert("logtypes", &logtypes);
|
||||||
context.insert("on_water", &on_water);
|
context.insert("on_water", &on_water);
|
||||||
context.insert("completed", &completed);
|
|
||||||
context.insert("distances", &distances);
|
context.insert("distances", &distances);
|
||||||
|
|
||||||
Template::render("kiosk", context.into_json())
|
Template::render("kiosk", context.into_json())
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
{% if flash %}
|
{% if flash %}
|
||||||
{{ macros::alert(message=flash.1, type=flash.0, class="sm:col-span-2 lg:col-span-3") }}
|
{{ macros::alert(message=flash.1, type=flash.0, class="sm:col-span-2 lg:col-span-3") }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="max-w-screen-lg w-full">
|
<div class="max-w-screen-lg w-full">
|
||||||
<h1 class="h1">Logbuch</h1>
|
<h1 class="h1">Logbuch</h1>
|
||||||
<h2>Neue Ausfahrt starten</h2>
|
<h2>Neue Ausfahrt starten</h2>
|
||||||
@ -18,12 +19,6 @@
|
|||||||
{{ log::show(log=log, state="on_water", allowed_to_close=true, only_ones=false) }}
|
{{ log::show(log=log, state="on_water", allowed_to_close=true, only_ones=false) }}
|
||||||
<hr />
|
<hr />
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<h2 style="font-size: 100px">Einträge</h2>
|
|
||||||
{% for log in completed %}
|
|
||||||
{{ log::show(log=log, state="completed", only_ones=false) }}
|
|
||||||
<hr />
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock content%}
|
{% endblock content%}
|
||||||
|
Loading…
Reference in New Issue
Block a user