aboutsummaryrefslogtreecommitdiff
path: root/cmd/sklad/series.tmpl
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2019-04-15 01:10:48 +0200
committerPřemysl Janouch <p@janouch.name>2019-04-15 02:40:55 +0200
commit37b7edb2efa819fe8b093157e9b26f671f390f95 (patch)
treef26c401cca6426d9a7f754ba59302e0a8dc23c7d /cmd/sklad/series.tmpl
parent608ba10eecb1f5c02eb41b288d2af5ce2de3f4f5 (diff)
downloadsklad-37b7edb2efa819fe8b093157e9b26f671f390f95.tar.gz
sklad-37b7edb2efa819fe8b093157e9b26f671f390f95.tar.xz
sklad-37b7edb2efa819fe8b093157e9b26f671f390f95.zip
sklad: create, update, remove
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>