CJVT updates August and September 2026
This commit is contained in:
@@ -17,12 +17,13 @@ mixin sideNavigation(sideNavigationData)
|
||||
a.p-2.active(href="/moj-racun")
|
||||
img(src="/images/user-gray.svg" alt=t('Basic'))
|
||||
p #{ t('Osnovni podatki') }
|
||||
li.p-0(
|
||||
class=sideNavigationData.selection === 'change-profile-password' ? 'focused-menu' : 'admin-nav-item'
|
||||
)
|
||||
a.p-2.active(href="/spremeni-geslo")
|
||||
img(src="/images/lock-gray.svg" alt=t('Settings'))
|
||||
p #{ t('Spremeni geslo') }
|
||||
if !user.isSso
|
||||
li.p-0(
|
||||
class=sideNavigationData.selection === 'change-profile-password' ? 'focused-menu' : 'admin-nav-item'
|
||||
)
|
||||
a.p-2.active(href="/spremeni-geslo")
|
||||
img(src="/images/lock-gray.svg" alt=t('Settings'))
|
||||
p #{ t('Spremeni geslo') }
|
||||
li.p-0(
|
||||
class=sideNavigationData.selection === 'change-profile-settings' ? 'focused-menu' : 'admin-nav-item'
|
||||
)
|
||||
|
||||
@@ -11,7 +11,8 @@ block body
|
||||
- const d = { selection: 'change-profile-data' }
|
||||
+sideNavigation(d)
|
||||
include /utilities/dictionaries-main-panel-header
|
||||
- const c = { sideMenu: true, h1: title, description: t('Tukaj lahko spremenite ime, priimek in elektronski naslov uporabnika.'), buttons: [{ type: 'disabled', content: t('Shrani'), form: 'profileForm' }] }
|
||||
- const ssoDescription = t('Ta račun je bil ustvarjen s prijavo prek Univerze v Ljubljani, zato osebnih podatkov (ime, priimek, uporabniško ime, e-poštni naslov) tukaj ni mogoče spreminjati.')
|
||||
- const c = { sideMenu: true, h1: title, description: user.isSso ? ssoDescription : t('Tukaj lahko spremenite ime, priimek in elektronski naslov uporabnika.'), buttons: user.isSso ? [] : [{ type: 'disabled', content: t('Shrani'), form: 'profileForm' }] }
|
||||
+mainHeader(c)
|
||||
|
||||
.content-hold-prerequisites
|
||||
@@ -43,6 +44,7 @@ block body
|
||||
name="firstName"
|
||||
minLength="1"
|
||||
value=user.firstName
|
||||
disabled=user.isSso
|
||||
)
|
||||
.invalid-feedback #{ t('Niste vpisali imena') }
|
||||
|
||||
@@ -59,6 +61,7 @@ block body
|
||||
name="lastName"
|
||||
minLength="1"
|
||||
value=user.lastName
|
||||
disabled=user.isSso
|
||||
)
|
||||
.invalid-feedback #{ t('Niste vpisali priimka.') }
|
||||
|
||||
@@ -75,6 +78,7 @@ block body
|
||||
name="email"
|
||||
minLength="1"
|
||||
value=user.email
|
||||
disabled=user.isSso
|
||||
)
|
||||
.invalid-feedback #{ t('Neveljavni elektronski naslov.') }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user