add info text for uncrewed stations; Fixes #47
This commit is contained in:
parent
24fedf6083
commit
a84589aceb
@ -23,6 +23,7 @@ run_ended: "Stationslauf erfolgreich beendet"
|
|||||||
run_restarted: "Stationslauf erfolgreich wieder aufgenommen"
|
run_restarted: "Stationslauf erfolgreich wieder aufgenommen"
|
||||||
come_home_with_these_groups: "Gruppen mitnehmen"
|
come_home_with_these_groups: "Gruppen mitnehmen"
|
||||||
station_info: "Schön, dass du uns als Stationsbetreuer hilfst."
|
station_info: "Schön, dass du uns als Stationsbetreuer hilfst."
|
||||||
|
info_crewless_station: "Wenn das eine unbemannte Station ist, wähle hier 0 Personen aus. Dann werden dieser Station keine Startteams zugeteilt und es wird kein PDF generiert."
|
||||||
|
|
||||||
#
|
#
|
||||||
# ######
|
# ######
|
||||||
|
@ -1,18 +1,17 @@
|
|||||||
use crate::{
|
use crate::{
|
||||||
AppState,
|
|
||||||
admin::{station::Station, team::Team},
|
admin::{station::Station, team::Team},
|
||||||
er, err,
|
er, err,
|
||||||
models::rating::{Rating, TeamsAtStationLocation},
|
models::rating::{Rating, TeamsAtStationLocation},
|
||||||
partials::page,
|
partials::page,
|
||||||
suc, succ,
|
suc, succ, AppState,
|
||||||
};
|
};
|
||||||
use axum::{
|
use axum::{
|
||||||
Form, Router,
|
|
||||||
extract::State,
|
extract::State,
|
||||||
response::{IntoResponse, Redirect},
|
response::{IntoResponse, Redirect},
|
||||||
routing::{get, post},
|
routing::{get, post},
|
||||||
|
Form, Router,
|
||||||
};
|
};
|
||||||
use maud::{Markup, html};
|
use maud::{html, Markup};
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
use sqlx::SqlitePool;
|
use sqlx::SqlitePool;
|
||||||
use std::{collections::HashMap, sync::Arc};
|
use std::{collections::HashMap, sync::Arc};
|
||||||
@ -129,20 +128,25 @@ async fn view(
|
|||||||
}
|
}
|
||||||
@if !station.crewless() {
|
@if !station.crewless() {
|
||||||
tr {
|
tr {
|
||||||
th scope="row" { "Stations-Link" };
|
th scope="row" {
|
||||||
|
"Stations-Link"
|
||||||
|
article class="warning" {
|
||||||
|
(format!("Diesen Link nur Betreuern der Station {} geben! Mit diesem Link erhält man die Berechtigung, Teams zu bewerten.", station.name))
|
||||||
|
}
|
||||||
|
};
|
||||||
td {
|
td {
|
||||||
a href=(format!("/s/{}/{}", station.id, station.pw)) {
|
a href=(format!("/s/{}/{}", station.id, station.pw)) {
|
||||||
"Login-Link"
|
"Login-Link"
|
||||||
|
|
||||||
}
|
|
||||||
article class="warning" {
|
|
||||||
(format!("Diesen Link nur Betreuern der Station {} geben! Mit diesem Link erhält man die Berechtigung, Teams zu bewerten.", station.name))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tr {
|
tr {
|
||||||
th scope="row" { "Anzahl Stationsbetreuer" };
|
th scope="row" { "Anzahl Stationsbetreuer"
|
||||||
|
article class="warning" {
|
||||||
|
(t!("info_crewless_station"))
|
||||||
|
}
|
||||||
|
};
|
||||||
td {
|
td {
|
||||||
@match station.amount_people {
|
@match station.amount_people {
|
||||||
Some(amount) => (amount),
|
Some(amount) => (amount),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user