From 05d52698599497e7edfe535af3da526d1a470450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dalibor=20Markovi=C4=87?= Date: Sat, 13 Jun 2026 23:15:27 +0200 Subject: [PATCH] =?UTF-8?q?fix(ui):=20mobilne=20ispravke=20u=20prikazu=20i?= =?UTF-8?q?=20=C4=8Ditljivosti=20preko=20slike=20-=20magacin:=20dugme=20Pr?= =?UTF-8?q?emesti=20na=20mobilnom=20=E2=80=94=20dialog=20je=20imao=20dupli?= =?UTF-8?q?rani=20id=20(tabela=20i=20kartica),=20pa=20je=20getElementById?= =?UTF-8?q?=20otvarao=20skriveni=20tabelarni=20modal;=20id=20sada=20nosi?= =?UTF-8?q?=20prefiks=20tab/kart=20-=20kategorije:=20=E2=80=9ENazad=20na?= =?UTF-8?q?=20magacin"=20koristi=20klasu=20.nazad-link=20(vidljiv,=20i=20p?= =?UTF-8?q?reko=20slike=20dobija=20glass=20podlogu=20+=20belu=20boju=20+?= =?UTF-8?q?=20senku)=20-=20nabavka:=20=E2=80=9E+=20Dodaj=20stavku"=20na=20?= =?UTF-8?q?mobilnom=20=E2=80=94=20inline=20display:none=20je=20gazio=20@me?= =?UTF-8?q?dia,=20pa=20mobilne=20kartice=20stavki=20nisu=20prikazane;=20di?= =?UTF-8?q?splay=20sada=20kontroli=C5=A1e=20samo=20CSS=20klasa=20-=20podse?= =?UTF-8?q?tnici:=20prazno=20stanje=20(mobilni)=20umotano=20u=20.kartica?= =?UTF-8?q?=20da=20bude=20=C4=8Ditljivo=20preko=20slike=20-=20base:=20ja?= =?UTF-8?q?=C4=8Da=20podloga=20topbara=20i=20senka=20naslova=20preko=20sve?= =?UTF-8?q?tle=20slike=20na=20mobilnom?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/templates/stranice/kategorije.html | 2 +- web/templates/stranice/magacin.html | 11 ++++++----- web/templates/stranice/nabavka_forma.html | 5 +++-- web/templates/stranice/podsetnici.html | 2 +- web/templates/teme/podrazumevana/base.html | 9 +++++++++ 5 files changed, 20 insertions(+), 9 deletions(-) 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 @@ - -