add info text for uncrewed stations; Fixes #47
Some checks failed
CI/CD Pipeline / deploy (push) Has been cancelled
CI/CD Pipeline / test (push) Has been cancelled

This commit is contained in:
Philipp Hofer 2025-04-22 13:07:32 +02:00
parent 24fedf6083
commit a84589aceb
2 changed files with 15 additions and 10 deletions

View File

@ -23,6 +23,7 @@ run_ended: "Stationslauf erfolgreich beendet"
run_restarted: "Stationslauf erfolgreich wieder aufgenommen"
come_home_with_these_groups: "Gruppen mitnehmen"
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."
#
# ######

View File

@ -1,18 +1,17 @@
use crate::{
AppState,
admin::{station::Station, team::Team},
er, err,
models::rating::{Rating, TeamsAtStationLocation},
partials::page,
suc, succ,
suc, succ, AppState,
};
use axum::{
Form, Router,
extract::State,
response::{IntoResponse, Redirect},
routing::{get, post},
Form, Router,
};
use maud::{Markup, html};
use maud::{html, Markup};
use serde::Deserialize;
use sqlx::SqlitePool;
use std::{collections::HashMap, sync::Arc};
@ -129,20 +128,25 @@ async fn view(
}
@if !station.crewless() {
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 {
a href=(format!("/s/{}/{}", station.id, station.pw)) {
"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 {
th scope="row" { "Anzahl Stationsbetreuer" };
th scope="row" { "Anzahl Stationsbetreuer"
article class="warning" {
(t!("info_crewless_station"))
}
};
td {
@match station.amount_people {
Some(amount) => (amount),