CJVT updates August and September 2026
This commit is contained in:
@@ -32,7 +32,7 @@ mixin consultancyItem(data, section)
|
||||
.circle.ms-1.align-items-center.justify-content-center.d-flex
|
||||
span.pt-0.question-asked-time.text-p625rem #{ data.sharedAuthors.length }
|
||||
span.d-inline-block.pt-0.ps-1.question-asked-time.text-p875rem.ms-2.me-1 •
|
||||
span.d-inline-block.pt-0.ps-1.question-asked-time.text-p875rem= `${data.formattedTimeCreated}`
|
||||
span.d-inline-block.pt-0.ps-1.question-asked-time.text-p875rem: time(data-timestamp=data.timeCreated data-timestamp-format="date")
|
||||
if (data.title)
|
||||
.row.mt-2.mb-2
|
||||
.col
|
||||
|
||||
@@ -4,8 +4,9 @@ mixin consultancyItem(entry)
|
||||
.row.mt-4.mb-2
|
||||
.col.d-flex.justify-content-start
|
||||
//- 9. 11. 2021 --> questionDateDMYformat
|
||||
//- span.question-asked-time.text-p875rem= `Vprašanje poslano: ${entry.formattedTimeCreated}`
|
||||
span.question-asked-time.text-p875rem= t('Vprašanje poslano:') + `${entry.formattedTimeCreated}`
|
||||
span.question-asked-time.text-p875rem
|
||||
= t('Vprašanje poslano:')
|
||||
time(data-timestamp=entry.timeCreated data-timestamp-format="date")
|
||||
.row.mb-2
|
||||
.col
|
||||
h5.pb-0.title-cons
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
mixin dictionaryListTable(data)
|
||||
.d-flex.justify-content-between.flex-wrap
|
||||
#admin-dict-filter-root.admin-dict-filter-root
|
||||
.search-root-mobile-only.ps-0.pe-0
|
||||
#searchbar-main.text-center
|
||||
.search-bar.height-46p(tabindex="0")
|
||||
button.searchbar-icon-container#search-dictionaries(type="button")
|
||||
img.search_icon(src="/images/search.svg" alt="OK")
|
||||
input#dict-name-search.search-input(
|
||||
type="text"
|
||||
placeholder=t('Ime slovarja')
|
||||
value=data.q
|
||||
)
|
||||
button#keyboard.search-button-keyboard
|
||||
span
|
||||
img.keyboard(src="/images/keyboard.svg" alt="Keys")
|
||||
button#advanced-search.dropdown-btn
|
||||
img(src="/images/dropdown.svg" alt="Opt")
|
||||
#admin-dict-filter-panel.advanced-search-root(
|
||||
class=(data.pd.length || data.sd.length || data.lang.length || data.status.length) ? '' : 'd-none-weak'
|
||||
)
|
||||
.advanced-search-filter-section
|
||||
.advanced-search-filter-division
|
||||
span
|
||||
.d-flex.w-100
|
||||
label.d-flex.flex-grow-1.align-items-end
|
||||
select#filter-domain-primary.select-admin-domain-primary(
|
||||
multiple="multiple"
|
||||
)
|
||||
each domain in data.allPrimaryDomains
|
||||
option(
|
||||
value=domain.id
|
||||
selected=data.pd.includes(String(domain.id))
|
||||
)= domain.name
|
||||
span
|
||||
.d-flex.w-100
|
||||
label.d-flex.flex-grow-1.align-items-end
|
||||
select#filter-domain-secondary.select-admin-domain-secondary(
|
||||
multiple="multiple"
|
||||
)
|
||||
each domain in data.allSecondaryDomains
|
||||
option(
|
||||
value=domain.id
|
||||
selected=data.sd.includes(String(domain.id))
|
||||
)= domain.name
|
||||
.advanced-search-filter-division
|
||||
span
|
||||
.d-flex.w-100
|
||||
label.d-flex.flex-grow-1.align-items-end
|
||||
select#filter-language.select-admin-language(
|
||||
multiple="multiple"
|
||||
)
|
||||
each language in data.allLanguages
|
||||
option(
|
||||
value=language.id
|
||||
selected=data.lang.includes(String(language.id))
|
||||
)= language.name
|
||||
span
|
||||
.d-flex.w-100
|
||||
label.d-flex.flex-grow-1.align-items-end
|
||||
select#filter-status.select-admin-status(multiple="multiple")
|
||||
each s in data.allStatuses
|
||||
option(value=s.value selected=data.status.includes(s.value))= s.label
|
||||
.advanced-search-final-options
|
||||
span
|
||||
button#clear-filters.btn.clear-f(type="button")= t('Počisti filtre')
|
||||
button#apply-filters.btn.search-btn-a(type="button")= t('Upoštevaj filtre')
|
||||
include /utilities/keyboard
|
||||
+keyboard()
|
||||
.d-flex
|
||||
include /utilities/pager
|
||||
+pager(data.page)
|
||||
|
||||
.table-responsive
|
||||
table.styled-table
|
||||
thead
|
||||
tr#thead
|
||||
- const arrowSrc = data.sortDir === 'asc' ? '/images/arrow_drop_up.svg' : '/images/arrow_drop_down.svg'
|
||||
th
|
||||
button#sortById.no-bg.no-border.text-decoration-none(type="button")
|
||||
span= 'ID'
|
||||
img#idImg(class=data.sortBy === 'id' ? '' : 'invisible' src=arrowSrc alt="")
|
||||
th
|
||||
button#sortByName.no-bg.no-border.text-decoration-none(type="button")
|
||||
span= t('NASLOV')
|
||||
img#nameImg(class=data.sortBy === 'name' ? '' : 'invisible' src=arrowSrc alt="")
|
||||
th
|
||||
button#sortByStatus.no-bg.no-border.text-decoration-none(type="button")
|
||||
span= t('STATUS')
|
||||
img#statusImg(class=data.sortBy === 'status' ? '' : 'invisible' src=arrowSrc alt="")
|
||||
th
|
||||
button#sortByTimeCreated.no-bg.no-border.text-decoration-none(type="button")
|
||||
span= t('USTVARJEN')
|
||||
img#timeCreatedImg(class=data.sortBy === 'timeCreated' ? '' : 'invisible' src=arrowSrc alt="")
|
||||
th
|
||||
button#sortByTimeModified.no-bg.no-border.text-decoration-none(type="button")
|
||||
span= t('SPREMENJEN')
|
||||
img#timeModifiedImg(class=data.sortBy === 'timeModified' ? '' : 'invisible' src=arrowSrc alt="")
|
||||
th= ''
|
||||
tbody#page-results
|
||||
each result in data.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')
|
||||
td: time(data-timestamp=result.timeCreated data-timestamp-format="datetime")
|
||||
td: time(data-timestamp=result.timeModified data-timestamp-format="datetime")
|
||||
td
|
||||
a.image-link(
|
||||
type="link"
|
||||
href=data.rowAction.hrefBuilder(result.id)
|
||||
)
|
||||
img(src=data.rowAction.icon alt=data.rowAction.label)
|
||||
span.normal-gray.ms-1= data.rowAction.label
|
||||
@@ -31,6 +31,14 @@
|
||||
method="post"
|
||||
autocomplete="off"
|
||||
)
|
||||
.sso-login-section
|
||||
a#sso-login-btn.btn.btn-primary.h41.w-100(
|
||||
href="/users/oidc/login"
|
||||
)
|
||||
img.sso-login-icon(src="/images/icon-user-x.svg" alt="")
|
||||
span= t('Univerza v Ljubljani')
|
||||
.sso-divider
|
||||
span= t('ali')
|
||||
.row
|
||||
.col-2.d-flex.align-items-center.justify-content-center.pe-4
|
||||
img(src="/images/user.svg" alt="")
|
||||
|
||||
@@ -32,6 +32,9 @@ mixin main-navigation-right(languageToolbarPresent=false, menuTextPresent=false,
|
||||
if user && (user.hasRole('portal admin') || user.hasRole('dictionaries admin'))
|
||||
li
|
||||
a.dropdown-item(href="/admin")= t('Administracija')
|
||||
if user && dictionariesEnabled
|
||||
li
|
||||
a.dropdown-item(href="/ogled-virov")= t('Ogled virov na portalu')
|
||||
li
|
||||
a.dropdown-item(href="/pomoc")= t('Pomoč')
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
p Dear user,
|
||||
p #[b #{ senderName }] (#{ senderEmail }) has sent you a message via the Slovenian Terminology Portal regarding the dictionary #[b #{ dictionaryName }]:
|
||||
p #{ message }
|
||||
@@ -0,0 +1,3 @@
|
||||
p Pozdravljeni,
|
||||
p uporabnik #[b #{ senderName }] (#{ senderEmail }) vam je preko Slovenskega terminološkega portala poslal sporočilo v zvezi s slovarjem #[b #{ dictionaryName }]:
|
||||
p #{ message }
|
||||
@@ -109,6 +109,7 @@ html(lang=language)
|
||||
|
||||
if inDevEnv
|
||||
script(nonce=cspNonce) window.inDevEnv = true
|
||||
script(nonce=cspNonce src="/javascripts/date-utils.js")
|
||||
script(nonce=cspNonce src="/javascripts/globals.js")
|
||||
script(nonce=cspNonce src="/javascripts/scripts.js")
|
||||
script(nonce=cspNonce src="/javascripts/main-sreach-utils.js")
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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'
|
||||
)
|
||||
|
||||
@@ -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
|
||||
@@ -1,20 +1,14 @@
|
||||
-
|
||||
const localeOptions = {
|
||||
day: '2-digit',
|
||||
month: '2-digit',
|
||||
year: 'numeric',
|
||||
hour: '2-digit',
|
||||
minute: '2-digit'}
|
||||
if comments
|
||||
each comment in comments
|
||||
- const date = new Date(comment.timeCreated).toLocaleDateString('sl-SL', localeOptions)
|
||||
.comment(class=comment.status === 'hidden' ? 'comment-white-text' : '')
|
||||
.row
|
||||
.comment-initials-container
|
||||
span.test= `${comment.author.firstName[0]}${comment.author.lastName[0]}`
|
||||
.comment-col.col
|
||||
span.comment-author-name= `${comment.author.firstName} ${comment.author.lastName}`
|
||||
span.comment-date= `• ${date}`
|
||||
span.comment-date
|
||||
| •
|
||||
time(data-timestamp=comment.timeCreated data-timestamp-format="datetime")
|
||||
if (comment.showEye)
|
||||
if comment.status === 'visible'
|
||||
button.comment-seen-btn.me-2
|
||||
@@ -28,10 +22,11 @@ if comments
|
||||
.comment-text
|
||||
if comment.quote
|
||||
.comment-text-2
|
||||
- const quoteDate = new Date(comment.quote.timeCreated).toLocaleDateString('sl-SL', localeOptions)
|
||||
img(src="/images/quote-marks.svg")
|
||||
span.comment-quotename= `${comment.quote.author.firstName} ${comment.quote.author.lastName}`
|
||||
span.comment-quotedate= `• ${quoteDate}`
|
||||
span.comment-quotedate
|
||||
| •
|
||||
time(data-timestamp=comment.quote.timeCreated data-timestamp-format="datetime")
|
||||
.comment-quotedtext= comment.quote.message
|
||||
hr.comment-quotehr
|
||||
.comment-text-2= comment.message
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
type="checkbox"
|
||||
name="isPublished"
|
||||
)
|
||||
label.form-check-label(for="published")= t('Obljavljeno')
|
||||
label.form-check-label(for="published")= t('Objavljeno')
|
||||
|
||||
.form-check.d-flex.align-items-center
|
||||
input#comments.form-check-input.indeterminate-cbox(
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
mixin dictionary-description(dictionaryId)
|
||||
.content-hold-prerequisites
|
||||
#offset-main.main-container.mt-1
|
||||
input#dictionary-id(hidden value=dictionary.id)
|
||||
if dictionaryId
|
||||
.title
|
||||
.subject-name
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
mixin dictionaryDescriptionReadonly(data)
|
||||
.content-hold-prerequisites
|
||||
#offset-main.ps-3.pe-3.mt-1
|
||||
.p-squeeze-lg
|
||||
.title
|
||||
.subject-name
|
||||
label.input-name-txt= t('ID Slovarja')
|
||||
span.page-title-header= data.dictionary.id
|
||||
|
||||
.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt= t('Naslov slovarja')
|
||||
span.normal-gray= data.dictionary.nameSl
|
||||
|
||||
.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt= t('Angleški naslov slovarja')
|
||||
span.normal-gray= data.dictionary.nameEn
|
||||
|
||||
if data.dictionary.nameSlShort
|
||||
.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt= t('Skrajšani naslov slovarja')
|
||||
span.normal-gray= data.dictionary.nameSlShort
|
||||
|
||||
.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt= t('Avtor slovarja')
|
||||
if data.dictionary.author && data.dictionary.author.length
|
||||
each author in data.dictionary.author
|
||||
span.normal-gray.d-block= author
|
||||
else
|
||||
span.normal-gray
|
||||
|
||||
.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt= t('STATUS')
|
||||
if data.status === 'closed'
|
||||
span.normal-gray= t('Zaprt')
|
||||
else if data.status === 'reviewed'
|
||||
span.normal-gray= t('V odpiranju')
|
||||
else
|
||||
span.normal-gray= t('Odprt')
|
||||
|
||||
.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt= t('Področje')
|
||||
- const primaryDomain = data.allPrimaryDomains.find(domain => domain.id === data.dictionary.domainPrimary)
|
||||
span.normal-gray= primaryDomain ? primaryDomain.name : ''
|
||||
|
||||
.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt= t('Podpodročje')
|
||||
if data.associatedSecondaryDomains && data.associatedSecondaryDomains.length
|
||||
span.normal-gray= data.associatedSecondaryDomains.map(domain => domain[`name${capitalize(data.determinedLanguage)}`]).join(', ')
|
||||
else
|
||||
span.normal-gray
|
||||
|
||||
.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt= t('Opis slovarja')
|
||||
span!= data.dictionary.description ? data.dictionary.description : t('Ta slovar nima opisa')
|
||||
|
||||
if data.dictionary.issn
|
||||
.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt= t('ISSN oznaka')
|
||||
span.normal-gray= data.dictionary.issn
|
||||
@@ -245,37 +245,45 @@ mixin dictionary-export-content(dictionaryId)
|
||||
include /utilities/pager
|
||||
+pager
|
||||
|
||||
-
|
||||
const localeOptions = {
|
||||
day: '2-digit',
|
||||
month: '2-digit',
|
||||
year: 'numeric',
|
||||
hour: '2-digit',
|
||||
minute: '2-digit'
|
||||
}
|
||||
if results.length
|
||||
.table-responsive
|
||||
table.styled-table
|
||||
thead
|
||||
tr#thead
|
||||
th= t('DATUM')
|
||||
th= t('VRSTA')
|
||||
th= t('ŠT. GESEL')
|
||||
th= t('STATUS')
|
||||
tbody#page-results
|
||||
- const exportStatusKeys = { pending: 'exportStatusPending', 'in progress': 'exportStatusInProgress', failed: 'exportStatusFailed' }
|
||||
.table-responsive
|
||||
table.styled-table
|
||||
thead
|
||||
tr#thead
|
||||
th= t('DATUM')
|
||||
th= t('VRSTA')
|
||||
th= t('ŠT. GESEL')
|
||||
th= t('STATUS')
|
||||
tbody#page-results
|
||||
if results.length
|
||||
each result in results
|
||||
tr
|
||||
- const date = new Date(result.time_created).toLocaleDateString('sl-SL', localeOptions)
|
||||
td= date
|
||||
td: time(data-timestamp=result.time_created data-timestamp-format="datetime")
|
||||
td= result.export_file_format
|
||||
td= result.entry_count
|
||||
td
|
||||
if (result.status === 'finished')
|
||||
a.btn.btn-primary(
|
||||
href=`/slovarji/export-download/${result.id}`
|
||||
)= t('Shrani')
|
||||
.d-flex.align-items-center
|
||||
a.btn.btn-primary(
|
||||
href=`/slovarji/export-download/${result.id}`
|
||||
)= t('Shrani')
|
||||
button.p-0.table-button-grp.delete-row-btn.ms-3(
|
||||
type="button"
|
||||
data-bs-target="#alert-modal"
|
||||
data-bs-toggle="modal"
|
||||
data-export-id=result.id
|
||||
)
|
||||
img(src="/images/red-trash-icon.svg" alt=t('Izbriši'))
|
||||
else
|
||||
= t(exportStatusKeys[result.status])
|
||||
else
|
||||
tr
|
||||
td(colspan="4")= t('Ni še dodanih izvozov.')
|
||||
.mt-3
|
||||
p!= t('Shemo za format xml si prenesete <a href="/slovarji/xml-schema" target="_blank">tukaj</a>.')
|
||||
include /utilities/modal-response
|
||||
+responseModal("export-response-modal")
|
||||
include /utilities/modal-alert
|
||||
include /common/footer
|
||||
//- .d-block.w-100
|
||||
//- include /utilities/table-mixin
|
||||
|
||||
@@ -4,6 +4,48 @@ mixin dictionary-import(dictionaryId)
|
||||
.import-container.mt-3.ms-1
|
||||
form#file-import-form(method="post" enctype="multipart/form-data")
|
||||
.file-type
|
||||
span.new-user-info= t('FORMAT ZAPISA')
|
||||
#file-format-selection.file-types
|
||||
.row
|
||||
.col-sm-6.ms-2.text-nowrap
|
||||
.form-check.radio-button.ms-0.ps-3
|
||||
input#file-format-xml.form-check-input(
|
||||
type="radio"
|
||||
name="importFileFormat"
|
||||
value="xml"
|
||||
data-extension="xml"
|
||||
checked
|
||||
)
|
||||
label.form-check-label.ms-0(for="file-format-xml") XML
|
||||
.form-check.radio-button.ms-2
|
||||
input#file-format-csv.form-check-input(
|
||||
disabled
|
||||
type="radio"
|
||||
name="importFileFormat"
|
||||
value="csv"
|
||||
data-extension="csv"
|
||||
)
|
||||
label.form-check-label.ms-0(for="file-format-csv") CSV
|
||||
.form-check.radio-button.ms-2
|
||||
input#file-format-tsv.form-check-input(
|
||||
disabled
|
||||
type="radio"
|
||||
name="importFileFormat"
|
||||
value="tsv"
|
||||
data-extension="tsv"
|
||||
)
|
||||
label.form-check-label.ms-0(for="file-format-tsv") TSV
|
||||
.form-check.radio-button.ms-2
|
||||
input#file-format-json.form-check-input(
|
||||
type="radio"
|
||||
name="importFileFormat"
|
||||
value="json_term_candidates"
|
||||
data-extension="json"
|
||||
)
|
||||
label.form-check-label.ms-0(for="file-format-json") JSON (#{t('Terminološki kandidati')})
|
||||
.col
|
||||
span.name-info-txt= t('Izberite format datoteke, v kateri je slovar shranjen na vašem računalniku.')
|
||||
.file-type.mt-4
|
||||
span.new-user-info= t('DATOTEKA')
|
||||
.row
|
||||
.col-md-6.ms-2.white-border-background.p-4.d-flex.align-items-center.justify-content-between.me-2
|
||||
@@ -35,7 +77,7 @@ mixin dictionary-import(dictionaryId)
|
||||
span.name-info-txt= t('Če izberete to možnost, se bodo vsi doslejšnji slovarski sestavki ob uvozu nove datoteke izbrisali.')
|
||||
.file-type.mt-4
|
||||
span.new-user-info= t('FAZA UREJANJA')
|
||||
#file-type-selection.file-types
|
||||
#entry-status-selection.file-types
|
||||
.row
|
||||
.col-sm-6.ms-2
|
||||
.form-check.radio-button.ms-0.ps-3
|
||||
@@ -57,37 +99,6 @@ mixin dictionary-import(dictionaryId)
|
||||
= t('Urejeno')
|
||||
.col
|
||||
span.name-info-txt= t('Z izbiro te možnosti boste pobrisali samo slovarske sestavke, ki so v določeni fazi urejanja.')
|
||||
.file-type.mt-4
|
||||
span.new-user-info= t('FORMAT ZAPISA')
|
||||
#file-type-selection.file-types
|
||||
.row
|
||||
.col-sm-6.ms-2.text-nowrap
|
||||
.form-check.radio-button.ms-0.ps-3
|
||||
input#file-format-xml.form-check-input(
|
||||
type="radio"
|
||||
name="importFileFormat"
|
||||
value="xml"
|
||||
checked
|
||||
)
|
||||
label.form-check-label.ms-0(for="file-format-xml") XML
|
||||
.form-check.radio-button.ms-2
|
||||
input#file-format-csv.form-check-input(
|
||||
disabled
|
||||
type="radio"
|
||||
name="importFileFormat"
|
||||
value="csv"
|
||||
)
|
||||
label.form-check-label.ms-0(for="file-format-csv") CSV
|
||||
.form-check.radio-button.ms-2
|
||||
input#file-format-tsv.form-check-input(
|
||||
disabled
|
||||
type="radio"
|
||||
name="importFileFormat"
|
||||
value="tsv"
|
||||
)
|
||||
label.form-check-label.ms-0(for="file-format-tsv") TSV
|
||||
.col
|
||||
span.name-info-txt= t('Izberite format datoteke, v kateri je slovar shranjen na vašem računalniku.')
|
||||
.file-type.mt-4
|
||||
button.btn.btn-primary.mt-4= t('UVOZI')
|
||||
.latest-uploads.mt-4
|
||||
@@ -99,34 +110,28 @@ mixin dictionary-import(dictionaryId)
|
||||
include /utilities/pager
|
||||
+pager
|
||||
|
||||
-
|
||||
const localeOptions = {
|
||||
day: '2-digit',
|
||||
month: '2-digit',
|
||||
year: 'numeric',
|
||||
hour: '2-digit',
|
||||
minute: '2-digit'
|
||||
}
|
||||
|
||||
if results.length
|
||||
.table-responsive
|
||||
table.styled-table
|
||||
thead
|
||||
tr#thead
|
||||
th= t('DATUM')
|
||||
th= t('VRSTA')
|
||||
th= t('ŠT. GESEL')
|
||||
th= t('STATUS')
|
||||
tbody#page-results
|
||||
- const importStatusKeys = { 'in progress': 'importStatusInProgress', error: 'importStatusError', done: 'importStatusDone' }
|
||||
.table-responsive
|
||||
table.styled-table
|
||||
thead
|
||||
tr#thead
|
||||
th= t('DATUM')
|
||||
th= t('VRSTA')
|
||||
th= t('ŠT. GESEL')
|
||||
th= t('STATUS')
|
||||
tbody#page-results
|
||||
if results.length
|
||||
each result in results
|
||||
tr
|
||||
- const date = new Date(result.time_started).toLocaleDateString('sl-SL', localeOptions)
|
||||
td= date
|
||||
td: time(data-timestamp=result.time_started data-timestamp-format="datetime")
|
||||
td= result.file_format
|
||||
td= result.count_valid_entries
|
||||
td= result.status
|
||||
else
|
||||
p= t('Ni še dodanih uvozov.')
|
||||
td= result.count_entries
|
||||
td= t(importStatusKeys[result.status])
|
||||
else
|
||||
tr
|
||||
td(colspan="4")= t('Ni še dodanih uvozov.')
|
||||
.mt-4
|
||||
p!= t('Shemo za format xml si prenesete <a href="/slovarji/xml-schema" target="_blank">tukaj</a>.')
|
||||
include /utilities/modal-response
|
||||
+responseModal("import-response-modal")
|
||||
include /common/footer
|
||||
|
||||
@@ -1,3 +1,19 @@
|
||||
mixin structureCheckbox(id, name, label, checked, extraLabelClass)
|
||||
.form-switch.d-flex
|
||||
input.form-check-input(id=id type="checkbox" name=name checked=checked)
|
||||
label.form-check-label(for=id class=extraLabelClass)= t(label)
|
||||
|
||||
mixin structureForeignSubgroup(id, labelId, name, label, disabledInput, checked)
|
||||
.form-switch.d-flex
|
||||
input.form-check-input(
|
||||
id=id
|
||||
class=disabledInput ? 'disabled-input' : undefined
|
||||
type="checkbox"
|
||||
name=name
|
||||
checked=checked
|
||||
)
|
||||
label.form-check-label.language-subgroups(id=labelId for=id)= t(label)
|
||||
|
||||
block input-structure
|
||||
.switches
|
||||
.subject-name.mt-2
|
||||
@@ -11,322 +27,41 @@ block input-structure
|
||||
input.form-check-input(type="checkbox" disabled checked)
|
||||
label.form-check-label(for="Termin")= t('Termin')
|
||||
|
||||
//- .form-switch.d-flex
|
||||
//- input.form-check-input(type="checkbox" disabled checked)
|
||||
//- label.form-check-label(for="headword-ele") Oblike, naglasi, izgovor
|
||||
-
|
||||
const hasForeignLanguages = dictionary ? dictionary.hasForeignLanguages : true
|
||||
const hasDict = !!dictionary
|
||||
const primaryCheckboxes = [
|
||||
{ id: 'domain-labels', name: 'hasDomainLabels', label: 'Področna oznaka', defaultChecked: false, labelClass: 'text-nowrap' },
|
||||
{ id: 'label-checkbox', name: 'hasLabel', label: 'Pojasnilo', defaultChecked: false },
|
||||
{ id: 'definition-check-box', name: 'hasDefinition', label: 'Definicija', defaultChecked: true },
|
||||
{ id: 'synonyms', name: 'hasSynonyms', label: 'Sinonim', defaultChecked: false },
|
||||
{ id: 'links', name: 'hasLinks', label: 'Povezani termin', defaultChecked: false },
|
||||
{ id: 'other', name: 'hasOther', label: 'Drugo', defaultChecked: false },
|
||||
{ id: 'language-group', name: 'hasForeignLanguages', label: 'Tuji jezik', defaultChecked: true, labelClass: 'text-nowrap' }
|
||||
]
|
||||
const foreignSubgroups = [
|
||||
{ id: 'termin-language-subgroup', labelId: 'termin-subgroup-label', name: undefined, dictKey: undefined, label: 'Termin', alwaysDisabled: true },
|
||||
{ id: 'definition-language-subgroup', labelId: 'definition-subgroup-label', name: 'hasForeignDefinitions', dictKey: 'hasForeignDefinitions', label: 'Definicija', alwaysDisabled: false },
|
||||
{ id: 'synonym-language-subgroup', labelId: 'synonym-subgroup-label', name: 'hasForeignSynonyms', dictKey: 'hasForeignSynonyms', label: 'Sinonim', alwaysDisabled: false }
|
||||
]
|
||||
const mediaCheckboxes = [
|
||||
{ id: 'images', name: 'hasImages', label: 'Slika', defaultChecked: false },
|
||||
{ id: 'audio', name: 'hasAudio', label: 'Zvok', defaultChecked: false },
|
||||
{ id: 'video', name: 'hasVideos', dictKey: 'hasVideo', label: 'Video', defaultChecked: false }
|
||||
]
|
||||
|
||||
if dictionary
|
||||
if dictionary.hasDomainLabels
|
||||
.form-switch.d-flex
|
||||
input#domain-labels.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasDomainLabels"
|
||||
checked
|
||||
)
|
||||
label.form-check-label.text-nowrap(for="domain-labels")= t('Področna oznaka')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#domain-labels.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasDomainLabels"
|
||||
)
|
||||
label.form-check-label.text-nowrap(for="domain-labels")= t('Področna oznaka')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#domain-labels.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasDomainLabels"
|
||||
)
|
||||
label.form-check-label.text-nowrap(for="domain-labels")= t('Področna oznaka')
|
||||
each field in primaryCheckboxes
|
||||
- const checked = dictionary ? dictionary[field.dictKey || field.name] : field.defaultChecked
|
||||
+structureCheckbox(field.id, field.name, field.label, checked, field.labelClass)
|
||||
|
||||
if dictionary
|
||||
if dictionary.hasLabel
|
||||
.form-switch.d-flex
|
||||
input#label-checkbox.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasLabel"
|
||||
checked
|
||||
)
|
||||
label.form-check-label(for="label-checkbox")= t('Pojasnilo')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#label-checkbox.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasLabel"
|
||||
)
|
||||
label.form-check-label(for="label-checkbox")= t('Pojasnilo')
|
||||
each field in foreignSubgroups
|
||||
- const disabledInput = field.alwaysDisabled || (hasDict ? !hasForeignLanguages : false)
|
||||
- const subgroupChecked = field.dictKey ? hasDict && hasForeignLanguages && dictionary[field.dictKey] : hasForeignLanguages
|
||||
+structureForeignSubgroup(field.id, field.labelId, field.name, field.label, disabledInput, subgroupChecked)
|
||||
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#label-checkbox.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasLabel"
|
||||
)
|
||||
label.form-check-label(for="label-checkbox")= t('Pojasnilo')
|
||||
|
||||
.form-switch.d-flex
|
||||
input#definition-check-box.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasDefinition"
|
||||
checked
|
||||
)
|
||||
label.form-check-label(for="definition-check-box")= t('Definicija')
|
||||
|
||||
if dictionary
|
||||
if dictionary.hasSynonyms
|
||||
.form-switch.d-flex
|
||||
input#synonyms.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasSynonyms"
|
||||
checked
|
||||
)
|
||||
label.form-check-label(for="synonyms")= t('Sinonim')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#synonyms.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasSynonyms"
|
||||
)
|
||||
label.form-check-label(for="synonyms")= t('Sinonim')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#synonyms.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasSynonyms"
|
||||
)
|
||||
label.form-check-label(for="synonyms")= t('Sinonim')
|
||||
|
||||
if dictionary
|
||||
if dictionary.hasLinks
|
||||
.form-switch.d-flex
|
||||
input#links.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasLinks"
|
||||
checked
|
||||
)
|
||||
label.form-check-label(for="links")= t('Povezani termin')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#links.form-check-input(type="checkbox" name="hasLinks")
|
||||
label.form-check-label(for="links")= t('Povezani termin')
|
||||
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#links.form-check-input(type="checkbox" name="hasLinks")
|
||||
label.form-check-label(for="links")= t('Povezani termin')
|
||||
|
||||
//- .form-switch.d-flex
|
||||
//- input#other.form-check-input(type="checkbox" name="hasOther")
|
||||
//- label.form-check-label(for="other") Drugo
|
||||
|
||||
if dictionary
|
||||
if dictionary.hasOther
|
||||
.form-switch.d-flex
|
||||
input#other.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasOther"
|
||||
checked
|
||||
)
|
||||
label.form-check-label(for="other")= t('Drugo')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#other.form-check-input(type="checkbox" name="hasOther")
|
||||
label.form-check-label(for="other")= t('Drugo')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#other.form-check-input(type="checkbox" name="hasOther")
|
||||
label.form-check-label(for="other")= t('Drugo')
|
||||
|
||||
if dictionary
|
||||
if dictionary.hasForeignLanguages
|
||||
.form-switch.d-flex
|
||||
input#language-group.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasForeignLanguages"
|
||||
checked
|
||||
)
|
||||
label.form-check-label.text-nowrap(for="language-group")= t('Tuji jezik')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#language-group.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasForeignLanguages"
|
||||
)
|
||||
label.form-check-label.text-nowrap(for="language-group")= t('Tuji jezik')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#language-group.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasForeignLanguages"
|
||||
checked
|
||||
)
|
||||
label.form-check-label.text-nowrap(for="language-group")= t('Tuji jezik')
|
||||
|
||||
if dictionary
|
||||
if !dictionary.hasForeignLanguages
|
||||
.form-switch.d-flex
|
||||
input#termin-language-subgroup.form-check-input.disabled-input(
|
||||
type="checkbox"
|
||||
)
|
||||
label#termin-subgroup-label.form-check-label.language-subgroups(
|
||||
for="termin-language-subgroup"
|
||||
)= t('Termin')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#termin-language-subgroup.form-check-input.disabled-input(
|
||||
type="checkbox"
|
||||
checked
|
||||
)
|
||||
label#termin-subgroup-label.form-check-label.language-subgroups(
|
||||
for="termin-language-subgroup"
|
||||
)= t('Termin')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#termin-language-subgroup.form-check-input.disabled-input(
|
||||
type="checkbox"
|
||||
checked
|
||||
)
|
||||
label#termin-subgroup-label.form-check-label.language-subgroups(
|
||||
for="termin-language-subgroup"
|
||||
)= t('Termin')
|
||||
|
||||
if dictionary
|
||||
if !dictionary.hasForeignLanguages
|
||||
.form-switch.d-flex
|
||||
input#definition-language-subgroup.form-check-input.disabled-input(
|
||||
type="checkbox"
|
||||
name="hasForeignDefinitions"
|
||||
)
|
||||
label#definition-subgroup-label.form-check-label.language-subgroups(
|
||||
for="definition-language-subgroup"
|
||||
)= t('Definicija')
|
||||
else if dictionary.hasForeignDefinitions
|
||||
.form-switch.d-flex
|
||||
input#definition-language-subgroup.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasForeignDefinitions"
|
||||
checked
|
||||
)
|
||||
label#definition-subgroup-label.form-check-label.language-subgroups(
|
||||
for="definition-language-subgroup"
|
||||
)= t('Definicija')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#definition-language-subgroup.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasForeignDefinitions"
|
||||
)
|
||||
label#definition-subgroup-label.form-check-label.language-subgroups(
|
||||
for="definition-language-subgroup"
|
||||
)= t('Definicija')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#definition-language-subgroup.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasForeignDefinitions"
|
||||
)
|
||||
label#definition-subgroup-label.form-check-label.language-subgroups(
|
||||
for="definition-language-subgroup"
|
||||
)= t('Definicija')
|
||||
|
||||
if dictionary
|
||||
if !dictionary.hasForeignLanguages
|
||||
.form-switch.d-flex
|
||||
input#synonym-language-subgroup.form-check-input.disabled-input(
|
||||
type="checkbox"
|
||||
name="hasForeignSynonyms"
|
||||
)
|
||||
label#synonym-subgroup-label.form-check-label.language-subgroups(
|
||||
for="synonym-language-subgroup"
|
||||
)= t('Sinonim')
|
||||
else if dictionary.hasForeignSynonyms
|
||||
.form-switch.d-flex
|
||||
input#synonym-language-subgroup.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasForeignSynonyms"
|
||||
checked
|
||||
)
|
||||
label#synonym-subgroup-label.form-check-label.language-subgroups(
|
||||
for="synonym-language-subgroup"
|
||||
)= t('Sinonim')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#synonym-language-subgroup.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasForeignSynonyms"
|
||||
)
|
||||
label#synonym-subgroup-label.form-check-label.language-subgroups(
|
||||
for="synonym-language-subgroup"
|
||||
)= t('Sinonim')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#synonym-language-subgroup.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasForeignSynonyms"
|
||||
)
|
||||
label#synonym-subgroup-label.form-check-label.language-subgroups(
|
||||
for="synonym-language-subgroup"
|
||||
)= t('Sinonim')
|
||||
|
||||
if dictionary
|
||||
if dictionary.hasImages
|
||||
.form-switch.d-flex
|
||||
input#images.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasImages"
|
||||
checked
|
||||
)
|
||||
label.form-check-label(for="images")= t('Slika')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#images.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasImages"
|
||||
)
|
||||
label.form-check-label(for="images")= t('Slika')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#images.form-check-input(type="checkbox" name="hasImages")
|
||||
label.form-check-label(for="images")= t('Slika')
|
||||
|
||||
if dictionary
|
||||
if dictionary.hasAudio
|
||||
.form-switch.d-flex
|
||||
input#audio.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasAudio"
|
||||
checked
|
||||
)
|
||||
label.form-check-label(for="audio")= t('Zvok')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#audio.form-check-input(type="checkbox" name="hasAudio")
|
||||
label.form-check-label(for="audio")= t('Zvok')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#audio.form-check-input(type="checkbox" name="hasAudio")
|
||||
label.form-check-label(for="audio")= t('Zvok')
|
||||
|
||||
if dictionary
|
||||
if dictionary.hasVideo
|
||||
.form-switch.d-flex
|
||||
input#video.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasVideos"
|
||||
checked
|
||||
)
|
||||
label.form-check-label(for="video")= t('Video')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#video.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasVideos"
|
||||
)
|
||||
label.form-check-label(for="video")= t('Video')
|
||||
else
|
||||
.form-switch.d-flex
|
||||
input#video.form-check-input(type="checkbox" name="hasVideos")
|
||||
label.form-check-label(for="video")= t('Video')
|
||||
each field in mediaCheckboxes
|
||||
- const checked = dictionary ? dictionary[field.dictKey || field.name] : field.defaultChecked
|
||||
+structureCheckbox(field.id, field.name, field.label, checked, field.labelClass)
|
||||
.ms-2.ms-md-5.flex-grow-1
|
||||
include /utilities/entry-preview
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ mixin result_detail(data)
|
||||
.text-header-description-gray.fw-400= data.languages
|
||||
if data.time_modified
|
||||
li.text-gray-1.fw-500 #{ t('Spremenjen') }
|
||||
.text-header-description-gray.fw-400= data.time_modified
|
||||
.text-header-description-gray.fw-400: time(data-timestamp=data.time_modified.toISOString() data-timestamp-format="date")
|
||||
if data.count_entries
|
||||
li.text-gray-1.fw-500 #{ t('Število slovarskih sestavkov') }
|
||||
.text-header-description-gray.fw-400= data.count_entries
|
||||
|
||||
Reference in New Issue
Block a user