aboutsummaryrefslogtreecommitdiff
path: root/cmd/sklad/series.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/sklad/series.tmpl')
-rw-r--r--cmd/sklad/series.tmpl14
1 files changed, 14 insertions, 0 deletions
diff --git a/cmd/sklad/series.tmpl b/cmd/sklad/series.tmpl
index 01e2539..0e31e0f 100644
--- a/cmd/sklad/series.tmpl
+++ b/cmd/sklad/series.tmpl
@@ -1,6 +1,20 @@
{{ define "Title" }}{{ or .Prefix "Řady" }}{{ end }}
{{ define "Content" }}
+{{ if .ErrorInvalidPrefix }}
+<p>Chyba: Neplatný prefix.
+{{ else if .ErrorSeriesAlreadyExists }}
+<p>Chyba: Řada s tímto prefixem už existuje.
+{{ else if .ErrorCannotChangePrefix }}
+<p>Chyba: Prefix nelze měnit.
+{{ else if .ErrorNoSuchSeries }}
+<p>Chyba: Řada neexistuje.
+{{ else if .ErrorSeriesInUse }}
+<p>Chyba: Řada se používá.
+{{ else if .Error }}
+<p>Chyba: {{ .Error }}
+{{ end }}
+
{{ if .Prefix }}
<h2>{{ .Prefix }}</h2>