From 4f54ca34702be9af96c3f9cdaaa696cd391661e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dalibor=20Markovi=C4=87?= Date: Thu, 4 Jun 2026 18:31:27 +0200 Subject: [PATCH] Izmena Build.sh skripte --- build.sh | 4 +- web/static/css/main.css | 48 ++++++++++++++++++++++ web/templates/komponente/sidebar.html | 12 +++--- web/templates/komponente/topbar.html | 43 ++++++++++++++++++- web/templates/stranice/dobavljaci.html | 11 ++--- web/templates/stranice/klijenti.html | 11 ++--- web/templates/stranice/magacin.html | 9 ++-- web/templates/stranice/nabavka_forma.html | 4 +- web/templates/stranice/nabavke.html | 7 +--- web/templates/stranice/prodaja.html | 7 +--- web/templates/stranice/prodaja_forma.html | 4 +- web/templates/stranice/servis.html | 11 ++--- web/templates/stranice/servis_detalji.html | 4 +- 13 files changed, 116 insertions(+), 59 deletions(-) diff --git a/build.sh b/build.sh index 591ab38..fe444db 100755 --- a/build.sh +++ b/build.sh @@ -20,11 +20,11 @@ OKR_IZBOR=${OKR_IZBOR:-1} if [ "$OKR_IZBOR" = "2" ]; then OKRUZENJE="development" LDFLAGS="-X main.Verzija=dev-${VERZIJA}" - NAZIV="ntech-dev-${VERZIJA}" + NAZIV="ntech-dev" else OKRUZENJE="production" LDFLAGS="-X main.Verzija=${VERZIJA} -s -w" - NAZIV="ntech-${VERZIJA}" + NAZIV="ntech" fi # ────────────────────────────────────────────── diff --git a/web/static/css/main.css b/web/static/css/main.css index 7fb0014..450e158 100644 --- a/web/static/css/main.css +++ b/web/static/css/main.css @@ -288,6 +288,54 @@ body { box-shadow: var(--senka); } +/* primarna dugmad — rade na svim temama */ +.btn-primarno { + display: inline-flex; + align-items: center; + background: var(--sb-akcent); + color: #fff; + border: none; + border-radius: 8px; + padding: 8px 16px; + font-size: 14px; + font-weight: 500; + cursor: pointer; + text-decoration: none; + white-space: nowrap; + transition: opacity 0.2s; +} +.btn-primarno:hover { opacity: 0.85; } + +/* mala primarna dugmad u tabelama */ +.btn-primarno-malo { + display: inline-flex; + align-items: center; + background: var(--sb-akcent); + color: #fff; + border: none; + border-radius: 6px; + padding: 4px 10px; + font-size: 12px; + text-decoration: none; + transition: opacity 0.2s; +} +.btn-primarno-malo:hover { opacity: 0.85; } + +/* avatar krug korisnika u topbaru */ +.avatar-korisnik { + width: 32px; + height: 32px; + border-radius: 50%; + background: var(--sb-akcent); + display: flex; + align-items: center; + justify-content: center; + font-size: 12px; + font-weight: 500; + color: #fff; + flex-shrink: 0; +} + /* input polja — konzistentna za sve teme */ input[type="text"], input[type="email"], diff --git a/web/templates/komponente/sidebar.html b/web/templates/komponente/sidebar.html index 4c7023c..63cac8b 100644 --- a/web/templates/komponente/sidebar.html +++ b/web/templates/komponente/sidebar.html @@ -84,6 +84,12 @@ + + + Moj profil + Moj profil + + {{if or (eq .KorisnikUloga "superadmin") (eq .KorisnikUloga "admin")}} @@ -92,12 +98,6 @@ {{end}} - - - Moj profil - Moj profil - - diff --git a/web/templates/komponente/topbar.html b/web/templates/komponente/topbar.html index f8a658f..9df3587 100644 --- a/web/templates/komponente/topbar.html +++ b/web/templates/komponente/topbar.html @@ -17,8 +17,47 @@ -
- {{if .Korisnik}}{{slice .Korisnik 0 2}}{{else}}NT{{end}} +
+
+ {{if .Korisnik}}{{slice .Korisnik 0 2}}{{else}}NT{{end}} +
+
+ + {{end}} diff --git a/web/templates/stranice/dobavljaci.html b/web/templates/stranice/dobavljaci.html index 3d7d079..5bc837d 100644 --- a/web/templates/stranice/dobavljaci.html +++ b/web/templates/stranice/dobavljaci.html @@ -65,9 +65,7 @@ - @@ -103,9 +101,7 @@
- + Izmeni
@@ -138,8 +134,7 @@
{{.Naziv}}
- + Izmeni diff --git a/web/templates/stranice/klijenti.html b/web/templates/stranice/klijenti.html index a05dd30..e09cb4d 100644 --- a/web/templates/stranice/klijenti.html +++ b/web/templates/stranice/klijenti.html @@ -64,9 +64,7 @@ - @@ -111,9 +109,7 @@
- + Izmeni
@@ -155,8 +151,7 @@ {{end}}
- + Izmeni diff --git a/web/templates/stranice/magacin.html b/web/templates/stranice/magacin.html index 9cc0fdc..fa1a92b 100644 --- a/web/templates/stranice/magacin.html +++ b/web/templates/stranice/magacin.html @@ -33,8 +33,7 @@ style="padding:8px 16px;background:var(--sb-akcent);color:#fff;border-radius:8px;font-size:14px;font-weight:500;text-decoration:none;white-space:nowrap;"> + Novi artikal - + Kategorije
@@ -55,8 +54,7 @@ Samo kritični -
@@ -96,8 +94,7 @@ diff --git a/web/templates/stranice/nabavke.html b/web/templates/stranice/nabavke.html index fa24493..f7d89e3 100644 --- a/web/templates/stranice/nabavke.html +++ b/web/templates/stranice/nabavke.html @@ -94,9 +94,7 @@
- + Detalji @@ -143,8 +141,7 @@
{{.Napomena}}
{{end}}
- + Detalji diff --git a/web/templates/stranice/prodaja.html b/web/templates/stranice/prodaja.html index 0ce818b..a9de650 100644 --- a/web/templates/stranice/prodaja.html +++ b/web/templates/stranice/prodaja.html @@ -108,9 +108,7 @@ {{printf "%.2f" .Ukupno}} din - + Detalji @@ -149,8 +147,7 @@ {{printf "%.2f" .Ukupno}} din
- + Detalji
diff --git a/web/templates/stranice/prodaja_forma.html b/web/templates/stranice/prodaja_forma.html index 6cde0f0..04ab686 100644 --- a/web/templates/stranice/prodaja_forma.html +++ b/web/templates/stranice/prodaja_forma.html @@ -114,9 +114,7 @@
Stavke -
diff --git a/web/templates/stranice/servis.html b/web/templates/stranice/servis.html index 1b002df..06675cc 100644 --- a/web/templates/stranice/servis.html +++ b/web/templates/stranice/servis.html @@ -95,9 +95,7 @@ {{end}} - @@ -142,9 +140,7 @@
- + Izmeni
@@ -197,8 +193,7 @@
- + Izmeni diff --git a/web/templates/stranice/servis_detalji.html b/web/templates/stranice/servis_detalji.html index ec716e5..dcd587c 100644 --- a/web/templates/stranice/servis_detalji.html +++ b/web/templates/stranice/servis_detalji.html @@ -65,9 +65,7 @@ {{template "status-badge-detalji" .Nalog.Status}}
- + Izmeni nalog