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
@@ -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