CJVT updates August and September 2026

This commit is contained in:
Luka Romih
2026-10-01 00:49:26 +02:00
parent fd02e25719
commit 83f73aeb58
135 changed files with 6146 additions and 1970 deletions
+22 -45
View File
@@ -2,6 +2,7 @@ extends /layout
block pageSpecificScipts
script(nonce=cspNonce src="/javascripts/admin.js")
script(nonce=cspNonce src="/javascripts/dictionary-list-table.js")
block body
section#fixed-top-section
@@ -16,50 +17,26 @@ block body
+mainHeader(c)
.content-hold-prerequisites
#offset-main.main-container.mt-3
.d-flex.justify-content-end
.d-flex
include /utilities/pager
+pager
-
const localeOptions = {
day: '2-digit',
month: '2-digit',
year: 'numeric',
hour: '2-digit',
minute: '2-digit',
}
.table-responsive
table.styled-table
thead
tr#thead
th= 'ID'
th= t('NASLOV')
th= t('STATUS')
th= t('USTVARJEN')
th= t('SPREMENJEN')
th= ''
tbody#page-results
each result in results
tr
td= result.id
td= result.name
if result.status === 'closed'
td= t('zaprt')
else if result.status ==='reviewed'
td= t('v predogledu')
else
td= t('odprt')
- const dateC = new Date(result.timeCreated).toLocaleDateString('sl-SL', localeOptions)
- const dateM = new Date(result.timeModified).toLocaleDateString('sl-SL', localeOptions)
td= dateC
td= dateM
td
a.image-link(
type="link"
href=`/admin/slovarji/${result.id}/podatki`
)
img(src="/images/u_edit-alt.svg" alt=t('Uredi'))
span.normal-gray.ms-1= t('Uredi')
include /components/dictionary/dictionary-list-table-mixin
+dictionaryListTable({
results,
page,
sortBy,
sortDir,
q,
pd,
sd,
lang,
status,
allPrimaryDomains,
allSecondaryDomains,
allLanguages,
allStatuses,
rowAction: {
hrefBuilder: id => `/admin/slovarji/${id}/podatki`,
icon: '/images/u_edit-alt.svg',
label: t('Uredi')
}
})
include /common/footer
@@ -19,3 +19,4 @@ block body
include /utilities/modal-alert
include /utilities/modal-alert-mixin
+alertModal('unsaved-data', t('Shrani'), t('Ne'), 'modal-save-btn', 'modal-dont-save-btn', t('Imate neshranjene spremembe. Ali jih želite shraniti?'))
+alertModal('name-collision-warning', t('Preimenuj'), t('Prekliči'), 'modal-rename-btn', 'modal-cancel-rename-btn', t('Pozor, slovar s tem imenom že obstaja. Ali res želite slovar preimenovati v ime, ki že obstaja?'))
@@ -1,7 +1,6 @@
extends /layout
block pageSpecificScipts
script(nonce=cspNonce src="/javascripts/dictionaries.js")
script(nonce=cspNonce src="/javascripts/dictionary-export.js")
block body
section#fixed-top-section
@@ -18,7 +18,7 @@ block body
include /common/main-navigation
+main-navigation(false)
block config
- const pageTypeObject = sentFrom
- const pageTypeObject = meta
- const subHeading = t('Urejanje')
- const description = t('Dodajte terminološki odgovor in ga utemeljite.')
@@ -35,11 +35,16 @@ block body
#offset-main.main-container.offset-correction
.row.mt-4.mx-0
.col.g-0
p.text-header-description-gray.mb-2 <b>#{ t('Datum vprašanja:') }</b> #{ entry.timeCreated }
p.text-header-description-gray.mb-2
!= `<b>${t('Datum vprašanja:')}</b>`
time(data-timestamp=entry.timeCreated data-timestamp-format="date")
p.text-header-description-gray.mt-2.mb-0 <b>#{ t('Uporabnik') }:</b> #{ author.firstName }
p.text-header-description-gray.mt-1 <b>#{ t('E-pošta') }:</b> #{ author.email }
hr
p.text-header-description-gray.mb-2 <b>#{ t('Datum objave/spremembe') }:</b> #{ entry.timePublished }
p.text-header-description-gray.mb-2
!= `<b>${t('Datum objave/spremembe')}:</b>`
if entry.timePublished
time(data-timestamp=entry.timePublished data-timestamp-format="date")
p.text-header-description-gray.mt-2.mb-0 <b>#{ t('Avtorji mnenja:') }</b>
span.text-header-description-gray= ` ${entry.answerAuthors ? entry.answerAuthors.join(`, `) : ''}`
p.text-header-description-gray.mt-1 <b>#{ t('URL povezava do mnenja:') }</b> #{ isPublished?`${urlPrefix}/svetovanje/vprasanje/${id}`:'' }
@@ -31,7 +31,9 @@ block body
.consultancy-item-detailed
.row
.col-6.d-flex.justify-content-start
span Vprašanje poslano: #{ entry.timeCreated }
span
| Vprašanje poslano:
time(data-timestamp=entry.timeCreated data-timestamp-format="date")
//- .col-6.d-flex.justify-content-end
button.me-3.bg-transparent.no-border
img.i1p5rx1p5r(src="/images/copy.svg")
@@ -19,3 +19,4 @@ block body
include /utilities/modal-alert
include /utilities/modal-alert-mixin
+alertModal('unsaved-data', t('Shrani'), t('Ne'), 'modal-save-btn', 'modal-dont-save-btn', t('Imate neshranjene spremembe. Ali jih želite shraniti?'))
+alertModal('name-collision-warning', t('Preimenuj'), t('Prekliči'), 'modal-rename-btn', 'modal-cancel-rename-btn', t('Pozor, slovar s tem imenom že obstaja. Ali res želite slovar preimenovati v ime, ki že obstaja?'))
@@ -2,7 +2,6 @@ extends /layout
block pageSpecificScipts
script(nonce=cspNonce src="/javascripts/dictionaries.js")
script(nonce=cspNonce src="/javascripts/dictionary-export.js")
block body
section#fixed-top-section
+1 -7
View File
@@ -16,12 +16,6 @@ block body
.content-hold-prerequisites
#offset-main.ps-3.pe-3
if dictionaries.length
-
const localeOptions = {
day: '2-digit',
month: '2-digit',
year: 'numeric'
}
each dictionary, index in dictionaries
div(
class=index ? 'container-fluid dictionary-content mt-4 pb-2 pt-1' : 'container-fluid dictionary-content mt-3 pb-2 pt-1'
@@ -37,7 +31,7 @@ block body
span.dictionary-value.me-5= dictionary.countEntries
.d-sm-flex.mt-2
span.dictionary-attributes.me-3.ms-xl-5.text-nowrap= t('Zadnja sprememba')
span.dictionary-value.me-md-5.me-2.d-block= dictionary.timeModified.toLocaleDateString('sl-SL', localeOptions)
span.dictionary-value.me-md-5.me-2.d-block: time(data-timestamp=dictionary.timeModified.toISOString() data-timestamp-format="date")
.d-lg-flex
.d-sm-flex.mt-2
span.dictionary-attributes.me-3.ms-xl-5.d-inline= t('Status')
+2
View File
@@ -18,4 +18,6 @@ block body
include /utilities/dictionary-main-input
+dictionaryMainInput({ formId: 'form-dictionary-new', hasStructure: true})
include /utilities/modal-alert
include /utilities/modal-alert-mixin
+alertModal('name-collision-warning', t('Ustvari'), t('Prekliči'), 'modal-create-btn', 'modal-cancel-create-btn', t('Pozor, slovar s tem imenom že obstaja. Ali res želite izdelati slovar s tem imenom?'))
include /common/footer
+7 -2
View File
@@ -11,7 +11,7 @@ block body
include /common/side-menu-fake
+sideNavigationFake
include /utilities/dictionaries-main-panel-header
- const c = { noSidebar: false, hrefurl: '.', h2: t('Luščenje iz lastnih besedil | dodaj opravilo '), h1: t('Uporabnikovi dokumenti'), description: t('Uporabnik na tem mestu izdela specializirani korpus iz besedil, ki jih je zbral in shranil sam. Besedila naj bodo izbrana po načelih tvorjenja specializiranih korpusov. Za uspešno luščenje priporočamo najmanj 10 besedil. Vsa besedila naj bodo shranjena v besedilnem formatu (.txt). Luščenje podpira tudi formate .docx in .pdf, vendar so rezultati slabši.'), buttons: [{ type: 'cancel', content: t('Naprej'), classAtr: 'btn border-header header-btn-secondary link-back' }] }
- const c = { noSidebar: false, hrefurl: '.', h2: t('Luščenje iz lastnih besedil | dodaj opravilo '), h1: t('Uporabnikovi dokumenti'), description: t('Uporabnik na tem mestu izdela specializirani korpus iz besedil, ki jih je zbral in shranil sam. Besedila naj bodo izbrana po načelih tvorjenja specializiranih korpusov. Za uspešno luščenje priporočamo najmanj 10 besedil. Vsa besedila naj bodo shranjena v besedilnem formatu (.txt). Luščenje podpira tudi formate .docx in .pdf, vendar so rezultati slabši.') }
+mainHeader(c)
.content-hold-prerequisites.mt-2
#offset-main
@@ -31,7 +31,7 @@ block body
td.file-index= index + 1
td.file-name= document.filename
td.file-size= document.size
td.file-date-modified= new Date(document.timeModified).toLocaleDateString('sl-SL')
td.file-date-modified: time(data-timestamp=new Date(document.timeModified).toISOString() data-timestamp-format="date")
td.file-last-cell
button.p-0.delete-file.delete-btn-table
img(src="/images/red-trash-icon.svg" alt="")
@@ -54,6 +54,11 @@ block body
)
.col.d-flex.align-items-center.ms-md-3
span.gray-info= t('Dodaj besedilo za luščenje terminoloških kandidatov iz lastnega specializiranega korpusa. Ko boste dodali vsa besedila, ki ste jih izbrali, morate izbiro shraniti.')
.form-actions.row.ms-2.me-2.align-items-center.mt-4
.col-sm-5
a.btn.border-header(href=`/luscenje/${id}`)= t('Nazaj na nastavitve parametrov')
.col.d-flex.align-items-center.ms-md-3
span.gray-info= t('Po urejanju nabora datotek se s klikom vrnemo na stran z nastavitvami parametrov luščenja.')
//- include /utilities/modal-spinner
include /utilities/modal-alert
include /common/footer
+31 -14
View File
@@ -11,24 +11,11 @@ block body
include /common/side-menu-fake
+sideNavigationFake
include /utilities/dictionaries-main-panel-header
- const c = { noSidebar: false, hrefurl: '/luscenje', h2: t('Luščenje iz lastnih besedil'), h1: t('Dodaj opravilo'), description: t('Luščenje terminoloških kandidatov iz besedil, ki jih uporabnik namensko izbere, je najučinkovitejše. Primerno izbrano ime opravila, vam omogoča, da lahko sledite, katera luščenja ste že opravili. Ko vnesete podatke, morate vse spremembe shraniti. Zaradi omejenega prostora za shranjevanje lahko shranite največ pet zadnjih luščenj. '), buttons: [{ type: 'cancel', url:'/luscenje', content: t('Naprej'), classAtr:"btn border-header header-btn-secondary" }, { type: 'button', content: t('Shrani'), classAtr:'btn btn-primary disabled header-btn', form: 'extraction-name' }] }
- const c = { noSidebar: false, hrefurl: '/luscenje', h2: t('Luščenje iz lastnih besedil'), h1: t('Nastavi parametre luščenja'), description: t('Luščenje terminoloških kandidatov iz besedil, ki jih uporabnik namensko izbere, je najučinkovitejše. Primerno izbrano ime opravila, vam omogoča, da lahko sledite, katera luščenja ste že opravili. Ko vnesete podatke, morate vse spremembe shraniti. Zaradi omejenega prostora za shranjevanje lahko shranite največ pet zadnjih luščenj. ') }
+mainHeader(c)
.root-container
.content-hold-prerequisites.mt-2
#offset-main
form#extraction-name(method="post")
.subject-name
label.smaller-black-uppercase(for="name")= t('IME')
.row.pe-0
.col-sm-6.pe-0
input#name.name-input.form-control.d-inline(
type="text"
name="name"
value=extraction.name
)
.col-sm.d-flex.align-items-center.ms-sm-4.ps-sm-0.mt-1.mt-sm-0
span.d-md-inline.d-block.smaller-gray-info= t('Izberite takšno ime, ki vam bo pomagalo slediti rezultatom, če boste luščenje besedil opravili večkrat.')
.table-documents.mt-4.d-sm-flex
.col-sm-6.d-flex.flex-column
.personal-documents.justify-content-between.d-flex.align-items-center
@@ -67,4 +54,34 @@ block body
.col-sm.d-flex.ms-sm-4.mt-1.mt-sm-0
.d-md-inline.d-block.smaller-gray-info!= t('Dodate lahko seznam besed, ki jih v seznam terminoloških kandidatov ne želite vključiti. Seznam naj bo shranjen v formatu .txt. Vse spremembe morate shraniti. <a class="smaller-gray-info" href="/pomoc#help-stop-lists">Več...</a>')
form#extraction-name.mt-4(method="post")
.subject-name
label.smaller-black-uppercase(for="name")= t('IME')
.row.pe-0
.col-sm-6.pe-0
input#name.name-input.form-control.d-inline(
type="text"
name="name"
value=extraction.name
)
.col-sm.d-flex.align-items-center.ms-sm-4.ps-sm-0.mt-1.mt-sm-0
span.d-md-inline.d-block.smaller-gray-info= t('Izberite takšno ime, ki vam bo pomagalo slediti rezultatom, če boste luščenje besedil opravili večkrat.')
.form-actions.mt-4
.row.pe-0.align-items-center
.col-sm-6.pe-0
button#mpbtn.btn.btn-primary.disabled(
form="extraction-name"
)= t('Shrani')
.col-sm.d-flex.align-items-center.ms-sm-4.ps-sm-0.mt-1.mt-sm-0
span.d-md-inline.d-block.smaller-gray-info= t('S klikom shranite spremembe parametrov.')
.row.pe-0.align-items-center.mt-3
.col-sm-6.pe-0
a.btn.border-header(
type="link"
href="/luscenje"
)= t('Zaključi nastavljanje parametrov')
.col-sm.d-flex.align-items-center.ms-sm-4.ps-sm-0.mt-1.mt-sm-0
span.d-md-inline.d-block.smaller-gray-info= t('S klikom se vrnete na stran, kjer lahko zaženete postopek luščenja.')
include /common/footer
+15 -27
View File
@@ -14,18 +14,6 @@ block body
include /utilities/dictionaries-main-panel-header
- const c = { sideMenu: false, h2: t('Luščenje'), h1: t('Seznam luščenj'), description: t('Nabor vseh luščenj, s katerimi lahko uporabnik iz izbranih besedil pridobi sezname terminoloških kandidatov. Posamezne terminološke kandidate lahko preveri tudi v konkordančniku.') }
+mainHeader(c)
-
const localeDayOptions = {
day: '2-digit',
month: '2-digit',
year: 'numeric'
}
-
const localeHourOptions = {
hour: '2-digit',
minute: '2-digit',
}
.content-hold-prerequisites
#offset-main.mt-2
if extractions.length >= 5
@@ -92,9 +80,9 @@ block body
.d-flex.align-items-center
img.me-1(src="/images/fi_calendar.svg")
span.smaller-gray-uppercase.align-items-center= t('Začetek')
.d-grid.ms-4.align-items-center
span.bold-weight-black= el.timeStarted.toLocaleString('sl-SI', localeDayOptions)
span.normal-gray= el.timeStarted.toLocaleString('sl-SI', localeHourOptions)
.d-grid.ms-4.align-items-center(data-timestamp=el.timeStarted.toISOString())
span.bold-weight-black(data-timestamp-part="date")
span.normal-gray(data-timestamp-part="time")
hr.mt-2.mb-3
.d-flex.justify-content-between
.d-sm-flex.align-items-center.mb-0.flex-grow-1
@@ -113,17 +101,17 @@ block body
.d-sm-flex.align-items-center
img.me-1(src="/images/fi_calendar.svg")
span.smaller-gray-uppercase.align-items-center= t('Začetek')
.d-grid.ms-2.ms-sm-4.align-items-center
span.bold-weight-black= el.timeStarted.toLocaleString('sl-SI', localeDayOptions)
span.normal-gray= el.timeStarted.toLocaleString('sl-SI', localeHourOptions)
.d-grid.ms-2.ms-sm-4.align-items-center(data-timestamp=el.timeStarted.toISOString())
span.bold-weight-black(data-timestamp-part="date")
span.normal-gray(data-timestamp-part="time")
.d-md-flex.start-date.ms-sm-5.ms-2.mt-2.mt-md-0
.d-md-grid.ms-md-1.align-items-center
.d-md-flex.align-items-center
img.me-1(src="/images/fi_calendar.svg")
span.smaller-gray-uppercase.align-items-center= t('Konec')
.d-grid.ms-4.align-items-center
span.bold-weight-black= el.timeFinished.toLocaleString('sl-SI', localeDayOptions)
span.normal-gray= el.timeFinished.toLocaleString('sl-SI', localeHourOptions)
.d-grid.ms-4.align-items-center(data-timestamp=el.timeFinished.toISOString())
span.bold-weight-black(data-timestamp-part="date")
span.normal-gray(data-timestamp-part="time")
//- TODO: Once duplication is implemented remove ".invisible" class
.d-flex.align-items-center.justify-content-lg-end.mt-2.mt-sm-0.ms-2.ms-md-0.invisible
@@ -158,17 +146,17 @@ block body
.d-sm-flex.align-items-center
img.me-1(src="/images/fi_calendar.svg")
span.smaller-gray-uppercase.align-items-center= t('Začetek')
.d-grid.ms-2.ms-sm-4.align-items-center
span.bold-weight-black= el.timeStarted.toLocaleString('sl-SI', localeDayOptions)
span.normal-gray= el.timeStarted.toLocaleString('sl-SI', localeHourOptions)
.d-grid.ms-2.ms-sm-4.align-items-center(data-timestamp=el.timeStarted.toISOString())
span.bold-weight-black(data-timestamp-part="date")
span.normal-gray(data-timestamp-part="time")
.d-md-flex.start-date.ms-sm-5.ms-2.mt-2.mt-md-0
.d-md-grid.ms-md-1.align-items-center
.d-md-flex.align-items-center
img.me-1(src="/images/fi_calendar.svg")
span.smaller-gray-uppercase.align-items-center= t('Konec')
.d-grid.ms-4.align-items-center
span.bold-weight-black= el.timeFinished.toLocaleString('sl-SI', localeDayOptions)
span.normal-gray= el.timeFinished.toLocaleString('sl-SI', localeHourOptions)
.d-grid.ms-4.align-items-center(data-timestamp=el.timeFinished.toISOString())
span.bold-weight-black(data-timestamp-part="date")
span.normal-gray(data-timestamp-part="time")
.d-flex.align-items-center.ms-2.ms-sm-auto.mt-2.mt-md-0
img(src="/images/fi_check-circle.svg")
@@ -11,7 +11,7 @@ block body
include /common/side-menu-fake
+sideNavigationFake
include /utilities/dictionaries-main-panel-header
- const c = { noSidebar: false, hrefurl: '.', h2: t('Luščenje | dodaj opravilo'), h1: t('Seznam neželenih terminov'), description: t('Seznam terminoloških kandidatov bo natančnejši, če boste dodali tudi seznam neželenih besed, ki naj jih luščilnik izloči iz seznama. Seznam lahko vsebuje splošne termine, npr. tabela, kazalnik, ali pogoste slovnične besede, zlasti veznike, pomožne glagole.'), buttons: [{ type: 'cancel', content: t('Naprej'), classAtr: 'btn border-header header-btn-secondary link-back' }] }
- const c = { noSidebar: false, hrefurl: '.', h2: t('Luščenje | dodaj opravilo'), h1: t('Seznam neželenih terminov'), description: t('Seznam terminoloških kandidatov bo natančnejši, če boste dodali tudi seznam neželenih besed, ki naj jih luščilnik izloči iz seznama. Seznam lahko vsebuje splošne termine, npr. tabela, kazalnik, ali pogoste slovnične besede, zlasti veznike, pomožne glagole.') }
+mainHeader(c)
.content-hold-prerequisites.mt-2
#offset-main
@@ -31,7 +31,7 @@ block body
td.file-index= index + 1
td.file-name= document.filename
td.file-size= document.size
td.file-date-modified= new Date(document.timeModified).toLocaleDateString('sl-SL')
td.file-date-modified: time(data-timestamp=new Date(document.timeModified).toISOString() data-timestamp-format="date")
td.file-last-cell
button.p-0.delete-file.delete-btn-table
img(src="/images/red-trash-icon.svg" alt="")
@@ -54,6 +54,11 @@ block body
)
.col.d-flex.align-items-center.ms-md-3
span.gray-info!= t('Dodate lahko seznam besed, ki jih v seznam terminoloških kandidatov ne želite vključiti. Seznam naj bo shranjen v formatu .txt. Na koncu morate spremembe shraniti. <a class="smaller-gray-info" href="/pomoc#help-stop-lists" target="_blank">Več ...</a>')
.form-actions.row.ms-2.me-2.align-items-center.mt-4
.col-sm-5
a.btn.border-header(href=`/luscenje/${id}`)= t('Nazaj na nastavitve parametrov')
.col.d-flex.align-items-center.ms-md-3
span.gray-info= t('Po urejanju nabora datotek se s klikom vrnemo na stran z nastavitvami parametrov luščenja.')
//- include /utilities/modal-spinner
include /utilities/modal-alert
include /common/footer
+1 -2
View File
@@ -11,8 +11,7 @@ block body
.index-nav
ul.nav
li.nav-item
a(href="https://www.slovenscina.eu/")
img.logo(src="/images/logo.png" alt="Logo")
img.logo(src="/images/logo.png" alt="Logo")
include ../components/navigation/main-navigation-right-mixin
@@ -0,0 +1,65 @@
extends /layout
block pageSpecificScipts
script(nonce=cspNonce src="/javascripts/oidc-forms.js")
script(nonce=cspNonce src="/javascripts/offset-header.js")
block body
section#fixed-top-section
include /common/main-navigation
+main-navigation(false)
include /utilities/generic-main-panel-header
- const c = { h1: t('Pretvorite svoj račun'), description: t('Elektronski naslov, prijavljen prek Univerze v Ljubljani, se ujema z obstoječim računom na portalu z uporabniškim imenom ') + existingUsername + t('. Spodnji podatki prihajajo iz vaše prijave pri Univerzi v Ljubljani in jih ni mogoče spreminjati. Z vnosom gesla obstoječega računa in potrditvijo boste ta račun trajno pretvorili: uporabniško ime, ime in priimek bodo nadomeščeni s podatki spodaj, geslo pa bo odstranjeno - odslej se boste lahko prijavili le še prek gumba za prijavo z Univerzo v Ljubljani.') }
+mainHeader(c)
.content-hold-prerequisites.ps-3.pe-3
#offset-main.container-fluid.mt-4.px-0
.p-squeeze-lg
.rpm-corr
form#convert-account-form(
action="/api/v1/users/convert-account"
method="POST"
autocomplete="off"
)
.subject-name
label.input-name-txt(for="ca-username") #{ t('UPORABNIK') }
input#ca-username.name-input.form-control.d-block.w-100(
type="text"
value=suggestedUsername
disabled
)
.mt-4
.subject-name
label.input-name-txt(for="ca-first-name") #{ t('IME') }
input#ca-first-name.name-input.form-control.d-block.w-100(
type="text"
value=claims.givenName
disabled
)
.mt-4
.subject-name
label.input-name-txt(for="ca-last-name") #{ t('PRIIMEK') }
input#ca-last-name.name-input.form-control.d-block.w-100(
type="text"
value=claims.familyName
disabled
)
.mt-4
.subject-name
label.input-name-txt(for="ca-email") #{ t('ELEKTRONSKI NASLOV') }
input#ca-email.name-input.form-control.d-block.w-100(
type="text"
value=claims.email
disabled
)
.mt-4
.subject-name
label.input-name-txt(for="ca-password") #{ t('GESLO') }
input#ca-password.name-input.form-control.d-block.w-100(
name="password"
type="password"
)
p#convert-account-error.error-text.pt-3.mb-1
.row.pt-3
.col
button#convert-account-btn.btn.btn-primary.h-auto(type="submit")= t('POTRDI PRETVORBO')
include /common/footer
@@ -0,0 +1,60 @@
extends /layout
block pageSpecificScipts
script(nonce=cspNonce src="/javascripts/oidc-forms.js")
script(nonce=cspNonce src="/javascripts/offset-header.js")
block body
section#fixed-top-section
include /common/main-navigation
+main-navigation(false)
include /utilities/generic-main-panel-header
- const c = { h1: t('Ustvarite svoj profil'), description: t('Spodnji podatki prihajajo iz vaše prijave pri Univerzi v Ljubljani in bodo uporabljeni za ustvarjanje vašega računa. Tukaj jih ni mogoče spreminjati.') }
+mainHeader(c)
.content-hold-prerequisites.ps-3.pe-3
#offset-main.container-fluid.mt-4.px-0
.p-squeeze-lg
.rpm-corr
form#create-profile-form(
action="/api/v1/users/create-profile"
method="POST"
autocomplete="off"
)
.subject-name
label.input-name-txt(for="cp-username") #{ t('UPORABNIK') }
input#cp-username.name-input.form-control.d-block.w-100(
type="text"
value=suggestedUsername
disabled
)
.mt-4
.subject-name
label.input-name-txt(for="cp-first-name") #{ t('IME') }
input#cp-first-name.name-input.form-control.d-block.w-100(
type="text"
value=claims.givenName
disabled
)
.mt-4
.subject-name
label.input-name-txt(for="cp-last-name") #{ t('PRIIMEK') }
input#cp-last-name.name-input.form-control.d-block.w-100(
type="text"
value=claims.familyName
disabled
)
.mt-4
.subject-name
label.input-name-txt(for="cp-email") #{ t('ELEKTRONSKI NASLOV') }
input#cp-email.name-input.form-control.d-block.w-100(
type="text"
value=claims.email
disabled
)
p#create-profile-error.error-text.pt-3.mb-1
.row.pt-3
.col
button#create-profile-btn.btn.btn-primary.h-auto(
type="submit"
)= t('POTRDI')
include /common/footer
@@ -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'
)
+5 -1
View File
@@ -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.') }
@@ -2,6 +2,7 @@ extends /layout
block pageSpecificScipts
script(nonce=cspNonce src="/javascripts/reset-password.js")
script(nonce=cspNonce src="/javascripts/offset-header.js")
block body
section#fixed-top-section
@@ -16,7 +17,7 @@ block body
+mainHeader(c)
.content-hold-prerequisites.ps-3.pe-3
#offset-main.container-fluid.mt-4.errc.px-0
#offset-main.container-fluid.mt-4.px-0
.p-squeeze-lg
.rpm-corr
if (isTokenValid)
@@ -0,0 +1,51 @@
extends /layout
block pageSpecificScipts
script(nonce=cspNonce src="/javascripts/offset-header.js")
script(nonce=cspNonce src="/javascripts/view-resources-details.js")
block body
section#fixed-top-section
include /common/main-navigation
+main-navigation(false)
#offset-padding.header-section-root.no-side-menu.p-squeeze-lg
#chevrons-left.d-flex
a#btn-chevrons.no-text-decoration.btn-chevrons-left.pt-0.h-24.d-flex(
type="link"
href="/ogled-virov"
)
img.align-middle(src="/images/chevrons-left.svg")
span.ms-2.text-header-description-gray.fw-700= t('Nazaj')
.d-flex.justify-content-between.flex-md-nowrap.flex-wrap
.header-container-left-side.d-flex
.header-container-divider-left
h2#site-header-title= dictionary[`name${capitalize(determinedLanguage)}`]
h1#site-heading= t('Osnovni podatki')
hr#header-row.mt-1.mb-0
include /utilities/dictionary-description-readonly-mixin
+dictionaryDescriptionReadonly({ dictionary, allPrimaryDomains, associatedSecondaryDomains, status, determinedLanguage })
.content-hold-prerequisites
#offset-main.ps-3.pe-3.mt-4
.p-squeeze-lg
h5.navigation-text-color= t('Kontaktiraj avtorje')
form#contact-authors-form.needs-validation.mt-3(
action=`/api/v1/dictionaries/${dictionary.id}/contact-authors`
method="post"
novalidate
)
textarea#contact-authors-message.form-control(
name="message"
rows="10"
style="resize: vertical"
required
)
.invalid-feedback= t('Niste vpisali sporočila.')
button.btn.btn-primary.mt-3(type="submit")= t('Pošlji')
include /utilities/modal-response
+responseModal("contact-authors-response", t('Razumem'), "contact-authors-understand-btn", t('Sporočilo je bilo poslano avtorjem slovarja.'))
include /common/footer
@@ -0,0 +1,51 @@
extends /layout
block pageSpecificScipts
script(nonce=cspNonce src="/javascripts/offset-header.js")
script(nonce=cspNonce src="/javascripts/dictionary-list-table.js")
block body
section#fixed-top-section
include /common/main-navigation
+main-navigation(false)
#offset-padding.header-section-root.no-side-menu
#chevrons-left.d-flex
a#btn-chevrons.no-text-decoration.btn-chevrons-left.pt-0.h-24.d-flex(
type="link"
href="/"
)
img.align-middle(src="/images/chevrons-left.svg")
span.ms-2.text-header-description-gray.fw-700= t('Nazaj')
.d-flex.justify-content-between.flex-md-nowrap.flex-wrap
.header-container-left-side.d-flex
.header-container-divider-left
h1#site-heading= t('Seznam slovarjev')
span#text-description.pe-xl-5.page-description= t('Seznam vseh slovarjev, ki jih uredniki, sicer registrirani uporabniki, urejajo na tem portalu.')
hr#header-row.mt-1.mb-0
.content-hold-prerequisites
#offset-main.ps-3.pe-3.mt-3
include /components/dictionary/dictionary-list-table-mixin
+dictionaryListTable({
results,
page,
sortBy,
sortDir,
q,
pd,
sd,
lang,
status,
allPrimaryDomains,
allSecondaryDomains,
allLanguages,
allStatuses,
rowAction: {
hrefBuilder: id => `/ogled-virov/${id}/podatki`,
icon: '/images/eye.svg',
label: t('Podatki')
}
})
include /common/footer