diff --git a/web/templates/stranice/servis_detalji.html b/web/templates/stranice/servis_detalji.html index c75f6a7..e7864e6 100644 --- a/web/templates/stranice/servis_detalji.html +++ b/web/templates/stranice/servis_detalji.html @@ -11,6 +11,35 @@ .detalji-kartica:nth-child(5) { animation-delay: 0.36s; } /* bez animacija na detaljima — smetaju pri dodavanju/brisanju stavki */ #sadrzaj .kartica.animiraj { animation: none; } + /* custom dropdown za usluge i artikle */ + .cust-sel { position: relative; } + .cust-sel-btn { + display: flex; align-items: center; justify-content: space-between; gap: 8px; + height: 38px; padding: 0 10px; box-sizing: border-box; cursor: pointer; + border: 0.5px solid var(--ivica) !important; border-radius: 8px; font-size: 14px; + background: var(--kartica) !important; color: var(--tekst-glavni) !important; + user-select: none; + } + .cust-sel-btn:focus { border-color: #3b82f6 !important; outline: none; } + .cust-sel-tekst { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } + .cust-sel-chevron { font-size: 10px; color: var(--tekst-sporedni); flex-shrink: 0; transition: transform 0.15s; } + .cust-sel.otvoren .cust-sel-chevron { transform: rotate(180deg); } + .cust-sel-lista { + display: none; position: absolute; top: calc(100% + 3px); left: 0; right: 0; z-index: 500; + background: var(--kartica); border: 0.5px solid var(--ivica); border-radius: 10px; + max-height: 260px; overflow-y: auto; box-shadow: 0 8px 30px rgba(0,0,0,0.4); + } + .cust-sel.otvoren .cust-sel-lista { display: block; } + .cso { + display: flex; align-items: center; justify-content: space-between; gap: 12px; + padding: 8px 12px; cursor: pointer; border-bottom: 0.5px solid var(--ivica); font-size: 13px; + } + .cso:last-child { border-bottom: none; } + .cso:hover, .cso.izabran { background: rgba(255,255,255,0.06); } + .cso-naziv { color: var(--tekst-glavni); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } + .cso-cena { color: #f59e0b; font-weight: 600; white-space: nowrap; flex-shrink: 0; } + .cso-prazno { color: var(--tekst-sporedni); } + .kartica.cust-aktivan { position: relative; z-index: 100; } {{end}} @@ -467,10 +496,17 @@
- +
+
+ — odaberi uslugu — + +
+
+
— odaberi uslugu —
+ {{range .Usluge}}{{if not (index $.KorisceneUsluge .ID)}}
{{.Naziv}}{{dinari .Cena}} din
{{end}}{{end}} +
+
+
@@ -581,9 +617,14 @@
- +
+
+ — odaberi artikal — + +
+
+
+
@@ -692,27 +733,30 @@
{{end}} @@ -811,15 +855,63 @@