Implemented admin overview.
This commit is contained in:
@@ -56,6 +56,28 @@ lazy_static! {
|
||||
("Date", "Datum"),
|
||||
("Note", "Poznámka"),
|
||||
("Enter note", "Zadejte poznámku"),
|
||||
("New bookings", "Nové rezervace"),
|
||||
("Next approved bookings", "Potvrzené rezervace"),
|
||||
("Approve", "Potvrdit"),
|
||||
("Cancel booking", "Zrušit rezervaci"),
|
||||
("Approve booking", "Potvrdit rezervaci"),
|
||||
("Reservation saved", "Rezervace byla uložena"),
|
||||
("Cancel", "Zrušit"),
|
||||
("Approve booking on ", "Potvrdit rezervaci na "),
|
||||
(" for ", " pro "),
|
||||
("Cancel booking on ", "Zrušit rezervaci na "),
|
||||
("Customer: ", "Zákazník: "),
|
||||
("Price: ", "Cena: "),
|
||||
("Note: ", "Poznámka: "),
|
||||
("Overview", "Přehled"),
|
||||
("Can't create reservation", "Rezervaci nelze vytvořit"),
|
||||
("Enter your full name", "Zadejte své jméno"),
|
||||
("Enter valid email address", "Zadejte platný e-mail"),
|
||||
("Select at last one time slot", "Zvolte čas rezervace"),
|
||||
("Enter your phone number", "Zadejte telefonní číslo"),
|
||||
("Your reservation has been successfully saved.", "Vaše rezervace byla úspěšně uložena."),
|
||||
("We look forward to seeing you on", "Těšíme se na vaši návštěvu"),
|
||||
("Create booking", "Vytvořit rezervaci"),
|
||||
])),
|
||||
("sk", HashMap::from( [
|
||||
("Dashboard", "Prehlad"),
|
||||
|
||||
+13
-1
@@ -1,4 +1,4 @@
|
||||
use chrono::NaiveDate;
|
||||
use chrono::{NaiveDate, Weekday};
|
||||
use leptos::use_context;
|
||||
use crate::locales::catalogues::get_dictionary;
|
||||
|
||||
@@ -51,4 +51,16 @@ pub fn loc_date(date: NaiveDate) -> impl Fn() -> String {
|
||||
}
|
||||
|
||||
move || { dt.clone() }
|
||||
}
|
||||
|
||||
pub fn show_day(day: &Weekday) -> impl Fn() -> String {
|
||||
match day {
|
||||
Weekday::Mon => { trl("Monday") }
|
||||
Weekday::Tue => { trl("Tuesday") }
|
||||
Weekday::Wed => { trl("Wednesday") }
|
||||
Weekday::Thu => { trl("Thursday") }
|
||||
Weekday::Fri => { trl("Friday") }
|
||||
Weekday::Sat => { trl("Saturday") }
|
||||
Weekday::Sun => { trl("Sunday") }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user