CJVT updates August and September 2026
This commit is contained in:
@@ -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