diff --git a/web/static/css/main.css b/web/static/css/main.css index 57a3b37..941bf49 100644 --- a/web/static/css/main.css +++ b/web/static/css/main.css @@ -1003,6 +1003,16 @@ select { [class*="-kartice"] > .animiraj:nth-child(4) { animation-delay: 0.22s; } [class*="-kartice"] > .animiraj:nth-child(5) { animation-delay: 0.28s; } +/* Bedž statusa servisnog naloga — JEDNO mesto za izgled i boje statusa (lista i detalji). + Mora biti u main.css: HTMX navigacija odbacuje , pa page -{{end}} - {{define "sadrzaj"}}
diff --git a/web/templates/stranice/servis.html b/web/templates/stranice/servis.html index cb93ef0..49203b1 100644 --- a/web/templates/stranice/servis.html +++ b/web/templates/stranice/servis.html @@ -2,21 +2,6 @@ {{define "naslov"}}Servis — NTech{{end}} -{{define "dodatni-css"}} - -{{end}} - {{define "status-badge"}} {{if eq . "Primljeno"}}{{.}} {{else if eq . "U dijagnostici"}}{{.}} diff --git a/web/templates/stranice/servis_detalji.html b/web/templates/stranice/servis_detalji.html index cf99a3c..bd90fe9 100644 --- a/web/templates/stranice/servis_detalji.html +++ b/web/templates/stranice/servis_detalji.html @@ -9,13 +9,6 @@ .detalji-kartica:nth-child(3) { animation-delay: 0.20s; } .detalji-kartica:nth-child(4) { animation-delay: 0.28s; } .detalji-kartica:nth-child(5) { animation-delay: 0.36s; } - .status-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; white-space: nowrap; } - .status-primljeno { background: rgba(148,163,184,0.15); color: #94a3b8; } - .status-dijagnostika { background: rgba(59,130,246,0.15); color: #3b82f6; } - .status-ceka { background: rgba(249,115,22,0.15); color: #f97316; } - .status-popravka { background: rgba(234,179,8,0.15); color: #ca8a04; } - .status-zavrseno { background: rgba(34,197,94,0.15); color: #16a34a; } - .status-preuzeto { background: rgba(21,128,61,0.15); color: #15803d; } {{end}}