Adds option to completelly hide the document section on item edition page and item single page.
This commit is contained in:
parent
d7876201b6
commit
2a59cad444
|
@ -39,7 +39,9 @@
|
|||
label-width="120px">
|
||||
<div class="columns">
|
||||
|
||||
<div class="column is-7">
|
||||
<div
|
||||
class="column"
|
||||
:class="!$adminOptions.hideItemEditionDocument || !$adminOptions.hideItemEditionThumbnail ? 'is-7' : 'is-12'">
|
||||
|
||||
<!-- Hook for extra Form options -->
|
||||
<template v-if="hasBeginRightForm">
|
||||
|
@ -390,7 +392,9 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="column is-5">
|
||||
<div
|
||||
v-if="!$adminOptions.hideItemEditionDocument || !$adminOptions.hideItemEditionThumbnail"
|
||||
class="column is-5">
|
||||
|
||||
<div class="sticky-container">
|
||||
|
||||
|
@ -403,13 +407,17 @@
|
|||
</template>
|
||||
|
||||
<!-- Document -------------------------------- -->
|
||||
<div class="section-label">
|
||||
<div
|
||||
v-if="!$adminOptions.hideItemEditionDocument"
|
||||
class="section-label">
|
||||
<label>{{ form.document != undefined && form.document != null && form.document != '' ? $i18n.get('label_document') : $i18n.get('label_document_empty') }}</label>
|
||||
<help-button
|
||||
:title="$i18n.getHelperTitle('items', 'document')"
|
||||
:message="$i18n.getHelperMessage('items', 'document')"/>
|
||||
</div>
|
||||
<div class="section-box document-field">
|
||||
<div
|
||||
v-if="!$adminOptions.hideItemEditionDocument"
|
||||
class="section-box document-field">
|
||||
<div
|
||||
v-if="form.document != undefined && form.document != null &&
|
||||
form.document_type != undefined && form.document_type != null &&
|
||||
|
|
|
@ -616,9 +616,10 @@ AdminOptionsHelperPlugin.install = function (Vue, options = {}) {
|
|||
* hideItemEditionStatusOptions
|
||||
* hideItemEditionStatusPublishOption
|
||||
* hideItemEditionCommentsToggle
|
||||
* hideItemEditionDocumentFileInput
|
||||
* hideItemEditionDocumentTextInput
|
||||
* hideItemEditionDocumentUrlInput
|
||||
* hideItemEditionDocument
|
||||
* hideItemEditionDocumentFileInput
|
||||
* hideItemEditionDocumentTextInput
|
||||
* hideItemEditionDocumentUrlInput
|
||||
* hideItemEditionThumbnail
|
||||
* hideItemEditionAttachments
|
||||
|
||||
|
@ -629,6 +630,7 @@ AdminOptionsHelperPlugin.install = function (Vue, options = {}) {
|
|||
* hideItemSingleCurrentStatus
|
||||
* hideItemSingleCurrentVisibility
|
||||
* hideItemSingleCommentsOpen
|
||||
* hideItemSingleDocument
|
||||
* hideItemSingleThumbnail
|
||||
* hideItemSingleAttachments
|
||||
* hideItemSingleActivities
|
||||
|
|
|
@ -26,7 +26,9 @@
|
|||
<div class="tainacan-form">
|
||||
<div class="columns">
|
||||
|
||||
<div class="column is-7">
|
||||
<div
|
||||
class="column"
|
||||
:class="!$adminOptions.hideItemSingleDocument || !$adminOptions.hideItemSingleThumbnail ? 'is-7' : 'is-12'">
|
||||
|
||||
<!-- Hook for extra Form options -->
|
||||
<template v-if="hasBeginRightForm">
|
||||
|
@ -268,7 +270,9 @@
|
|||
</b-tabs>
|
||||
</div>
|
||||
|
||||
<div class="column is-5">
|
||||
<div
|
||||
v-if="!$adminOptions.hideItemSingleDocument || !$adminOptions.hideItemSingleThumbnail"
|
||||
class="column is-5">
|
||||
<div class="sticky-container">
|
||||
|
||||
<!-- Hook for extra Form options -->
|
||||
|
@ -280,12 +284,16 @@
|
|||
</template>
|
||||
|
||||
<!-- Document -------------------------------- -->
|
||||
<div class="section-label">
|
||||
<div
|
||||
v-if="!$adminOptions.hideItemSingleDocument"
|
||||
class="section-label">
|
||||
<label>{{ item.document !== undefined && item.document !== null && item.document !== ''
|
||||
?
|
||||
$i18n.get('label_document') : $i18n.get('label_document_empty') }}</label>
|
||||
</div>
|
||||
<div class="section-box document-field">
|
||||
<div
|
||||
v-if="!$adminOptions.hideItemSingleDocument"
|
||||
class="section-box document-field">
|
||||
<div
|
||||
v-if="item.document !== undefined && item.document !== null &&
|
||||
item.document_type !== undefined && item.document_type !== null &&
|
||||
|
|
Loading…
Reference in New Issue