First full release
This commit is contained in:
@@ -11,15 +11,15 @@ block body
|
||||
- const d = { selection: 'change-profile-password' }
|
||||
+sideNavigation(d)
|
||||
include /utilities/dictionaries-main-panel-header
|
||||
- const c = { sideMenu: true, h1: 'Spremeni geslo', description: 'Tukaj lahko spremenite geslo za prijavo.', buttons: [{ type: 'disabled', content: 'Shrani', form: 'profileForm' }] }
|
||||
- const c = { sideMenu: true, h1: title, description: t('Tukaj lahko spremenite geslo za prijavo.'), buttons: [{ type: 'disabled', content: t('Shrani'), form: 'profileForm' }] }
|
||||
+mainHeader(c)
|
||||
|
||||
.content-hold-prerequisites
|
||||
#offset-main.main-container.mt-2.pe-5
|
||||
#offset-main.main-container.mt-2
|
||||
form.needs-validation(method="post" novalidate)
|
||||
div
|
||||
.subject-name
|
||||
label.input-name-txt(for="password-old") STARO GESLO
|
||||
label.input-name-txt(for="password-old") #{ t('STARO GESLO') }
|
||||
.row
|
||||
.col-sm-6.align-items-center
|
||||
input#password-old.name-input.form-control.d-inline(
|
||||
@@ -27,14 +27,14 @@ block body
|
||||
name="password-old"
|
||||
value=""
|
||||
)
|
||||
.invalid-feedback Napačno geslo.
|
||||
.invalid-feedback #{ t('Napačno geslo.') }
|
||||
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0
|
||||
|
||||
.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt(for="dictionary-title-en") NOVO GESLO
|
||||
label.input-name-txt(for="dictionary-title-en") #{ t('NOVO GESLO') }
|
||||
.row
|
||||
.col-sm-6
|
||||
input#password-new.name-input.form-control.d-inline(
|
||||
@@ -43,14 +43,14 @@ block body
|
||||
minLength="1"
|
||||
value=""
|
||||
)
|
||||
.invalid-feedback Geslo je prekratko.
|
||||
.invalid-feedback #{ t('Geslo je prekratko.') }
|
||||
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0
|
||||
|
||||
.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt(for="dictionary-title-en") PONOVI NOVO GESLO
|
||||
label.input-name-txt(for="dictionary-title-en") #{ t('PONOVI NOVO GESLO') }
|
||||
.row
|
||||
.col-sm-6
|
||||
input#password-repeat.name-input.form-control.d-inline(
|
||||
@@ -59,9 +59,9 @@ block body
|
||||
minLength="1"
|
||||
value=""
|
||||
)
|
||||
.invalid-feedback Geslo se ne ujema.
|
||||
.invalid-feedback #{ t('Geslo se ne ujema.') }
|
||||
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0
|
||||
|
||||
include /common/footer
|
||||
include /common/footer
|
||||
|
||||
@@ -11,15 +11,15 @@ block body
|
||||
- const d = { selection: 'change-profile-settings' }
|
||||
+sideNavigation(d)
|
||||
include /utilities/dictionaries-main-panel-header
|
||||
- const c = { sideMenu: true, h1: 'Nastavitve računa', description: 'Tukaj lahko spremenite nekatere nastavitve, vezane na posameznega uporabnika.', buttons: [{ type: 'disabled', content: 'Shrani', form: 'profileForm' }] }
|
||||
- const c = { sideMenu: true, h1: title, description: t('Tukaj lahko spremenite nekatere nastavitve, vezane na posameznega uporabnika.'), buttons: [{ type: 'disabled', content: t('Shrani'), form: 'profileForm' }] }
|
||||
+mainHeader(c)
|
||||
|
||||
.content-hold-prerequisites
|
||||
#offset-main.main-container.mt-2.pe-5
|
||||
#offset-main.main-container.mt-2
|
||||
form#profileForm.needs-validation(method="post" novalidate)
|
||||
div
|
||||
.subject-name
|
||||
label.input-name-txt(for="number-of-results") ŠTEVILO ZADETKOV NA STRANI
|
||||
label.input-name-txt(for="number-of-results") #{ t('ŠTEVILO ZADETKOV NA STRANI') }
|
||||
.row
|
||||
.col-sm-6.align-items-center
|
||||
select#numberOfHits.form-control.d-inline(name="numberOfHits")
|
||||
@@ -31,4 +31,4 @@ block body
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0
|
||||
|
||||
include /common/footer
|
||||
include /common/footer
|
||||
|
||||
@@ -0,0 +1,94 @@
|
||||
extends /layout
|
||||
|
||||
block pageSpecificScipts
|
||||
script(nonce=cspNonce src="/javascripts/admin.js")
|
||||
script(nonce=cspNonce src="/javascripts/profile-scripts.js")
|
||||
|
||||
block body
|
||||
section#fixed-top-section
|
||||
include /common/main-navigation
|
||||
+main-navigation(false)
|
||||
include /pages/profile/my-profile-side-menu-mixin
|
||||
- const d = { selection: 'delete-profile' }
|
||||
+sideNavigation(d)
|
||||
include /utilities/dictionaries-main-panel-header
|
||||
- const c = { sideMenu: true, h1: title, description: t('Tukaj lahko izbrišete svoj račun.'), buttons: [{ type: 'disabled', content: t('Shrani'), form: 'profileForm' }] }
|
||||
+mainHeader(c)
|
||||
|
||||
.content-hold-prerequisites
|
||||
#offset-main.main-container.mt-2
|
||||
form#profileForm.needs-validation(method="post" novalidate)
|
||||
div
|
||||
.subject-name
|
||||
label.input-name-txt(for="profile-username") #{ t('UPORABNIŠKO IME') }
|
||||
.row
|
||||
.col-sm-6.align-items-center
|
||||
input#profile-username.name-input.form-control.d-inline(
|
||||
type="text"
|
||||
name="username"
|
||||
disabled
|
||||
value=user.userName
|
||||
)
|
||||
.invalid-feedback
|
||||
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0
|
||||
|
||||
.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt(for="profile-name") #{ t('IME') }
|
||||
.row
|
||||
.col-sm-6
|
||||
input#profile-name.name-input.form-control.d-inline(
|
||||
type="text"
|
||||
name="name"
|
||||
minLength="1"
|
||||
disabled
|
||||
value=user.firstName
|
||||
)
|
||||
.invalid-feedback #{ t('Niste vpisali imena') }
|
||||
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0
|
||||
|
||||
.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt(for="profile-surname") #{ t('PRIIMEK') }
|
||||
.row
|
||||
.col-sm-6
|
||||
input#profile-surname.name-input.form-control.d-inline(
|
||||
type="text"
|
||||
name="surname"
|
||||
minLength="1"
|
||||
disabled
|
||||
value=user.lastName
|
||||
)
|
||||
.invalid-feedback #{ t('Niste vpisali priimka.') }
|
||||
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0
|
||||
|
||||
//- .mt-4
|
||||
.subject-name
|
||||
label.input-name-txt(for="profile-surname") ELEKTRONSKI NASLOV
|
||||
.row
|
||||
.col-sm-6
|
||||
input#profile-surname.name-input.form-control.d-inline(
|
||||
type="text"
|
||||
name="email"
|
||||
minLength="1"
|
||||
value=user.email
|
||||
)
|
||||
.invalid-feedback Neveljavni elektronski naslov.
|
||||
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0
|
||||
.mt-5.delete-btn-section
|
||||
button.btn.btn-delete-style(
|
||||
data-bs-target="#alert-modal"
|
||||
data-bs-toggle="modal"
|
||||
)
|
||||
img.i32x32(src="/images/exclamation-triangle-white.svg" alt="DEL")
|
||||
span.ps-2.text-white #{ t('IZBRIŠI') }
|
||||
include /common/footer
|
||||
include /utilities/modal-alert
|
||||
@@ -5,27 +5,33 @@ mixin sideNavigation(sideNavigationData)
|
||||
button#nav-button.nav-button
|
||||
img#burger-menu-img(
|
||||
src="/images/burger-menu-button-icon.svg"
|
||||
alt="Meni"
|
||||
alt=t('Meni')
|
||||
)
|
||||
span.nav-title Moj Profil
|
||||
span.nav-title #{ t('Moj Profil') }
|
||||
#mobile-right-holder
|
||||
nav
|
||||
ul.admin-nav-content.slidable
|
||||
ul.admin-nav-content.slidable.scroller-style
|
||||
li(
|
||||
class=sideNavigationData.selection === 'change-profile-data' ? 'focused-menu' : 'admin-nav-item'
|
||||
)
|
||||
a.active(href="/moj-racun")
|
||||
img(src="/images/user-gray.svg" alt="Basic")
|
||||
p Osnovni podatki
|
||||
img(src="/images/user-gray.svg" alt=t('Basic'))
|
||||
p #{ t('Osnovni podatki') }
|
||||
li(
|
||||
class=sideNavigationData.selection === 'change-profile-password' ? 'focused-menu' : 'admin-nav-item'
|
||||
)
|
||||
a.active(href="/spremeni-geslo")
|
||||
img(src="/images/lock-gray.svg" alt="Settings")
|
||||
p Spremeni geslo
|
||||
img(src="/images/lock-gray.svg" alt=t('Settings'))
|
||||
p #{ t('Spremeni geslo') }
|
||||
li(
|
||||
class=sideNavigationData.selection === 'change-profile-settings' ? 'focused-menu' : 'admin-nav-item'
|
||||
)
|
||||
a.active(href="/nastavitve-racuna")
|
||||
img(src="/images/cog.svg" alt="Settings")
|
||||
p Nastavitve
|
||||
img(src="/images/cog.svg" alt=t('Settings'))
|
||||
p #{ t('Nastavitve') }
|
||||
li(
|
||||
class=sideNavigationData.selection === 'delete-profile' ? 'focused-menu' : 'admin-nav-item'
|
||||
)
|
||||
a.active(href="/izbrisi-racun")
|
||||
img(src="/images/user-x.svg" alt=t('Delete profile'))
|
||||
p #{ t('Izbriši račun') }
|
||||
|
||||
@@ -11,15 +11,15 @@ block body
|
||||
- const d = { selection: 'change-profile-data' }
|
||||
+sideNavigation(d)
|
||||
include /utilities/dictionaries-main-panel-header
|
||||
- const c = { sideMenu: true, h1: 'Osnovni podatki', description: 'Tukaj lahko spremenite ime, priimek in elektronski naslov uporabnika.', buttons: [{ type: 'disabled', content: 'Shrani', form: 'profileForm' }] }
|
||||
- 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' }] }
|
||||
+mainHeader(c)
|
||||
|
||||
.content-hold-prerequisites
|
||||
#offset-main.main-container.mt-2.pe-5
|
||||
#offset-main.main-container.mt-2
|
||||
form#profileForm.needs-validation(method="post" novalidate)
|
||||
div
|
||||
.subject-name
|
||||
label.input-name-txt(for="profile-username") UPORABNIŠKO IME
|
||||
label.input-name-txt(for="profile-username") #{ t('UPORABNIŠKO IME') }
|
||||
.row
|
||||
.col-sm-6.align-items-center
|
||||
input#profile-username.name-input.form-control.d-inline(
|
||||
@@ -35,7 +35,7 @@ block body
|
||||
|
||||
.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt(for="profile-name") IME
|
||||
label.input-name-txt(for="profile-name") #{ t('IME') }
|
||||
.row
|
||||
.col-sm-6
|
||||
input#profile-name.name-input.form-control.d-inline(
|
||||
@@ -44,14 +44,14 @@ block body
|
||||
minLength="1"
|
||||
value=user.firstName
|
||||
)
|
||||
.invalid-feedback Niste vpisali imena
|
||||
.invalid-feedback #{ t('Niste vpisali imena') }
|
||||
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0
|
||||
|
||||
.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt(for="profile-surname") PRIIMEK
|
||||
label.input-name-txt(for="profile-surname") #{ t('PRIIMEK') }
|
||||
.row
|
||||
.col-sm-6
|
||||
input#profile-surname.name-input.form-control.d-inline(
|
||||
@@ -60,14 +60,14 @@ block body
|
||||
minLength="1"
|
||||
value=user.lastName
|
||||
)
|
||||
.invalid-feedback Niste vpisali priimka.
|
||||
.invalid-feedback #{ t('Niste vpisali priimka.') }
|
||||
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0
|
||||
|
||||
.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt(for="profile-surname") ELEKTRONSKI NASLOV
|
||||
label.input-name-txt(for="profile-surname") #{ t('ELEKTRONSKI NASLOV') }
|
||||
.row
|
||||
.col-sm-6
|
||||
input#profile-surname.name-input.form-control.d-inline(
|
||||
@@ -76,8 +76,8 @@ block body
|
||||
minLength="1"
|
||||
value=user.email
|
||||
)
|
||||
.invalid-feedback Neveljavni elektronski naslov.
|
||||
.invalid-feedback #{ t('Neveljavni elektronski naslov.') }
|
||||
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0
|
||||
include /common/footer
|
||||
include /common/footer
|
||||
|
||||
Reference in New Issue
Block a user