Initial commit
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
extends /layout
|
||||
|
||||
block pageSpecificScipts
|
||||
script(nonce=cspNonce src="/javascripts/admin.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: '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' }] }
|
||||
+mainHeader(c)
|
||||
|
||||
.content-hold-prerequisites
|
||||
#offset-main.main-container.mt-2.pe-5
|
||||
form.needs-validation(method="post" novalidate)
|
||||
div
|
||||
.subject-name
|
||||
label.input-name-txt(for="password-old") STARO GESLO
|
||||
.row
|
||||
.col-sm-6.align-items-center
|
||||
input#password-old.name-input.form-control.d-inline(
|
||||
type="password"
|
||||
name="password-old"
|
||||
value=""
|
||||
)
|
||||
.invalid-feedback 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
|
||||
.row
|
||||
.col-sm-6
|
||||
input#password-new.name-input.form-control.d-inline(
|
||||
type="password"
|
||||
name="password-new"
|
||||
minLength="1"
|
||||
value=""
|
||||
)
|
||||
.invalid-feedback 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
|
||||
.row
|
||||
.col-sm-6
|
||||
input#password-repeat.name-input.form-control.d-inline(
|
||||
type="password"
|
||||
name="password-repeat"
|
||||
minLength="1"
|
||||
value=""
|
||||
)
|
||||
.invalid-feedback 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
|
||||
@@ -0,0 +1,34 @@
|
||||
extends /layout
|
||||
|
||||
block pageSpecificScipts
|
||||
script(nonce=cspNonce src="/javascripts/admin.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: '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' }] }
|
||||
+mainHeader(c)
|
||||
|
||||
.content-hold-prerequisites
|
||||
#offset-main.main-container.mt-2.pe-5
|
||||
form#profileForm.needs-validation(method="post" novalidate)
|
||||
div
|
||||
.subject-name
|
||||
label.input-name-txt(for="number-of-results") ŠTEVILO ZADETKOV NA STRANI
|
||||
.row
|
||||
.col-sm-6.align-items-center
|
||||
select#numberOfHits.form-control.d-inline(name="numberOfHits")
|
||||
each hit in hitsPerPageArr
|
||||
option(value=hit selected=hit === hitsForUser)= hit
|
||||
|
||||
.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
|
||||
|
||||
include /common/footer
|
||||
@@ -0,0 +1,31 @@
|
||||
mixin sideNavigation(sideNavigationData)
|
||||
.admin-nav
|
||||
#admin-nav-mobile.admin-nav-mobile
|
||||
.mobile-left-holder
|
||||
button#nav-button.nav-button
|
||||
img#burger-menu-img(
|
||||
src="/images/burger-menu-button-icon.svg"
|
||||
alt="Meni"
|
||||
)
|
||||
span.nav-title Moj Profil
|
||||
#mobile-right-holder
|
||||
nav
|
||||
ul.admin-nav-content.slidable
|
||||
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
|
||||
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
|
||||
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
|
||||
@@ -0,0 +1,83 @@
|
||||
extends /layout
|
||||
|
||||
block pageSpecificScipts
|
||||
script(nonce=cspNonce src="/javascripts/admin.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: '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' }] }
|
||||
+mainHeader(c)
|
||||
|
||||
.content-hold-prerequisites
|
||||
#offset-main.main-container.mt-2.pe-5
|
||||
form#profileForm.needs-validation(method="post" novalidate)
|
||||
div
|
||||
.subject-name
|
||||
label.input-name-txt(for="profile-username") 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") IME
|
||||
.row
|
||||
.col-sm-6
|
||||
input#profile-name.name-input.form-control.d-inline(
|
||||
type="text"
|
||||
name="name"
|
||||
minLength="1"
|
||||
value=user.firstName
|
||||
)
|
||||
.invalid-feedback 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
|
||||
.row
|
||||
.col-sm-6
|
||||
input#profile-surname.name-input.form-control.d-inline(
|
||||
type="text"
|
||||
name="surname"
|
||||
minLength="1"
|
||||
value=user.lastName
|
||||
)
|
||||
.invalid-feedback 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
|
||||
include /common/footer
|
||||
Reference in New Issue
Block a user