Initial commit
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
extends /layout
|
||||
|
||||
block pageSpecificScipts
|
||||
script(nonce=cspNonce src="/javascripts/dictionaries.js")
|
||||
|
||||
block body
|
||||
section#fixed-top-section
|
||||
include /common/main-navigation
|
||||
+main-navigation(false)
|
||||
include /common/side-menu-mixin-dictionaries
|
||||
- const d = { activeLvl1: 'attributes', activeLvl2: 'advanced' }
|
||||
+sideNavigation(d)
|
||||
|
||||
include /utilities/dictionaries-main-panel-header
|
||||
- const c = { sideMenu: true, h2: dictionaryName, h1: 'Napredno', description: 'Napredno urejanje omogoča spreminjanje večjega števila podatkov v terminološkem slovarju.' }
|
||||
+mainHeader(c)
|
||||
.content-hold-prerequisites
|
||||
#offset-main.main-container.mt-2
|
||||
input#adv-dictionary-id(
|
||||
type="hidden"
|
||||
name="dictionaryId"
|
||||
value=dictionary.id
|
||||
)
|
||||
.file-type.mt-2
|
||||
.row
|
||||
.col-md-6.white-border-background.p-4.d-flex.align-items-center
|
||||
span.info-text-for-button.me-auto Brisanje slovarskih sestavkov
|
||||
button#adv-delete-all-entries.btn.btn-primary.ps-5.pe-5.advanced-blue-btn BRIŠI
|
||||
.col-sm.ms-xxl-3.ms-md-3.align-items-center.d-flex.ps-1
|
||||
span.name-info-txt Izbrišete lahko vse doslej obdelane slovarske sestavke in ohranite vse metapodatke o slovarju. Dejanja ni mogoče preklicati.
|
||||
a.name-info-txt.ms-2(href="/pomoc") Več …
|
||||
.file-type.mt-5
|
||||
.row
|
||||
.col-md-6.white-border-background.p-4.d-flex.align-items-center
|
||||
span.info-text-for-button.me-auto Brisanje slovarja
|
||||
button#adv-delete-dictionary.btn.btn-primary.ps-5.pe-5.advanced-blue-btn BRIŠI
|
||||
.col-sm.ms-xxl-3.ms-md-3.align-items-center.d-flex.ps-1
|
||||
span.name-info-txt Izbrišete lahko celoten slovar z vsemi metapodatki. Dejanja ni mogoče preklicati.
|
||||
a.name-info-txt.ms-2(href="/pomoc") Več …
|
||||
.file-type.mt-5
|
||||
.row
|
||||
.col-md-6.white-border-background.p-4.d-flex.align-items-center
|
||||
span.info-text-for-button.me-auto Objava vseh slovarskih sestavkov
|
||||
button#adv-publish-all-entries.btn.btn-primary.ps-5.pe-5.advanced-blue-btn OBJAVI
|
||||
.col-sm.ms-xxl-3.ms-md-3.align-items-center.d-flex.ps-1
|
||||
span.name-info-txt Ko boste končali z urejanjem svojega terminološkega slovarja, lahko objavite vse slovarske sestavke, ki bodo postali vidni vsem uporabnikom. Vaše dejanje mora potrditi še administrator portala.
|
||||
include /utilities/modal-spinner
|
||||
include /utilities/modal-alert-mixin
|
||||
+alertModal("delete-entries", "Izbriši", "Prekliči", "modal-use-btn", "cancel-btn", 'S tem dejanjem boste izbrisali vse slovarske sestavke v slovarju. Metapodatki bodo ostali. Dejanja ni mogoče razveljaviti.')
|
||||
+alertModal("delete-dictionary", "Izbriši", "Prekliči", "modal-use-btn", "cancel-btn", 'S tem dejanjem boste izbrisali vse slovarske sestavke v slovarju in vse metapodatke. Dejanja ni mogoče razveljaviti.')
|
||||
+alertModal("publish-entries", "Uporabi", "Prekliči", "modal-use-btn", "cancel-btn", 'Ali želite objaviti vsa gesla?')
|
||||
include /utilities/modal-response
|
||||
+responseModal("delete-entries-res", "Razumem", "understand-btn", "Slovarski sestavki so bili izbrisani.")
|
||||
+responseModal("delete-dict-res", "Razumem", "understand-btn", "Slovar je bil izbrisan.")
|
||||
+responseModal("publish-entries-res", "Razumem", "understand-btn", "Slovarski sestavki so bili objavljeni.")
|
||||
include /common/footer
|
||||
@@ -0,0 +1,47 @@
|
||||
extends /layout
|
||||
|
||||
block pageSpecificScipts
|
||||
script(nonce=cspNonce src="/javascripts/dictionaries.js")
|
||||
script(nonce=cspNonce src="/javascripts/comments.js")
|
||||
script(nonce=cspNonce src="/javascripts/mixed-content.js")
|
||||
//- script(nonce=cspNonce src="/javascripts/dictionaries-content.js")
|
||||
|
||||
block body
|
||||
section#fixed-top-section.content-fixed-top
|
||||
include /common/main-navigation
|
||||
+main-navigation(false)
|
||||
include /utilities/content-side-menu
|
||||
include /utilities/content-header
|
||||
.content-hold-prerequisites
|
||||
#offset-main.content-main-page.main-container
|
||||
#date-section.collapse
|
||||
include /utilities/content-date-scroller
|
||||
if terms.length
|
||||
#preview-section
|
||||
#content-data-section.mt-2
|
||||
#classic-overview
|
||||
include /utilities/content-classic-overview
|
||||
.mt-2
|
||||
include /utilities/entry-preview
|
||||
else
|
||||
#preview-section
|
||||
#date-section.collapse
|
||||
include /utilities/content-date-scroller
|
||||
#content-data-section.mt-2
|
||||
#no-entries-text.d-flex.justify-content-center
|
||||
.justify-content-center.mt-5
|
||||
p Ni slovarskih sestavkov za urejanje.
|
||||
#entry-preview-section.d-none
|
||||
#classic-overview
|
||||
include /utilities/content-classic-overview
|
||||
include /utilities/entry-preview
|
||||
|
||||
#edit-section.d-none
|
||||
include /utilities/content-edit
|
||||
#comments-section.d-none.mt-2
|
||||
include /utilities/comments-with-pager
|
||||
include /utilities/modal-alert
|
||||
include /utilities/modal-alert-mixin
|
||||
+alertModal("delete-modal", "Izbriši", "Prekliči", "modal-del-btn", "cancel-btn", 'Ali želite izbrisati geslo?')
|
||||
.mb-3
|
||||
//- include /common/footer
|
||||
@@ -0,0 +1,190 @@
|
||||
extends /layout
|
||||
|
||||
block pageSpecificScipts
|
||||
script(nonce=cspNonce src="/javascripts/dictionaries.js")
|
||||
|
||||
block body
|
||||
section#fixed-top-section
|
||||
include /common/main-navigation
|
||||
+main-navigation(false)
|
||||
|
||||
include /common/side-menu-mixin-dictionaries
|
||||
- const d = { activeLvl1: 'attributes', activeLvl2: 'description' }
|
||||
+sideNavigation(d)
|
||||
include /utilities/dictionaries-main-panel-header
|
||||
- const c = { sideMenu: true, h2: dictionary.nameSl, h1: 'Osnovni podatki', description: 'Izpolnite polja in na kratko opišite vsebino terminološkega slovarja.', helpLink: { linkHref: '/pomoc', linkText: 'Več ...' }, buttons: [{ type: 'disabled', content: 'Shrani', form: 'form-dictionary-description' }] }
|
||||
+mainHeader(c)
|
||||
.content-hold-prerequisites
|
||||
#offset-main.main-container.mt-3
|
||||
form#form-dictionary-description.needs-validation(
|
||||
method="post"
|
||||
novalidate
|
||||
)
|
||||
.title
|
||||
.subject-name
|
||||
label.input-name-txt(for="dictionary-title") NASLOV SLOVARJA *
|
||||
.row
|
||||
.col-sm-6
|
||||
input#dictionary-title.name-input.form-control.d-inline(
|
||||
type="text"
|
||||
name="nameSl"
|
||||
required
|
||||
maxlength="120"
|
||||
value=dictionary.nameSl
|
||||
)
|
||||
.invalid-feedback Niste vpisali naslova slovarja.
|
||||
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0 Celotni naslov slovarja, ki bo zabeležen v bibliografskih podatkih.
|
||||
|
||||
.english-title.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt(for="dictionary-title-en") ANGLEŠKI NASLOV SLOVARJA *
|
||||
.row
|
||||
.col-sm-6.align-items-center
|
||||
input#dictionary-title-en.name-input.form-control.d-inline(
|
||||
type="text"
|
||||
name="nameEn"
|
||||
maxlength="120"
|
||||
value=dictionary.nameEn ? dictionary.nameEn : ''
|
||||
required
|
||||
)
|
||||
.invalid-feedback Niste vpisali angleškega naslova slovarja.
|
||||
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0 Celotni naslov slovarja v angleščini.
|
||||
|
||||
.short-title.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt(for="short-dictionary-title") SKRAJŠANI NASLOV SLOVARJA
|
||||
.row
|
||||
.col-sm-6
|
||||
input#short-dictionary-title.name-input.d-inline.form-control(
|
||||
type="text"
|
||||
name="nameSlShort"
|
||||
maxlength="15"
|
||||
value=dictionary.nameSlShort ? dictionary.nameSlShort : ''
|
||||
)
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0 Zaradi organizacije podatkov na portalu za skrajšani naslov slovarja predlagamo poenobesede nje, ki se bo izpisovalo ob slovarju, npr. Davčni terminološki slovar → Davki.
|
||||
|
||||
if dictionary.author
|
||||
each ele, index in dictionary.author
|
||||
.author.mt-4.added-field
|
||||
.subject-name
|
||||
label.input-name-txt(for="author") AVTOR SLOVARJA
|
||||
.row
|
||||
.col-sm-6
|
||||
.input-group
|
||||
input(
|
||||
class=index != 0 ? 'name-input d-inline form-control icon-trash' : 'name-input d-inline form-control'
|
||||
type="text"
|
||||
name="author"
|
||||
maxlength="64"
|
||||
value=ele ? ele : ''
|
||||
)
|
||||
if (index!=0)
|
||||
button.input-group-text.delete-author-btn(type="button")
|
||||
img(src="/images/red-trash-icon.svg" alt="")
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0 Vpišite avtorja slovarja, če ste glavni avtor, na prvo mesto zapišite svoje ime.
|
||||
else
|
||||
#first-author.author.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt(for="author") AVTOR SLOVARJA
|
||||
.row
|
||||
.col-sm-6
|
||||
input#author.name-input.d-inline.form-control(
|
||||
type="text"
|
||||
name="author"
|
||||
maxlength="64"
|
||||
)
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0 Vpišite avtorja slovarja, če ste glavni avtor, na prvo mesto zapišite svoje ime.
|
||||
|
||||
#add-new-author.author.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt(for="input-new-author") NOV AVTOR SLOVARJA
|
||||
.row
|
||||
.col-sm-6
|
||||
button#input-new-author.form-control(type="button")
|
||||
span.new-author-text-btn Nov avtor
|
||||
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0 Dodajte ime in priimek naslednjega avtorja slovarja..
|
||||
|
||||
.cerif-area.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt(for="select-cerif") PODROČJE *
|
||||
.row
|
||||
.col-sm-6
|
||||
select.name-input.d-inline.form-select(
|
||||
name="domainPrimary"
|
||||
required
|
||||
)
|
||||
each domain in allPrimaryDomains
|
||||
option(
|
||||
value=domain.id
|
||||
selected=domain.id === dictionary.domainPrimary
|
||||
)= domain.nameSl
|
||||
|
||||
#invalid-section.invalid-feedback-selection.hidden-section.mt-3 Nimate izbranega področja CERIF.
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0 Izberite področje svojega terminološkega slovarja na seznamu področij.
|
||||
|
||||
.small-name-area.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt(for="domain-secondary") PODPODROČJE
|
||||
.row
|
||||
.col-sm-6
|
||||
select#domain-secondary.name-input.d-inline.form-control.without-addition(
|
||||
name="domainSecondary"
|
||||
multiple
|
||||
)
|
||||
each domain in allSecondaryDomains
|
||||
if associatedSecondaryDomains.some(associatedDomain => associatedDomain.id === domain.id)
|
||||
option(value=domain.id selected)= domain.nameSl
|
||||
else
|
||||
option(value=domain.id)= domain.nameSl
|
||||
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0 Vpišite podpodročje glavnega področja, ki ste ga izbrali. Če podpodročja ni med naborom, izberite polje Novo podpodročje.
|
||||
|
||||
#add-new-area.author.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt NOVO PODPODROČJE
|
||||
.row
|
||||
.col-sm-6
|
||||
button#input-new-area.form-control(type="button")
|
||||
span.new-author-text-btn Novo podpodročje
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0 Vpišite novo podpodročje. Na seznamu podpodročij bo vidno takoj po potrditvi administratorja portala.
|
||||
|
||||
#text-editor.mt-4
|
||||
.subject-name
|
||||
span.input-name-txt OPIS SLOVARJA
|
||||
.container-xxl.ps-0.ms-0
|
||||
textarea.summernote(
|
||||
name="description"
|
||||
value=dictionary.description
|
||||
)
|
||||
if dictionary.description
|
||||
p= dictionary.description
|
||||
#issn-field.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt(for="issn") ISSN OZNAKA
|
||||
.row
|
||||
.col-sm-6
|
||||
input#issn.name-input.d-inline.form-control(
|
||||
type="text"
|
||||
name="issn"
|
||||
maxlength="20"
|
||||
value=dictionary.issn ? dictionary.issn : ''
|
||||
)
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.d-md-inline.d-block.name-info-txt.ms-xxl-3.ms-md-3.mt-3.mt-sm-0 ISSN oznaka.
|
||||
a.ms-1.name-info-txt(href="/pomoc" target="_blank") Več ...
|
||||
include /utilities/modal-alert
|
||||
include /utilities/modal-alert-mixin
|
||||
+alertModal('unsaved-data', 'Shrani', 'Ne', 'modal-save-btn', 'modal-dont-save-btn', 'Imate neshranjene spremebe. Ali jih želite shraniti?')
|
||||
include /common/footer
|
||||
@@ -0,0 +1,22 @@
|
||||
extends /layout
|
||||
|
||||
block pageSpecificScipts
|
||||
script(nonce=cspNonce src="/javascripts/comments.js")
|
||||
script(nonce=cspNonce src="/javascripts/dictionaries.js")
|
||||
|
||||
block body
|
||||
section#fixed-top-section
|
||||
include /common/main-navigation
|
||||
+main-navigation(false)
|
||||
include /common/side-menu-mixin-dictionaries
|
||||
- const d = { activeLvl1: 'attributes', activeLvl2: 'comments' }
|
||||
+sideNavigation(d)
|
||||
include /utilities/dictionaries-main-panel-header
|
||||
- const c = { sideMenu: true, h2: dictionaryName, h1: 'Komentarji', description: 'Tu so zbrani vsi komentarji, povezani z vašim slovarjem.' }
|
||||
+mainHeader(c)
|
||||
|
||||
.comments-content.col-12.col-md-12.py-md-3.bd-content.content-hold-prerequisites
|
||||
#offset-main.main-container
|
||||
include /utilities/comments-with-pager
|
||||
|
||||
include /common/footer
|
||||
@@ -0,0 +1,48 @@
|
||||
extends /layout
|
||||
|
||||
block pageSpecificScipts
|
||||
script(nonce=cspNonce src="/javascripts/dictionaries.js")
|
||||
script(nonce=cspNonce src="/javascripts/pagination-extensions.js")
|
||||
script(nonce=cspNonce src="/javascripts/search-dictionary.js")
|
||||
|
||||
block body
|
||||
section#fixed-top-section
|
||||
include /common/main-navigation
|
||||
+main-navigation(false)
|
||||
|
||||
//- include /common/side-menu-fake
|
||||
//- +sideNavigationFake
|
||||
|
||||
#offset-padding.header-section-root.no-side-menu.p-squeeze-lg
|
||||
//- .ms-4
|
||||
#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 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
|
||||
h1#site-heading Seznam slovarjev
|
||||
span#text-description.pe-xl-5.page-description Seznam vseh slovarjev, ki so na tem portalu na voljo uporabnikom.
|
||||
hr#header-row.mt-1.mb-0
|
||||
|
||||
//- - const c = {sideMenu:false, h2: 'Urejanje', h1: 'Nov slovar', description: 'Izpolnite polja in na kratko opišite vsebino terminološkega slovarja.', helpLink: { linkHref: '/pomoc', linkText: 'Več ...' }, buttons: [{ type: 'cancel', content: 'Prekliči', url:"." },{ type: 'button', content: 'Ustvari', form: 'form-dictionary-new' }] }
|
||||
//- +mainHeader(c)
|
||||
.content-hold-prerequisites.ps-3.pe-3
|
||||
#offset-main.container-fluid.mt-4.ps-sm-3.errc
|
||||
.p-squeeze-lg
|
||||
.row
|
||||
.col-md-6
|
||||
include ../../components/search-and-filter/search-with-primary-domain-filter
|
||||
+searchWithPrimaryDomainFilter("dictionaries-search-form", "searchbar-main", "dicts-search-btn", "")
|
||||
.col-md-6.d-flex.justify-content-end.pt-3
|
||||
include /utilities/pager
|
||||
+pager(1)
|
||||
.row.mt-5.g-0
|
||||
include ../../components/dictionary/dictionary-list
|
||||
+table(dictionaries, true)
|
||||
include /common/footer
|
||||
@@ -0,0 +1,112 @@
|
||||
extends /layout
|
||||
|
||||
block pageSpecificScipts
|
||||
script(nonce=cspNonce src="/javascripts/dictionaries.js")
|
||||
|
||||
block body
|
||||
section#fixed-top-section
|
||||
include /common/main-navigation
|
||||
+main-navigation(false)
|
||||
include /common/side-menu-mixin-dictionaries
|
||||
- const d = { activeLvl1: 'attributes', activeLvl2: 'areas' }
|
||||
+sideNavigation(d)
|
||||
|
||||
include /utilities/dictionaries-main-panel-header
|
||||
- const c = { sideMenu: true, h2: dictionaryName, h1: 'Področne oznake', description: 'Na tem mestu lahko določite področne oznake, če želite posamezne termine v svojem terminološkem slovarju razvrstiti še podrobneje.', helpLink: { linkHref: '/pomoc#help-content-domains', linkText: 'Več ...' }, buttons: [{ form: 'dictionary-domain-labels', type: 'disabled', content: 'Shrani' }] }
|
||||
+mainHeader(c)
|
||||
|
||||
.content-hold-prerequisites
|
||||
#offset-main.main-container.mt-2
|
||||
if results.length
|
||||
.d-flex.justify-content-between.mt-2
|
||||
.d-flex.flex-row.mb-4
|
||||
include /components/search-and-filter/inline-search
|
||||
.d-flex
|
||||
include /utilities/pager
|
||||
+pager
|
||||
|
||||
form#dictionary-domain-labels(
|
||||
method="post"
|
||||
action="/api/v1/dictionaries/update-domain-labels"
|
||||
)
|
||||
input#subareas-dict-id(
|
||||
type="hidden"
|
||||
name="dictionaryId"
|
||||
value=dictionary.id
|
||||
)
|
||||
table#all-areas-table.table.areas-table.table-responsive
|
||||
thead
|
||||
tr
|
||||
th.visible-th(scope="col") Vidno
|
||||
th(scope="col") Področna oznaka
|
||||
th(scope="col")
|
||||
tbody#page-results
|
||||
each result in results
|
||||
tr
|
||||
input(type="hidden" name="domainLabelId" value=result.id)
|
||||
th(scope="row")
|
||||
if result.isVisible
|
||||
input.form-check.checkbox-table(
|
||||
type="checkbox"
|
||||
name="isVisible"
|
||||
checked
|
||||
disabled
|
||||
)
|
||||
else
|
||||
input.form-check.checkbox-table(
|
||||
type="checkbox"
|
||||
name="isVisible"
|
||||
disabled
|
||||
)
|
||||
td.tdata-area= result.name
|
||||
td.buttons-group
|
||||
.table-buttons
|
||||
button.p-0.table-button-grp.me-3.edit-row-btn(
|
||||
type="button"
|
||||
)
|
||||
img(src="/images/u_edit-alt.svg" alt="")
|
||||
button.p-0.table-button-grp.delete-row-btn(
|
||||
type="button"
|
||||
data-bs-target="#alert-modal"
|
||||
data-bs-toggle="modal"
|
||||
)
|
||||
img(src="/images/red-trash-icon.svg" alt="")
|
||||
else
|
||||
form#dictionary-domain-labels(
|
||||
method="post"
|
||||
action="/api/v1/dictionaries/update-domain-labels"
|
||||
)
|
||||
input#subareas-dict-id(
|
||||
type="hidden"
|
||||
name="dictionaryId"
|
||||
value=dictionary.id
|
||||
)
|
||||
#subareas-info.d-flex.justify-content-center.mt-5
|
||||
p Niste vnesli področnih oznak.
|
||||
#no-subareas-section.d-none
|
||||
.d-flex.justify-content-between.mt-4
|
||||
.d-flex.flex-row.mb-4
|
||||
include /components/search-and-filter/inline-search
|
||||
.d-flex
|
||||
include /utilities/pager
|
||||
+pager
|
||||
|
||||
table#all-areas-table.table.areas-table.table-responsive
|
||||
thead
|
||||
tr
|
||||
th.visible-th(scope="col") Vidno
|
||||
th(scope="col") Področna oznaka
|
||||
th(scope="col")
|
||||
tbody
|
||||
tr.hidden(hidden)
|
||||
.row
|
||||
.col-sm-3
|
||||
.subject-name
|
||||
label.input-name-txt PODROČNA OZNAKA
|
||||
input#subarea-input.form-control(type="text")
|
||||
.col.d-flex.align-items-end.mt-2
|
||||
button#add-area.btn.btn-primary(type="submit" disabled) Dodaj
|
||||
include /utilities/modal-alert
|
||||
include /utilities/modal-alert-mixin
|
||||
+alertModal('unsaved-data', 'Shrani', 'Ne', 'modal-save-btn', 'modal-dont-save-btn', 'Imate neshranjene spremebe. Ali jih želite shraniti?')
|
||||
include /common/footer
|
||||
@@ -0,0 +1,252 @@
|
||||
extends /layout
|
||||
|
||||
block pageSpecificScipts
|
||||
script(nonce=cspNonce src="/javascripts/dictionaries.js")
|
||||
|
||||
block body
|
||||
section#fixed-top-section
|
||||
include /common/main-navigation
|
||||
+main-navigation(false)
|
||||
include /common/side-menu-mixin-dictionaries
|
||||
- const d = { activeLvl1: 'export', activeLvl2: 'export' }
|
||||
+sideNavigation(d)
|
||||
|
||||
include /utilities/dictionaries-main-panel-header
|
||||
- const c = { sideMenu: true, h2: dictionaryName, h1: 'Izvoz', description: 'Vse podatke, ki ste jih vnesli v svoj slovar, lahko izvozite na svoj računalnik ali drugo želeno mesto. Izbrati morate format, v katerem želite pridobiti podatke.', buttons: [] }
|
||||
+mainHeader(c)
|
||||
.content-hold-prerequisites
|
||||
#offset-main.main-container.mt-2
|
||||
.row.validity.align-items-center
|
||||
.col-xxl-6.col-md-7
|
||||
span.header-table-wrapper Veljavnost
|
||||
ul.d-sm-flex.validity-row.ps-2.mb-0.mb-md-2
|
||||
.options-width-box
|
||||
li.form-check.radio-button.ms-0.ps-3
|
||||
input#allKeys.form-check-input(
|
||||
type="radio"
|
||||
name="flexRadioDefault"
|
||||
checked
|
||||
)
|
||||
label.radio-button-labels.form-check-label.ms-0.text-nowrap(
|
||||
for="allKeys"
|
||||
)
|
||||
| Vsi slovarski sestavki
|
||||
.options-another-box
|
||||
li.form-check.radio-button.ms-0.ps-3
|
||||
input#validKeys.form-check-input(
|
||||
type="radio"
|
||||
name="flexRadioDefault"
|
||||
)
|
||||
label.radio-button-labels.form-check-label.ms-0(
|
||||
for="validKeys"
|
||||
)
|
||||
| Veljavni
|
||||
.options-another-box
|
||||
li.form-check.radio-button.ms-0.ps-3
|
||||
input#notValidKeys.form-check-input(
|
||||
type="radio"
|
||||
name="flexRadioDefault"
|
||||
)
|
||||
label.radio-button-labels.form-check-label.ms-0(
|
||||
for="notValidKeys"
|
||||
)
|
||||
| Neveljavni
|
||||
.col.mb-3.mb-md-0
|
||||
span.name-info-txt Izberite, katere slovarske sestavke želite izpisati glede na njihovo veljavnost.
|
||||
.row.posted.align-items-center
|
||||
.col-xxl-6.col-md-7
|
||||
span.header-table-wrapper Objavljeno
|
||||
ul.d-sm-flex.validity-row.ps-2.mb-0.mb-md-2
|
||||
.options-width-box
|
||||
li.form-check.radio-button.ms-0.ps-3
|
||||
input#allPostedKeys.form-check-input(
|
||||
type="radio"
|
||||
name="posted"
|
||||
checked
|
||||
)
|
||||
label.radio-button-labels.form-check-label.ms-0.text-nowrap(
|
||||
for="allPostedKeys"
|
||||
)
|
||||
| Vsi slovarski sestavki
|
||||
.options-another-box
|
||||
li.form-check.radio-button.ms-0.ps-3
|
||||
input#onlyPosted.form-check-input(type="radio" name="posted")
|
||||
label.radio-button-labels.form-check-label.ms-0(
|
||||
for="onlyPosted"
|
||||
)
|
||||
| Objavljeni
|
||||
.options-another-box
|
||||
li.form-check.radio-button.ms-0.ps-3
|
||||
input#notPosted.form-check-input(type="radio" name="posted")
|
||||
label.radio-button-labels.form-check-label.ms-0(
|
||||
for="notPosted"
|
||||
)
|
||||
| Neobjavljeni
|
||||
.col.mb-3.mb-md-0
|
||||
span.name-info-txt Izberite, ali želite izpisati samo objavljene ali tudi neobjavljene slovarske sestavke.
|
||||
.row.phases.align-items-center
|
||||
.col-xxl-6.col-md-7
|
||||
span.header-table-wrapper Faze urejanja
|
||||
ul.d-sm-flex.validity-row.ps-2.mb-0.mb-md-2
|
||||
.options-width-box
|
||||
li.form-check.radio-button.ms-0.ps-3
|
||||
input#allEditedKeys.form-check-input(
|
||||
type="radio"
|
||||
name="edited"
|
||||
checked
|
||||
)
|
||||
label.radio-button-labels.form-check-label.ms-0.text-nowrap(
|
||||
for="allEditedKeys"
|
||||
)
|
||||
| Vsi slovarski sestavki
|
||||
.options-another-box
|
||||
li.form-check.radio-button.ms-0.ps-3
|
||||
input#editedKeys.form-check-input(type="radio" name="edited")
|
||||
label.radio-button-labels.form-check-label.ms-0(
|
||||
for="editedKeys"
|
||||
)
|
||||
| Urejeni
|
||||
.options-another-box
|
||||
li.form-check.radio-button.ms-0.ps-3
|
||||
input#inEditing.form-check-input(type="radio" name="edited")
|
||||
label.radio-button-labels.form-check-label.ms-0(
|
||||
for="inEditing"
|
||||
)
|
||||
| V urejanju
|
||||
.col.mb-3.mb-md-0
|
||||
span.name-info-txt Izberite, ali želite izpisati vse slovarske sestavke ali samo tiste, ki so v določeni fazi urejanja.
|
||||
.row.proffesional-check.align-items-center
|
||||
.col-xxl-6.col-md-7
|
||||
span.header-table-wrapper Strokovni pregled
|
||||
ul.d-sm-flex.validity-row.ps-2.mb-0.mb-md-2
|
||||
.options-width-box
|
||||
li.form-check.radio-button.ms-0.ps-3
|
||||
input#allChecked.form-check-input(
|
||||
type="radio"
|
||||
name="professionallyChecked"
|
||||
checked
|
||||
)
|
||||
label.radio-button-labels.form-check-label.ms-0(
|
||||
for="allChecked"
|
||||
)
|
||||
| Vsi slovarski sestavki
|
||||
.options-another-box
|
||||
li.form-check.radio-button.ms-0.ps-3
|
||||
input#onlyProffesionallyChecked.form-check-input(
|
||||
type="radio"
|
||||
name="professionallyChecked"
|
||||
)
|
||||
label.radio-button-labels.form-check-label.ms-0(
|
||||
for="onlyProffesionallyChecked"
|
||||
)
|
||||
| Pregledani
|
||||
.options-another-box
|
||||
li.form-check.radio-button.ms-0.ps-3
|
||||
input#notProffesionallyChecked.form-check-input(
|
||||
type="radio"
|
||||
name="professionallyChecked"
|
||||
)
|
||||
label.radio-button-labels.form-check-label.ms-0(
|
||||
for="notProffesionallyChecked"
|
||||
)
|
||||
| Nepregledani
|
||||
.col.mb-3.mb-md-0
|
||||
span.name-info-txt Izberite, ali želite izpisati samo strokovno pregledane slovarske sestavke.
|
||||
.row.terminology-check.align-items-center
|
||||
.col-xxl-6.col-md-7
|
||||
span.header-table-wrapper Jezikovni pregled
|
||||
ul.d-sm-flex.validity-row.ps-2.mb-0.mb-md-2
|
||||
.options-width-box
|
||||
li.form-check.radio-button.ms-0.ps-3
|
||||
input#allGramaticallyChecked.form-check-input(
|
||||
type="radio"
|
||||
name="gramaticallyChecked"
|
||||
checked
|
||||
)
|
||||
label.radio-button-labels.form-check-label.ms-0(
|
||||
for="allGramaticallyChecked"
|
||||
)
|
||||
| Vsi slovarski sestavki
|
||||
.options-another-box
|
||||
li.form-check.radio-button.ms-0.ps-3
|
||||
input#onlyGramaticallyChecked.form-check-input(
|
||||
type="radio"
|
||||
name="gramaticallyChecked"
|
||||
)
|
||||
label.radio-button-labels.form-check-label.ms-0(
|
||||
for="onlyGramaticallyChecked"
|
||||
)
|
||||
| Pregledani
|
||||
.options-another-box
|
||||
li.form-check.radio-button.ms-0.ps-3
|
||||
input#notGramaticallyChecked.form-check-input(
|
||||
type="radio"
|
||||
name="gramaticallyChecked"
|
||||
)
|
||||
label.radio-button-labels.form-check-label.ms-0(
|
||||
for="notGramaticallyChecked"
|
||||
)
|
||||
| Nepregledani
|
||||
.col.mb-3.mb-md-0
|
||||
span.name-info-txt Izberite, ali želite izpisati samo jezikovno pregledane slovarske sestavke.
|
||||
.file-type
|
||||
span.new-user-info FORMAT ZAPISA
|
||||
.row.align-items-center
|
||||
.col-xxl-6.col-md-7
|
||||
.form-check.radio-button.ms-2.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-3
|
||||
input#file-format-csv.form-check-input(
|
||||
type="radio"
|
||||
name="importFileFormat"
|
||||
value="csv"
|
||||
)
|
||||
label.form-check-label.ms-0(for="file-format-csv")
|
||||
| CSV
|
||||
.form-check.radio-button.ms-3
|
||||
input#file-format-tsv.form-check-input(
|
||||
type="radio"
|
||||
name="importFileFormat"
|
||||
value="tsv"
|
||||
)
|
||||
label.form-check-label.ms-0(for="file-format-tsv")
|
||||
| TSV
|
||||
.form-check.radio-button.ms-3
|
||||
input#file-format-txt.form-check-input(
|
||||
type="radio"
|
||||
name="importFileFormat"
|
||||
value="txt"
|
||||
)
|
||||
label.form-check-label.ms-0(for="file-format-txt")
|
||||
| TXT
|
||||
.col.mb-3.mb-md-0
|
||||
span.name-info-txt Izberite format izpisa vašega slovarja.
|
||||
button.btn.btn-primary.mt-4 IZVOZI
|
||||
.latest-exports.mt-4
|
||||
.d-flex.w-100.justify-content-between
|
||||
.d-flex
|
||||
span.info-text-for-button Zadnji izvozi
|
||||
.d-flex
|
||||
include /utilities/pager
|
||||
+pager(1,2,3,1,3,true)
|
||||
.d-block.w-100
|
||||
include /utilities/table-mixin
|
||||
-
|
||||
const headerRow = ['Datum', 'Vrsta', 'Št. gesel', 'Status']
|
||||
const dataRows = [
|
||||
['12.12.2012', 'Oznaka', 'Št. gesel', 'Oznaka', ""],
|
||||
['12.12.2012', 'Oznaka', 'Št. gesel', 'Oznaka', {button: {content:"Shrani"}}],
|
||||
['12.12.2012', 'Oznaka', 'Št. gesel', 'Oznaka', {button: {content:"Shrani"}}],
|
||||
['12.12.2012', 'Oznaka', 'Št. gesel', 'Oznaka', {button: {content:"Shrani"}}],
|
||||
['12.12.2012', 'Oznaka', 'Št. gesel', 'Oznaka', {button: {content:"Shrani"}}]
|
||||
]
|
||||
+tableHeader(headerRow, dataRows)
|
||||
|
||||
include /common/footer
|
||||
@@ -0,0 +1,66 @@
|
||||
extends /layout
|
||||
|
||||
block pageSpecificScipts
|
||||
script(nonce=cspNonce src="/javascripts/dictionaries.js")
|
||||
script(nonce=cspNonce src="/javascripts/dictionary-import-extraction.js")
|
||||
|
||||
block body
|
||||
section#fixed-top-section
|
||||
include /common/main-navigation
|
||||
+main-navigation(false)
|
||||
include /common/side-menu-mixin-dictionaries
|
||||
- const d = { activeLvl1: 'import', activeLvl2: 'extraction' }
|
||||
+sideNavigation(d)
|
||||
|
||||
include /utilities/dictionaries-main-panel-header
|
||||
- const c = { sideMenu: true, h2: dictionaryName, h1: 'Uvoz iz luščilnika', description: 'Rezultat luščenja so terminološki kandidati. Z uvozom rezultatov posameznega luščenja lahko dopolnite geslovnik terminološkega slovarja, ki ga urejate.', buttons: [] }
|
||||
+mainHeader(c)
|
||||
.content-hold-prerequisites
|
||||
#offset-main.main-container.mt-3
|
||||
.small-name-area
|
||||
.subject-name
|
||||
span.input-name-txt IME LUŠČENJA
|
||||
.row
|
||||
.col-lg-6
|
||||
select#select-extraction-name.name-input.d-inline.form-control
|
||||
option(selected value="" disabled hidden)= 'Izberite luščenje'
|
||||
each el in extractions
|
||||
option(value=el.id)= el.name
|
||||
.col-sm.d-flex.align-items-center
|
||||
span.name-info-txt.ms-lg-3.mt-2.mt-lg-0 Izberite enega od rezultatov luščenja s seznama.
|
||||
.list-terminology-candidates.mt-4.me-2
|
||||
.d-flex.w-100.justify-content-between
|
||||
.d-flex.align-items-center
|
||||
span.info-text-for-button Seznam terminoloških kandidatov
|
||||
.d-flex
|
||||
include /utilities/pager
|
||||
+pager
|
||||
.table-responsive.mt-2.me-2
|
||||
table.styled-table
|
||||
thead
|
||||
tr
|
||||
th= '#'
|
||||
th= 'KANONIČNA OBLIKA'
|
||||
th= 'RANKING'
|
||||
th= 'POGOSTOST OBJAVLJANJA'
|
||||
tbody#page-results
|
||||
.row.mt-4
|
||||
.me-0.pe-0.d-flex.align-items-center
|
||||
span.radio-button-labels Uvozi termine od številke
|
||||
input.without-arrows.form-control.terminology-input.ms-1(
|
||||
type="number"
|
||||
maxlength="5"
|
||||
name="from"
|
||||
min="0"
|
||||
)
|
||||
span.radio-button-labels.ms-1 do številke
|
||||
input.without-arrows.form-control.terminology-input.ms-1(
|
||||
type="number"
|
||||
maxlength="5"
|
||||
name="to"
|
||||
min="0"
|
||||
)
|
||||
|
||||
button.btn.btn-primary.mt-4(disabled) UVOZI
|
||||
|
||||
include /common/footer
|
||||
@@ -0,0 +1,154 @@
|
||||
extends /layout
|
||||
|
||||
block pageSpecificScipts
|
||||
script(nonce=cspNonce src="/javascripts/dictionaries.js")
|
||||
|
||||
block body
|
||||
section#fixed-top-section
|
||||
include /common/main-navigation
|
||||
+main-navigation(false)
|
||||
include /common/side-menu-mixin-dictionaries
|
||||
- const d = { activeLvl1: 'import', activeLvl2: 'file' }
|
||||
+sideNavigation(d)
|
||||
|
||||
include /utilities/dictionaries-main-panel-header
|
||||
- const c = { sideMenu: true, h2: dictionaryName, h1: 'Uvoz iz datoteke', description: 'Če imate pripravljen slovar v enem od formatov, ki so navedeni spodaj, lahko svoje podatke uvozite.', buttons: [] }
|
||||
+mainHeader(c)
|
||||
.content-hold-prerequisites
|
||||
#offset-main.main-container
|
||||
.import-container.mt-3.ms-1
|
||||
form#file-import-form(method="post" enctype="multipart/form-data")
|
||||
.file-type
|
||||
span.new-user-info DATOTEKA
|
||||
.row
|
||||
.col-md-6.ms-2.white-border-background.p-4.d-flex.align-items-center.justify-content-between
|
||||
.align-items-center.d-flex
|
||||
span#chosen-file.info-text-for-button Izberi datoteko
|
||||
div
|
||||
label(for="upload")
|
||||
button#button-import.btn.btn-primary(type="button") IZBERI
|
||||
input#upload(
|
||||
type="file"
|
||||
name="dictionaryImportFile"
|
||||
accept=".xml"
|
||||
)
|
||||
|
||||
.col-md.d-flex.align-items-center
|
||||
span.name-info-txt Izberite slovarske podatke, ki ste jih shranili na svojem računalniku.
|
||||
.file-type.mt-4
|
||||
span.new-user-info NAČIN UVOZA
|
||||
.row
|
||||
.col-sm-6.ms-2
|
||||
.checkbox
|
||||
input#flexCheckDefault.form-check-input(
|
||||
type="checkbox"
|
||||
name="deleteExistingEntries"
|
||||
)
|
||||
label.form-check-label(for="flexCheckDefault")
|
||||
span.user-email Izbriši obstoječe slovarske sestavke.
|
||||
.col
|
||||
span.name-info-txt Č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 FAZA UREJANJA
|
||||
#file-type-selection.file-types
|
||||
.row
|
||||
.col-sm-6.ms-2
|
||||
.form-check.radio-button.ms-0.ps-3
|
||||
input#in-edit-radio.form-check-input(
|
||||
type="radio"
|
||||
name="entryStatus"
|
||||
value="inEdit"
|
||||
checked
|
||||
)
|
||||
label.form-check-label.ms-0(for="in-edit-radio")
|
||||
| V urejanju
|
||||
#complete-radio.form-check.radio-button.ms-3
|
||||
input#complete-radio.form-check-input(
|
||||
type="radio"
|
||||
name="entryStatus"
|
||||
value="complete"
|
||||
)
|
||||
label.form-check-label.ms-0(for="complete-radio")
|
||||
| Urejeno
|
||||
.col
|
||||
span.name-info-txt 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 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(
|
||||
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(
|
||||
type="radio"
|
||||
name="importFileFormat"
|
||||
value="tsv"
|
||||
)
|
||||
label.form-check-label.ms-0(for="file-format-tsv")
|
||||
| TSV
|
||||
.form-check.radio-button.ms-2
|
||||
input#file-format-txt.form-check-input(
|
||||
type="radio"
|
||||
name="importFileFormat"
|
||||
value="txt"
|
||||
)
|
||||
label.form-check-label.ms-0(for="file-format-txt")
|
||||
| TXT
|
||||
.col
|
||||
span.name-info-txt Izberite format datoteke, v kateri je slovar shranjen na vašem računalniku.
|
||||
.file-type.mt-4
|
||||
button.btn.btn-primary.mt-4 UVOZI
|
||||
.latest-uploads.mt-4
|
||||
.d-flex.w-100.justify-content-between
|
||||
.d-flex
|
||||
span.info-text-for-button Zadnji uvozi test
|
||||
.d-flex
|
||||
include /utilities/pager
|
||||
+pager
|
||||
|
||||
-
|
||||
const localeOptions = {
|
||||
day: '2-digit',
|
||||
month: '2-digit',
|
||||
year: 'numeric',
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
second: '2-digit'
|
||||
}
|
||||
if imports.length
|
||||
.table-responsive
|
||||
table.styled-table
|
||||
thead
|
||||
tr
|
||||
th= 'DATUM'
|
||||
th= 'VRSTA'
|
||||
th= 'ŠT. GESEL'
|
||||
th= 'STATUS'
|
||||
th= ''
|
||||
|
||||
each element in imports
|
||||
tr
|
||||
td= element.timeStarted.toLocaleDateString('sl-SL', localeOptions)
|
||||
td= element.fileFormat
|
||||
td= element.countValidEntries
|
||||
td= element.status
|
||||
else
|
||||
p Ni še dodanih uvozov.
|
||||
|
||||
include /common/footer
|
||||
@@ -0,0 +1,81 @@
|
||||
extends /layout
|
||||
|
||||
block pageSpecificScipts
|
||||
script(nonce=cspNonce src="/javascripts/dictionaries.js")
|
||||
|
||||
block body
|
||||
section#fixed-top-section
|
||||
include /common/main-navigation
|
||||
+main-navigation(false)
|
||||
include /common/side-menu-fake
|
||||
+sideNavigationFake
|
||||
include /utilities/dictionaries-main-panel-header
|
||||
if user
|
||||
- const c = { sideMenu: false, h2: 'Urejanje', h1: 'Moji slovarji', description: 'Nabor vseh slovarjev, ki jih uporabnik lahko ureja kot glavni urednik ali pa ima dodeljeno pravico urejanja, pregledovanja, popravljanja ipd.', buttons: [{ type: 'link', content: 'Nov slovar', url: '/slovarji/nov' }] }
|
||||
+mainHeader(c)
|
||||
.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'
|
||||
)
|
||||
p.dictionary-title.mb-2.mt-2.ms-2= dictionary.nameSl
|
||||
hr.me-2.mt-0.ms-2.mb-4
|
||||
.container-fluid
|
||||
.d-sm-flex
|
||||
.d-lg-flex
|
||||
.d-sm-flex.mt-2
|
||||
span.dictionary-attributes.me-3.text-nowrap Število terminov
|
||||
span.dictionary-value.me-5= dictionary.countEntries
|
||||
.d-sm-flex.mt-2
|
||||
span.dictionary-attributes.me-3.ms-xl-5.text-nowrap Zadnja sprememba
|
||||
span.dictionary-value.me-md-5.me-2.d-block= dictionary.timeModified.toLocaleDateString('sl-SL', localeOptions)
|
||||
.d-lg-flex
|
||||
.d-sm-flex.mt-2
|
||||
span.dictionary-attributes.me-3.ms-xl-5.d-inline Status
|
||||
span.dictionary-value.me-5= dictionary.status === 'closed' ? 'zaprt' : dictionary.status === 'reviewed' ? 'v predogledu' : 'odprt'
|
||||
.d-sm-flex.mt-2
|
||||
span.dictionary-attributes.me-3.ms-lg-0.ms-xl-5.d-inline Komentarji
|
||||
span.dictionary-value.me-5= dictionary.countComments
|
||||
.container-fluid.d-md-flex.p-0.mt-3.justify-content-between
|
||||
.d-xl-flex.justify-content-between
|
||||
a.btn.btn-secondary.mb-2.mt-2.w-100.w-sm-none(
|
||||
href=`/slovarji/${dictionary.id}/podatki`
|
||||
)
|
||||
img.d-inline(src="/images/vector.svg" alt="")
|
||||
span.ms-1.text-nowrap Uredi lastnosti
|
||||
a.btn.btn-secondary.mb-2.mt-2.ms-xl-4.w-100.w-sm-none(
|
||||
href=`/slovarji/${dictionary.id}/vsebina`
|
||||
)
|
||||
img.d-inline(src="/images/book-colorized.svg" alt="")
|
||||
span.ms-1.text-nowrap Uredi vsebino
|
||||
.ms-md-4.ms-xl-auto.d-xl-flex.justify-content-between
|
||||
a.btn.btn-secondary.mb-2.mt-2.me-4.w-100.w-sm-none(
|
||||
href=`/slovarji/${dictionary.id}/uvoz/datoteka`
|
||||
)
|
||||
img.d-inline(src="/images/fi_upload.svg" alt="")
|
||||
span.ms-1 Uvoz
|
||||
a.btn.btn-secondary.mb-2.mt-2.w-100.w-sm-none(
|
||||
href=`/slovarji/${dictionary.id}/izvoz`
|
||||
)
|
||||
img.d-inline(src="/images/fi_download.svg" alt="")
|
||||
span.ms-1 Izvoz
|
||||
else
|
||||
.d-flex.justify-content-center.mt-5
|
||||
p Nimate slovarjev za urejanje.
|
||||
else
|
||||
- const c = { sideMenu: false, h2: 'Urejanje', h1: 'Moji slovarji', description: 'Nabor vseh slovarjev, ki jih uporabnik lahko ureja kot glavni urednik ali pa ima dodeljeno pravico urejanja, pregledovanja, popravljanja ipd.' }
|
||||
+mainHeader(c)
|
||||
.content-hold-prerequisites.pe-md-5.ps-4.pe-2
|
||||
#offset-main.pe-3.ps-2
|
||||
.d-flex.justify-content-center.mt-5
|
||||
p Za urejanje slovarjev morate biti prijavljeni.
|
||||
|
||||
include /common/footer
|
||||
@@ -0,0 +1,21 @@
|
||||
extends /layout
|
||||
|
||||
block pageSpecificScipts
|
||||
script(nonce=cspNonce src="/javascripts/dictionaries.js")
|
||||
|
||||
block body
|
||||
section#fixed-top-section
|
||||
include /common/main-navigation
|
||||
+main-navigation(false)
|
||||
|
||||
include /common/side-menu-fake
|
||||
+sideNavigationFake
|
||||
include /utilities/dictionaries-main-panel-header
|
||||
- const c = {sideMenu:false, h2: 'Urejanje', h1: 'Nov slovar', description: 'Izpolnite polja in na kratko opišite vsebino terminološkega slovarja.', helpLink: { linkHref: '/pomoc#help-editor', linkText: 'Več ...' }, buttons: [{ type: 'cancel', content: 'Prekliči', classAtr:"btn btn-secondary header-btn-secondary link-back" },{ type: 'button', content: 'Ustvari', form: 'form-dictionary-new' }] }
|
||||
+mainHeader(c)
|
||||
.content-hold-prerequisites
|
||||
#offset-main.container-fluid.mt-4.ps-sm-3
|
||||
include /utilities/dictionary-main-input
|
||||
+dictionaryMainInput({ formId: 'form-dictionary-new', hasStructure: true})
|
||||
include /utilities/modal-alert
|
||||
include /common/footer
|
||||
@@ -0,0 +1,23 @@
|
||||
extends /layout
|
||||
|
||||
block pageSpecificScipts
|
||||
script(nonce=cspNonce src="/javascripts/dictionaries.js")
|
||||
|
||||
block body
|
||||
section#fixed-top-section
|
||||
include /common/main-navigation
|
||||
+main-navigation(false)
|
||||
include /common/side-menu-mixin-dictionaries
|
||||
- const d = { activeLvl1: 'attributes', activeLvl2: 'structure' }
|
||||
+sideNavigation(d)
|
||||
|
||||
include /utilities/dictionaries-main-panel-header
|
||||
- const c = { sideMenu: true, h2: dictionary.nameSl, h1: 'Struktura slovarskega sestavka', description: 'V tem razdelku lahko določite elemente slovarskega sestavka. Z izbiro elementov se vam prikazuje podoba slovarskega sestavka. Izbiro lahko tudi med urejanjem vsebine kadarkoli spremenite.', helpLink: { linkHref: '/pomoc', linkText: 'Več ...' }, buttons: [{ type: 'disabled', content: 'Shrani', form: 'form-dictionary-structure' }] }
|
||||
+mainHeader(c)
|
||||
.content-hold-prerequisites
|
||||
#offset-main.main-container
|
||||
form#form-dictionary-structure.needs-validation(method="post" novalidate)
|
||||
include /utilities/dictionary-structure-input
|
||||
include /utilities/modal-alert-mixin
|
||||
+alertModal('unsaved-data', 'Shrani', 'Ne', 'modal-save-btn', 'modal-dont-save-btn', 'Imate neshranjene spremebe. Ali jih želite shraniti?')
|
||||
include /common/footer
|
||||
@@ -0,0 +1,283 @@
|
||||
extends /layout
|
||||
|
||||
block pageSpecificScipts
|
||||
script(nonce=cspNonce src="/javascripts/admin.js")
|
||||
|
||||
block body
|
||||
section#fixed-top-section
|
||||
include /common/main-navigation
|
||||
+main-navigation(false)
|
||||
include /common/side-menu-mixin-dictionaries
|
||||
- const d = { activeLvl1: 'attributes', activeLvl2: 'users' }
|
||||
+sideNavigation(d)
|
||||
|
||||
include /utilities/dictionaries-main-panel-header
|
||||
- const c = { sideMenu: true, h2: dictionary.nameSl, h1: 'Uporabniki', description: 'Registrirani uporabniki lahko dobijo različne vloge na portalu. Kot administrator jim lahko dodelite tudi vlogo skrbnika slovarjev in/ali skrbnika svetovalnice.', buttons: [{ type: 'disabled', content: 'Shrani', form: 'admin-dictionary-users' }] }
|
||||
+mainHeader(c)
|
||||
.content-hold-prerequisites
|
||||
#offset-main.main-container.mt-1
|
||||
form#admin-dictionary-users.container-xxl.ms-0.ps-0(method="post")
|
||||
span.users-subtitle-txt.ms-0 Faze urejanja
|
||||
.row.align-items-center.mt-2
|
||||
.col-sm-6
|
||||
.switch-forms-and-key-word.d-md-flex.mt-2
|
||||
.switch-forms
|
||||
.form-check.form-switch.d-flex
|
||||
input#preposition.form-check-input(
|
||||
type="checkbox"
|
||||
disabled
|
||||
checked
|
||||
)
|
||||
label.form-check-label(for="preposition") Predlog
|
||||
|
||||
.col-sm
|
||||
span.name-info-txt V slovarju so samo terminološki kandidati. Slovarja ne morete objaviti.
|
||||
|
||||
.row.align-items-center
|
||||
.col-sm-6
|
||||
.switch-forms-and-key-word.d-md-flex
|
||||
.switch-forms
|
||||
.form-check.form-switch.d-flex
|
||||
input#editing.form-check-input(
|
||||
type="checkbox"
|
||||
disabled
|
||||
checked
|
||||
)
|
||||
label.form-check-label(for="editing") V urejanju
|
||||
|
||||
.col-sm
|
||||
span.name-info-txt Slovarski sestavek je v fazi, ko se dodajajo in oblikujejo elementi, ki ste jih izbrali v strukturi slovarskega sestavka.
|
||||
a.ms-1.name-info-txt(href="/pomoc#help-users-dict" target="_blank") Več...
|
||||
|
||||
.row.align-items-center
|
||||
.col-sm-6
|
||||
.switch-forms-and-key-word.d-md-flex
|
||||
.switch-forms
|
||||
.form-check.form-switch.d-flex
|
||||
input#edited.form-check-input(
|
||||
type="checkbox"
|
||||
disabled
|
||||
checked
|
||||
)
|
||||
label.form-check-label(for="edited") Urejeno
|
||||
.col-sm
|
||||
span.name-info-txt Slovarski sestavek je pregledan in dokončan.
|
||||
|
||||
.row.align-items-center.mt-2
|
||||
.col-sm-6
|
||||
.switch-forms-and-key-word.d-md-flex
|
||||
.switch-forms
|
||||
if dictionary.terminologyReviewFlag
|
||||
.form-check.form-switch.d-flex
|
||||
input#terminology_review.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasTerminologyReview"
|
||||
checked
|
||||
)
|
||||
label.form-check-label(for="terminology_review") Strokovno pregledano
|
||||
else
|
||||
.form-check.form-switch.d-flex
|
||||
input#terminology_review.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasTerminologyReview"
|
||||
)
|
||||
label.form-check-label(for="terminology_review") Strokovno pregledano
|
||||
.col-sm
|
||||
span.name-info-txt Slovar je pregledal področni strokovnjak.
|
||||
|
||||
.row.align-items-center.mt-2
|
||||
.col-sm-6
|
||||
.switch-forms-and-key-word.d-md-flex
|
||||
.switch-forms
|
||||
if dictionary.languageReviewFlag
|
||||
.form-check.form-switch.d-flex
|
||||
input#language_review.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasLanguageReview"
|
||||
checked
|
||||
)
|
||||
label.form-check-label(for="language_review") Jezikovno pregledano
|
||||
else
|
||||
.form-check.form-switch.d-flex
|
||||
input#language_review.form-check-input(
|
||||
type="checkbox"
|
||||
name="hasLanguageReview"
|
||||
)
|
||||
label.form-check-label(for="language_review") Jezikovno pregledano
|
||||
|
||||
.col-sm
|
||||
span.name-info-txt Slovar je pregledal jezikoslovec.
|
||||
|
||||
.container-xl.mt-4.ms-0.ps-0
|
||||
span.users-subtitle-txt.ms-0.mt-3 Uporabniške pravice/vloge
|
||||
table#user-roles-table.table-users.table-borderless.align-middle.mt-3
|
||||
thead
|
||||
tr
|
||||
th.col-2
|
||||
span.user-rights-column-title Uporabnik
|
||||
th.col-2
|
||||
span.user-rights-column-title Administracija
|
||||
th.col-2.text-center
|
||||
span.user-rights-column-title Urejanje
|
||||
th.col-2
|
||||
span#txt-term-rev.user-rights-column-title Strokovni pregled
|
||||
th.col-2
|
||||
span#txt-lang-rev.user-rights-column-title Jezikovni pregled
|
||||
th.col-1.justify-content-center
|
||||
span.hidden-text Izbriši polje
|
||||
|
||||
if userRights
|
||||
each el in userRights
|
||||
tbody.user-data.pb-xl-2
|
||||
tr
|
||||
input.hidden-user-id(type="hidden" value=el.id)
|
||||
td.d-grid.justify-content-left.justify-content-xl-center.mb-0.align-items-center(
|
||||
scope="row"
|
||||
data-label=""
|
||||
)
|
||||
span.user-name-last-name= el.userName
|
||||
span.user-email= el.email
|
||||
|
||||
td.pt-1.pb-1(data-label="Administrator")
|
||||
.form-check.d-flex.justify-content-left.justify-content-xl-center.mb-0.align-items-center
|
||||
if el.hasAdministration
|
||||
input.administration-cb.form-check-input(
|
||||
type="checkbox"
|
||||
name=`rightsPerUser['${el.id}'][isAdministration]`
|
||||
checked
|
||||
)
|
||||
else
|
||||
input.administration-cb.form-check-input(
|
||||
type="checkbox"
|
||||
name=`rightsPerUser['${el.id}'][isAdministration]`
|
||||
)
|
||||
|
||||
td.pt-1.pb-1(data-label="Urejanje")
|
||||
.form-check.d-flex.justify-content-left.justify-content-xl-center.mb-0.align-items-center
|
||||
if el.hasEditing
|
||||
input.edit-cb.form-check-input(
|
||||
type="checkbox"
|
||||
name=`rightsPerUser['${el.id}'][isEditing]`
|
||||
checked
|
||||
)
|
||||
else
|
||||
input.edit-cb.form-check-input(
|
||||
type="checkbox"
|
||||
name=`rightsPerUser['${el.id}'][isEditing]`
|
||||
)
|
||||
|
||||
td.pt-1.pb-1(data-label="Strokovni pregled")
|
||||
.form-check.d-flex.justify-content-left.justify-content-xl-center.mb-0.align-items-center
|
||||
if el.hasTerminologyReview
|
||||
input.terminology-review-cb.form-check-input(
|
||||
type="checkbox"
|
||||
name=`rightsPerUser['${el.id}'][isTerminologyReview]`
|
||||
checked
|
||||
)
|
||||
else
|
||||
input.terminology-review-cb.form-check-input(
|
||||
type="checkbox"
|
||||
name=`rightsPerUser['${el.id}'][isTerminologyReview]`
|
||||
)
|
||||
|
||||
td.pt-1.pb-1(data-label="Jezikovni pregled")
|
||||
.form-check.d-flex.justify-content-left.justify-content-xl-center.mb-0.align-items-center
|
||||
if el.hasLanguageReview
|
||||
input.language-review-cb.form-check-input(
|
||||
type="checkbox"
|
||||
name=`rightsPerUser['${el.id}'][isLanguageReview]`
|
||||
checked
|
||||
)
|
||||
else
|
||||
input.language-review-cb.form-check-input(
|
||||
type="checkbox"
|
||||
name=`rightsPerUser['${el.id}'][isLanguageReview]`
|
||||
)
|
||||
|
||||
td.delete-user-btn.pt-3.delete-row(
|
||||
value=`${el.id}`
|
||||
data-bs-target="#alert-modal"
|
||||
data-bs-toggle="modal"
|
||||
)
|
||||
img.icon-trash-delete(
|
||||
src="/images/red-trash-icon.svg"
|
||||
alt="Delete"
|
||||
)
|
||||
|
||||
form#form-add-user.container-xl.new-user-input.mt-4.ps-0.ms-0(
|
||||
action="/api/v1/users/addUser"
|
||||
)
|
||||
span.new-user-info NOV UPORABNIK
|
||||
.row.d-flex.justify-content-lg-start.align-items-center.mt-2.ms-0.ps-0
|
||||
.col-lg-6.ms-0.ps-0.me-2
|
||||
input.name-input.d-inline.form-control.ms-0.ps-0(
|
||||
type="text"
|
||||
name="userNameEmail"
|
||||
autocomplete="off"
|
||||
)
|
||||
.col.ms-xl-4.ms-0.ps-0.d-flex.justify-content-start.mt-2.mt-lg-0
|
||||
button.btn.btn-primary Dodaj
|
||||
|
||||
- const minEntriesNum = parseInt(minEntries)
|
||||
- const countEntries = parseInt(entriesCount)
|
||||
.container-xxl.ms-0.ps-0
|
||||
.row.align-items-center
|
||||
.col-sm-6.mt-4
|
||||
.switch-forms-and-key-word.d-md-flex
|
||||
.form-check.form-switch.d-flex
|
||||
if publishApproval === 'F'
|
||||
if dictionary.status === 'closed'
|
||||
input#publish-switch.form-check-input(
|
||||
type="checkbox"
|
||||
name="isPublished"
|
||||
form="admin-dictionary-users"
|
||||
disabled=countEntries < minEntriesNum ? true : false
|
||||
)
|
||||
if dictionary.status === 'published'
|
||||
input#publish-switch.form-check-input(
|
||||
type="checkbox"
|
||||
name="isPublished"
|
||||
form="admin-dictionary-users"
|
||||
checked
|
||||
)
|
||||
else
|
||||
if dictionary.status === 'closed'
|
||||
input#publish-switch.form-check-input(
|
||||
type="checkbox"
|
||||
name="isPublished"
|
||||
form="admin-dictionary-users"
|
||||
disabled=countEntries < minEntriesNum ? true : false
|
||||
)
|
||||
if dictionary.status === 'reviewed'
|
||||
input#publish-switch.form-check-input(
|
||||
type="checkbox"
|
||||
name="isPublished"
|
||||
form="admin-dictionary-users"
|
||||
checked
|
||||
disabled
|
||||
)
|
||||
if dictionary.status === 'published'
|
||||
input#publish-switch.form-check-input(
|
||||
type="checkbox"
|
||||
name="isPublished"
|
||||
form="admin-dictionary-users"
|
||||
checked
|
||||
)
|
||||
label.form-check-label(for="publish-switch") Slovar odprt
|
||||
|
||||
.col-sm
|
||||
span.name-info-txt Slovar je pregledal jezikoslovec.
|
||||
if dictionary.status === 'published' && countEntries < minEntriesNum
|
||||
.col-sm-6
|
||||
span.mt-3.d-md-inline.d-block.normal-red-note Število slovarskih sestavkov je manjše od zahtevanega števila - povečajte število slovarskih sestavkov, sicer ga skrbnik slovarjev lahko zapre
|
||||
if publishApproval === 'T' && dictionary.status === 'reviewed'
|
||||
.col-sm-6
|
||||
span.mt-3.d-md-inline.d-block.normal-red-note Slovar je v odpiranju - čaka na potrditev skrbnika slovarjev
|
||||
|
||||
include /utilities/modal-alert
|
||||
include /utilities/modal-response
|
||||
+responseModal
|
||||
include /utilities/modal-alert-mixin
|
||||
+alertModal('unsaved-data', 'Shrani', 'Ne', 'modal-save-btn', 'modal-dont-save-btn', 'Imate neshranjene spremebe. Ali jih želite shraniti?')
|
||||
|
||||
include /common/footer
|
||||
Reference in New Issue
Block a user