Files

387 lines
16 KiB
Plaintext

form#form-edit-content.needs-validatio.mt-2(
method="post"
novalidate
action="/api/v1/entries/create"
)
if canPublishEntriesInEdit === 'T'
input#can-publish-entries-in-edit(type="hidden" checked)
else
input#can-publish-entries-in-edit(type="hidden")
.collapsable-entry-part.collapse
.d-xl-flex.align-items-center.justify-content-between
.d-sm-flex.col-xl-6.col-12.align-items-center
.col-12.col-sm-3.flex-fill.me-2
span.term-id.normal-gray-label ID:
.col-12.col-sm-3.flex-fill
span#edit-version-el.normal-gray-label= t('Verzija 1')
.d-sm-flex.col-xl-6.col-12.align-items-center
.col-12.col-sm-3.flex-fill
span#edit-name-el.normal-gray-label= t('Ime Priimek')
.col-12.col-sm-3.flex-fill.ms-sm-2
span.normal-gray-label= t('Zaporedje:')
input#homonym-sort.ms-2.homonym-field.form-control.d-inline(
type="text"
name="homonymSort"
maxlength="2"
)
.d-xl-flex.align-items-center.mt-3.justify-content-between
.d-sm-flex.col-xl-6.col-12.align-items-center
.col-12.col-sm-3.flex-fill.me-2
select#status-edit.form-select.select-content-state.w-auto(
name="status"
)
option(value="suggestion" disabled)= t('Predlog')
option(value="in_edit")= t('V urejanju')
option(value="complete")= t('Urejeno')
.col-12.col-sm-3.flex-fill
.form-check.form-switch
input#published-cbox.form-check-input.me-2(
type="checkbox"
name="isPublished"
)
label.normal-gray-label(for="published-cbox")= t('Objavljeno')
.d-sm-flex.col-xl-6.col-12.align-items-center
.col-12.col-sm-3.flex-fill
input#terminology-cbox.form-check-input.me-2(
type="checkbox"
name="isTerminologyReviewed"
)
label.normal-gray-label(for="terminology-cbox")= t('Strokovno pregledano')
.col-12.col-sm-3.flex-fill.ms-sm-2
input#language-cbox.form-check-input.me-2(
type="checkbox"
name="isLanguageReviewed"
)
label.normal-gray-label(for="language-cbox")= t('Jezikovno pregledano')
.d-flex.justify-content-between.align-items-center.collapsible-data
.collapse-content
.d-flex.collapsed-text.align-items-center
.white-background
span.status-collapsed.normal-gray.m-2
.published-collapsed.d-flex.d-none
span.normal-gray.ms-2 |
span.normal-gray.ms-2= t('Objavljeno')
.terminology-collapsed.d-flex.d-none
span.normal-gray.ms-2 |
span.normal-gray.ms-2= t('Strokovno pregledano')
.lang-collapsed.d-flex.d-none
span.normal-gray.ms-2 |
span.normal-gray.ms-2= t('Jezikovno pregledano')
.homonim-collapse-div.d-flex.d-none
span.normal-gray.ms-2 |
span.homonim-collapsed.normal-gray.ms-2
a.collapsable-entry-btn.entry-collapsed.btn.p-0.me-2(
data-bs-toggle="collapse"
href=".collapsable-entry-part"
role="button"
aria-expanded="false"
aria-controls="collapseExample"
)
img(src="/images/chevron-right.svg")
.note-section.mt-2
.message-container.d-none
.task.task-declined.p-2.mb-4.me-2
.d-sm-flex.justify-content-sm-between.d-grid.mt-2
.d-grid
.d-flex.align-items-center
img(src="/images/alert-triangle-dark-red.svg")
span.ms-2.normal-red-note= t('Slovarski sestavek je neveljaven')
ul.mt-2.ms-4.mb-2
li.error-type-1.heavy-gray-text.d-none= t('Tip napake 1 (ni slovenskega termina)')
li.error-type-2.heavy-gray-text.d-none= t('Tip napake 2 (ni definicije ali tujejezičnega termina)')
.col.note-section-line.me-1.my-1.d-none
hr.my-0
input#hidden-dictionary-id.hidden-input-dict-id(
type="hidden"
name="dictionaryId"
value=dictionaryId
)
.term-input-group.mt-xl-4.mt-3
.subject-name.col-sm-12.col-xl-8.col-xxl-6.d-flex.justify-content-between
label.input-name-txt(for="term-name")= t('TERMIN')
include /utilities/mixed-content
- const type = 'two'
+mixedContentBtns
.row.align-items-center
.col-sm-12.col-xl-8.col-xxl-6
textarea#term-name.name-input.form-control.d-inline.explanation-field.mc-field.dispatch-tab(
type="text"
name="term"
)
.col.d-none.d-xl-flex.align-items-center
span.d-md-inline.d-block.name-info-txt= t('Vnesite termin.')
//- #create-headword-group.mt-sm-3.mt-2
.subject-name
label.input-name-txt(for="btn-new-headword-grp") OBLIKE, NAGLASI, IZGOVOR
.row
.col-sm-12.col-xl-8.col-xxl-6
button#btn-new-headword-grp.input-new-btn.form-control(type="button")
span.new-author-text-btn Poveži z leksikalno bazo.
.col.d-none.d-xl-flex.align-items-center
span.d-md-inline.d-block.name-info-txt.mt-3.mt-sm-0 Z Izbiro gumba se boste povezali z leksikalno bazo in boste lahko potrdili, ali se termin, ki ste ga zapisali pregiba, naglašuje ali izgovarja na način, kakor je predstavljeno.
#created-headword-group.mt-sm-4.mt-2.d-none
.subject-name
span.input-name-txt= t('Oblike, naglasi, izgovor')
.col-sm-12.col-xl-8.col-xxl-6
.table-responsive
table#headword-table.table-striped.table
tr
td#term-key
td
a(href="")= t('Oblike')
td
a(href="")= t('Naglas')
td
a(href="")= t('Izgovor')
if structure.hasDomainLabels
.title.mt-sm-4.mt-2
.subject-name
label.input-name-txt(for="headword-group")= t('PODROČNE OZNAKE')
.row
.col-sm-12.col-xl-8.col-xxl-6
select#domain-secondary.name-input.d-inline.form-control.multiple(
name="domainLabels"
multiple
)
if entryDomainLabels.length
each domain in entryDomainLabels
option(value=domain.id)= domain.name
.col.d-none.d-xl-flex.align-items-center
span.d-md-inline.d-block.name-info-txt.mt-3.mt-sm-0= t('Vstavite ustrezno področno oznako, ki jo želite določiti za posamezni termin.')
if structure.hasLabel
.title.mt-sm-4.mt-2
.subject-name.col-sm-12.col-xl-8.col-xxl-6.d-flex.justify-content-between
label.input-name-txt(for="explanation-field")= t('POJASNILO')
+mixedContentBtns(type)
.row
.col-sm-12.col-xl-8.col-xxl-6
textarea#explanation-field.form-control.explanation-field.mc-field.dispatch-tab(
type="text"
name="label"
)
.col.d-none.d-xl-flex.align-items-center
span.d-md-inline.d-block.name-info-txt.mt-3.mt-sm-0= t('Dodajte podatek o zunajjezikovnih okoliščinah, ki niso povezane s pojmom, npr. letnico.')
if structure.hasDefinition
.title.mt-sm-4.mt-2
.subject-name.col-sm-12.col-xl-8.col-xxl-6.d-flex.justify-content-between
label.input-name-txt(for="definition-field")= t('DEFINICIJA')
+mixedContentBtns(type)
.row
.col-sm-12.col-xl-8.col-xxl-6
textarea#definition-field.form-control.explanation-field.mc-field.dispatch-tab(
type="text"
name="definition"
)
.col.d-none.d-xl-flex.align-items-center
span.d-md-inline.d-block.name-info-txt.mt-3.mt-sm-0= t('Vstavite definicijo pojma.')
if structure.hasSynonyms
.title.mt-sm-4.mt-2
.subject-name.col-sm-6.d-flex.justify-content-between
label.input-name-txt(for="synonyms-input")= t('SINONIMI')
//- +mixedContentBtns
.row
.col-sm-12.col-xl-8.col-xxl-6
select#synonyms-input.select-synonyms.name-input.d-inline.form-control.without-dropdown.mc-field(
name="synonyms"
multiple
)
.col.d-none.d-xl-flex.align-items-center
span.d-md-inline.d-block.name-info-txt.mt-3.mt-sm-0= t('Vstavite termine, ki se za definirani pojem tudi uporabljajo.')
if structure.hasLinks
.title.mt-sm-4.mt-2
.subject-name.col-12.col-xl-8.col-xxl-6.d-flex.justify-content-between
label.input-name-txt(for="connections")= t('POVEZANI TERMIN')
+mixedContentBtns
.row.align-items-center.link-row
.col-xxl-2.col-xl-3.col-4
select.name-input.form-select.d-inline(
type="text"
name="type"
placeholder="Tip"
)
option(value="related")= t('Sorodni')
option(value="broader")= t('Širši')
option(value="narrow")= t('Ožji')
.col-8.col-xl-5.col-xxl-4
input#connections.name-input.form-control.d-inline.mc-field.dispatch-tab(
type="text"
name="links"
maxlength="120"
)
.col.d-none.d-xl-flex.align-items-cente
span.d-md-inline.d-block.name-info-txt.mt-3.mt-sm-0= t('Dodajte termin, ki je sicer definiran v samostojnem slovarskem sestavku, vendar je povezan s terminom, ki ga opisujete v tem slovarskem sestavku.')
#add-new-connection.mt-sm-4.mt-2
.subject-name
label.input-name-txt(for="input-new-connection")= t('DODATNI POVEZANI TERMIN')
.row
.col-sm-12.col-xl-8.col-xxl-6
button#input-new-connection.input-new-btn.form-control(type="button")
span.new-author-text-btn= t('Dodaj povezani termin.')
.col.d-none.d-xl-flex.align-items-center
span.d-md-inline.d-block.name-info-txt.mt-3.mt-sm-0
if structure.hasOther
.title.mt-sm-4.mt-2
.subject-name.col-sm-12.col-xl-8.col-xxl-6.d-flex.justify-content-between
label.input-name-txt(for="other-field")= t('DRUGO')
- const br = 'br'
+mixedContentBtns(br)
.row
.col-sm-12.col-xl-8.col-xxl-6
textarea#other-field.form-control.explanation-field.mc-field(
type="text"
name="other"
)
.col.d-none.d-xl-flex.align-items-center
span.d-md-inline.d-block.name-info-txt.mt-3.mt-sm-0= t('Vnesite podatke, ki niso sistemsko vključeni v druga polja, npr. vir, zgled rabe.')
if structure.hasForeignLanguages
#foreign-languages-group
.mt-sm-4.mt-2
span.input-name-txt= t('TUJI JEZIKI')
.languages-group-white.pb-3.pt-1.mt-2
if languages.length
each language, index in languages
hr(class=index ? 'hr-languages' : 'd-none')
.language.px-3(data-langauge-id=language.id)
span.bold-blue-text= language.name
input(
type="hidden"
name=`foreign[${language.id}][code]`
value=language.code
)
.subject-name.mt-2.col-sm-12.col-xl-8.col-xxl-6.d-flex.justify-content-between
label.input-name-txt.mt-2(for="foreign-term")= t('TERMINI')
+mixedContentBtns
.row
.col-sm-12.col-xl-8.col-xxl-6
select.foreign-term-el.name-input.d-inline.form-control.without-dropdown.mc-field(
name=`foreign[${language.id}][term]`
multiple
)
.col.d-none.d-xl-flex.align-items-center
span.d-md-inline.d-block.name-info-txt.mt-3.mt-sm-0= t('Dodajte tujejezični ustreznik.')
if structure.hasForeignDefinitions
.mt-sm-4.mt-2
.subject-name.col-sm-12.col-xl-8.col-xxl-6.d-flex.justify-content-between.col-sm-6
label.input-name-txt= t('DEFINICIJA')
+mixedContentBtns(type)
.row
.col-sm-12.col-xl-8.col-xxl-6
textarea.foreign-definition-el.foreign-definition-field.form-control.explanation-field.mc-field.dispatch-tab(
type="text"
name=`foreign[${language.id}][definition]`
)
.col.d-none.d-xl-flex.align-items-center
span.d-md-inline.d-block.name-info-txt.mt-3.mt-sm-0= t('Vpišite definicijo v tujem jeziku.')
if structure.hasForeignSynonyms
.mt-sm-4.mt-2
.subject-name.d-flex.justify-content-between.col-sm-6
label.input-name-txt.mt-2= t('SINONIMI')
//- +mixedContentBtns
.row.mb-4
.col-sm-12.col-xl-8.col-xxl-6
select.foreign-synonym-el.name-input.d-inline.form-control.without-dropdown.mc-field(
name=`foreign[${language.id}][synonym]`
multiple
)
.col.d-none.d-xl-flex.align-items-center
span.d-md-inline.d-block.name-info-txt.mt-3.mt-sm-0= t('Dodajte tujejezične ustreznike, ki se za opisani pojem tudi uporabljajo v tujem jeziku.')
else
.language.px-3
span.bold-blue-text= languages.name
.subject-name.d-flex.flex-column.mt-2
label.input-name-txt.mt-2(for="foreign-term")= t('TERMINI')
.row
.col-sm-12.col-xl-8.col-xxl-6
select.name-input.d-inline.form-control.without-dropdown(
name="foreignTerm"
multiple
)
.col.d-none.d-xl-flex.align-items-center
span.d-md-inline.d-block.name-info-txt.mt-3.mt-sm-0= t('Dodajte tujejezični ustreznik.')
if structure.hasImages || structure.hasAudio || structure.hasVideo
.mt-sm-4.mt-2
span.input-name-txt= t('MULTIMEDIJA')
.multimedia-section.px-3.pb-3.pt-1
if structure.hasImages
.mt-3
.subject-name
label.input-name-txt(for="image-input-field")= t('SLIKA')
.row
.col-sm-12.col-xl-8.col-xxl-6
input#image-input-field.form-control.d-inline(
name="image"
maxlength="120"
placeholder="URL"
)
.col.d-none.d-xl-flex.align-items-center
span.d-md-inline.d-block.name-info-txt.mt-3.mt-sm-0= t('Dodajte povezavo do slike.')
#add-new-image.mt-sm-4.mt-2
.subject-name
label.input-name-txt(for="input-new-image")= t('NOVA SLIKA')
.row
.col-sm-12.col-xl-8.col-xxl-6
button#input-new-image.input-new-btn.form-control(type="button")
span.new-author-text-btn= t('Nova slika')
.col.d-none.d-xl-flex.align-items-center
span.d-md-inline.d-block.name-info-txt.mt-3.mt-sm-0
if structure.hasAudio
.mt-sm-4.mt-2
.subject-name
label.input-name-txt(for="audio-input-field")= t('ZVOK')
.row
.col-sm-12.col-xl-8.col-xxl-6
input#audio-input-field.form-control.d-inline(
name="audio"
maxlength="120"
placeholder="URL"
)
.col.d-none.d-xl-flex.align-items-center
span.d-md-inline.d-block.name-info-txt.mt-3.mt-sm-0= t('Dodajte povezavo do zvočnega posnetka.')
#add-new-audio.mt-sm-4.mt-2
.subject-name
label.input-name-txt(for="input-new-audio")= t('NOV ZVOK')
.row
.col-sm-12.col-xl-8.col-xxl-6
button#input-new-audio.input-new-btn.form-control(type="button")
span.new-author-text-btn= t('Nov zvok')
.col.d-none.d-xl-flex.align-items-center
span.d-md-inline.d-block.name-info-txt.mt-3.mt-sm-0
if structure.hasVideo
.mt-sm-4.mt-2
.subject-name
label.input-name-txt(for="video-input-field")= t('VIDEO')
.row
.col-sm-12.col-xl-8.col-xxl-6
input#video-input-field.form-control.d-inline(
name="video"
maxlength="120"
placeholder="URL"
)
.col.d-none.d-xl-flex.align-items-center
span.d-md-inline.d-block.name-info-txt.mt-3.mt-sm-0= t('Dodajte povezavo do videa.')
#add-new-video.mt-sm-4.mt-2
.subject-name
label.input-name-txt(for="input-new-video")= t('NOV VIDEO')
.row
.col-sm-12.col-xl-8.col-xxl-6
button#input-new-video.input-new-btn.form-control(type="button")
span.new-author-text-btn= t('Nov video')
.col.d-none.d-xl-flex.align-items-center
span.d-md-inline.d-block.name-info-txt.mt-3.mt-sm-0