CJVT updates August and September 2026

This commit is contained in:
Luka Romih
2026-10-01 00:49:26 +02:00
parent fd02e25719
commit 83f73aeb58
135 changed files with 6146 additions and 1970 deletions
@@ -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