Ispravke — bezbednost, CSS teme, handleri, sidebar, servis forma

This commit is contained in:
2026-06-03 23:13:15 +02:00
parent f5b6b0c7ee
commit 4b7ed36473
19 changed files with 352 additions and 519 deletions
+26 -1
View File
@@ -264,13 +264,31 @@ input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
input[type="date"],
select {
height: 38px;
padding: 8px 12px;
box-sizing: border-box;
line-height: 1.5;
background: var(--kartica) !important;
color: var(--tekst-glavni) !important;
border: 0.5px solid var(--ivica) !important;
border-radius: 8px;
font-size: 14px;
outline: none;
transition: border-color 0.2s;
}
textarea {
height: auto;
min-height: 80px;
padding: 8px 12px;
box-sizing: border-box;
line-height: 1.5;
background: var(--kartica) !important;
color: var(--tekst-glavni) !important;
border: 0.5px solid var(--ivica) !important;
border-radius: 8px;
font-size: 14px;
outline: none;
transition: border-color 0.2s;
@@ -280,9 +298,16 @@ input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
border-color: var(--sb-akcent) !important;
outline: none;
}
select {
width: 100%;
min-width: 0;
}
/* poruka o uspehu — konzistentna za sve teme */
+1
View File
@@ -1,4 +1,5 @@
:root {
color-scheme: light;
--pozadina: #f6f8fa;
--kartica: #ffffff;
--kartica-2: #f0f2f5;
+1
View File
@@ -1,4 +1,5 @@
:root {
color-scheme: dark;
--pozadina: #1f2228;
--kartica: #22262d;
--kartica-2: #2c313a;
+1 -1
View File
@@ -92,7 +92,7 @@
</a>
{{end}}
<a href="/admin/profil" class="nav-stavka">
<a href="/admin/profil" class="nav-stavka {{if eq .Stranica "profil"}}aktivan{{end}}">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
<span>Moj profil</span>
<span class="nav-tooltip">Moj profil</span>
+1 -1
View File
@@ -109,7 +109,7 @@
<option value="">— bez klijenta —</option>
{{range .Klijenti}}
<option value="{{.ID}}"
{{if $.Nalog.KlijentID}}{{if eq .ID $.Nalog.KlijentID}}selected{{end}}{{end}}>
{{if eq .ID $.Nalog.KlijentIDVrednost}}selected{{end}}>
{{if .NazivFirme}}{{.NazivFirme}}{{else}}{{.Ime}} {{.Prezime}}{{end}}
</option>
{{end}}