diff --git a/web/templates/stranice/kategorije.html b/web/templates/stranice/kategorije.html index 938bb69..c01c20b 100644 --- a/web/templates/stranice/kategorije.html +++ b/web/templates/stranice/kategorije.html @@ -27,7 +27,7 @@ {{end}} - + Nazad na magacin diff --git a/web/templates/stranice/magacin.html b/web/templates/stranice/magacin.html index d1af42b..62487c9 100644 --- a/web/templates/stranice/magacin.html +++ b/web/templates/stranice/magacin.html @@ -85,7 +85,7 @@ {{end}} {{if index $.Dozvole "artikal.premesti"}}{{if $.Kategorije}} - {{template "premestiMeni" (dict "ID" .ID "Kategorije" $.Kategorije)}} + {{template "premestiMeni" (dict "ID" .ID "Kategorije" $.Kategorije "Prefiks" "tab")}} {{end}}{{end}} {{if index $.Dozvole "artikal.obrisi"}} Izmeni {{end}} {{if index $.Dozvole "artikal.premesti"}}{{if $.Kategorije}} - {{template "premestiMeni" (dict "ID" .ID "Kategorije" $.Kategorije)}} + {{template "premestiMeni" (dict "ID" .ID "Kategorije" $.Kategorije "Prefiks" "kart")}} {{end}}{{end}} {{if index $.Dozvole "artikal.obrisi"}} Premesti -{{/* nativni modal — showModal() ga stavlja u „top layer", pa je uvek iznad svega bez obzira na z-index/overflow */}} - + onclick="document.getElementById('premesti-{{.Prefiks}}-{{.ID}}').showModal()">Premesti +{{/* nativni modal — showModal() ga stavlja u „top layer", pa je uvek iznad svega bez obzira na z-index/overflow. + Prefiks (tab/kart) čini id jedinstvenim — isti artikal se renderuje i u tabeli i u mobilnoj kartici. */}} + {{/* zaglavlje sa dugmetom za zatvaranje; method="dialog" zatvara modal bez slanja */}}

Premesti artikal

diff --git a/web/templates/stranice/nabavka_forma.html b/web/templates/stranice/nabavka_forma.html index 3f57bbc..e558816 100644 --- a/web/templates/stranice/nabavka_forma.html +++ b/web/templates/stranice/nabavka_forma.html @@ -128,8 +128,9 @@ - -