diff options
author | Přemysl Janouch <p@janouch.name> | 2019-04-15 01:10:48 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2019-04-15 02:40:55 +0200 |
commit | 37b7edb2efa819fe8b093157e9b26f671f390f95 (patch) | |
tree | f26c401cca6426d9a7f754ba59302e0a8dc23c7d /cmd/sklad/series.tmpl | |
parent | 608ba10eecb1f5c02eb41b288d2af5ce2de3f4f5 (diff) | |
download | sklad-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.tmpl | 14 |
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> |