CJVT updates August and September 2026
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user