Files
term_portal/express/views/extraction-poc/term-candidates.pug
T
2022-12-07 04:43:36 +01:00

24 lines
758 B
Plaintext

h1 Terminološki kandidati
include /utilities/pager
+pager
ul#page-results
each termCandidate, index in firstPageOfTermCandidates
li [#{ index + 1 }] #{ JSON.stringify(termCandidate) }
form(action=`/api/v1/extraction/${extractionId}/term-candidates-export`)
p Izvozi termine od številke
input(type="number" name="from")
p do številke
input(type="number" name="to")
button Izvozi
script#variables-transport-script(nonce=cspNonce).
const termCandidates = !{ termCandidatesJson }.terminoloski_kandidati;
const hitsPerPage = #{ hitsPerPage };
const numberOfAllPages = #{ numberOfAllPages };
document.getElementById('variables-transport-script').remove();
script(nonce=cspNonce src="/javascripts/extraction-poc-term-candidates.js")