diff --git a/src/views/admin/components/edition/item-edition-form.vue b/src/views/admin/components/edition/item-edition-form.vue
index 78b5d1be3..6fdec6e43 100644
--- a/src/views/admin/components/edition/item-edition-form.vue
+++ b/src/views/admin/components/edition/item-edition-form.vue
@@ -177,41 +177,6 @@
v-html="getBeginRightForm"/>
-
- .tainacan-admin-collection-mobile-app-mode .page-container.item-edition-container,
- .tainacan-admin-collection-mobile-app-mode .page-container.item-creation-container {
- padding-top: 0px;
+ .tainacan-admin-collection-mobile-app-mode {
+ .page-container.item-edition-container,
+ .page-container.item-creation-container {
+ padding-top: 0px;
+ }
+ .column.main-column {
+ padding-top: 0.75em !important;
+ }
+ .b-tabs {
+ #tainacanTabsSwiper {
+ background-color: var(--tainacan-gray1);
+ --tainacan-background-color: var(--tainacan-gray1);
+ position: sticky;
+ top: 56px;
+ }
+ }
+ .footer {
+ background-color: transparent !important;
+ pointer-events: none;
+
+ .item-edition-footer-dropdown {
+ pointer-events: all;
+ }
+ .button {
+ pointer-events: all;
+ box-shadow: 2px 2px 12px -8px var(--tainacan-gray5) !important;
+ }
+ }
}
.page-container.item-edition-container,
.page-container.item-creation-container {
- padding: var(--tainacan-container-padding) 0px 0px 0px;
+ padding: 0px 0px 60px 0px;
+ height: calc(100% + 42px);
+
+ .tainacan-page-title {
+ margin-top: var(--tainacan-container-padding);
+ }
&>.tainacan-form {
margin-bottom: 60px;
diff --git a/src/views/admin/components/edition/item-form-footer-buttons.vue b/src/views/admin/components/edition/item-form-footer-buttons.vue
index 5e8d56523..dc1aed7a3 100644
--- a/src/views/admin/components/edition/item-form-footer-buttons.vue
+++ b/src/views/admin/components/edition/item-form-footer-buttons.vue
@@ -29,19 +29,23 @@
+ class="button is-secondary"
+ :style="{ marginLeft: $adminOptions.mobileAppMode ? 'auto' : '0.5em' }">{{ $i18n.get('label_create_item') }}
+
+
+
+
+
+
@@ -176,8 +197,7 @@ export default {
hasSomeError: Boolean,
currentUserCanDelete: Boolean,
currentUserCanPublish: Boolean,
- isEditingItemMetadataInsideIframe: Boolean,
- visibility: String
+ isEditingItemMetadataInsideIframe: Boolean
},
mounted() {
this.$parent.$on('toggleItemEditionFooterDropdown', () => {
@@ -197,6 +217,7 @@ export default {
canCancel: false,
props: {
icon: 'item',
+ currentUserCanPublish: this.currentUserCanPublish,
onConfirm: (selectedStatus) => {
this.$emit('onSubmit', selectedStatus);
}
diff --git a/src/views/admin/components/other/item-creation-status-dialog.vue b/src/views/admin/components/other/item-creation-status-dialog.vue
index 8ade3abbe..dde21841a 100644
--- a/src/views/admin/components/other/item-creation-status-dialog.vue
+++ b/src/views/admin/components/other/item-creation-status-dialog.vue
@@ -36,7 +36,7 @@
@@ -72,6 +72,7 @@
name: 'ItemCreationStatusDialog',
props: {
icon: String,
+ currentUserCanPublish: Boolean,
onConfirm: {
type: Function,
default: () => {}
@@ -79,7 +80,20 @@
},
data() {
return {
- selectedStatus: 'publish'
+ selectedStatus: !this.$adminOptions.hideItemEditionStatusPublishOption ? 'publish' : 'private'
+ }
+ },
+ computed: {
+ availableStatus() {
+ return this.$statusHelper.getStatuses().filter((status) => {
+ if (
+ status.slug != 'trash' &&
+ ( ( this.currentUserCanPublish && !this.$adminOptions.hideItemEditionStatusPublishOption ) || status.slug != 'publish' )
+ )
+ return true;
+
+ return false;
+ });
}
},
mounted() {
@@ -120,5 +134,30 @@
margin-top: 12px;
}
+ @media screen and (max-width: 768px) {
+ .modal-card {
+ padding: 2rem 0.875rem 0.875rem;
+ border-bottom-left-radius: 0;
+ border-bottom-right-radius: 0;
+ }
+ .modal-custom-icon {
+ display: none !important;
+ }
+ .modal-card-body {
+ padding: 0 1.25rem !important;
+ }
+ .status-radios {
+ flex-wrap: wrap;
+ }
+ .status-radios .b-radio {
+ margin-bottom: 0.5rem !important;
+ font-size: 1.125rem;
+ padding-bottom: 0.5rem;
+ }
+ .status-radios .b-radio::not(:last-child) {
+ border-bottom: 1px solid var(--tainacan-gray2);
+ }
+ }
+
diff --git a/src/views/admin/pages/singles/item-page.vue b/src/views/admin/pages/singles/item-page.vue
index 8e231d3a7..6ae67df84 100644
--- a/src/views/admin/pages/singles/item-page.vue
+++ b/src/views/admin/pages/singles/item-page.vue
@@ -14,7 +14,16 @@
{{ $i18n.get('status_' + item.status) }}
{{ $i18n.get('title_item_page') + ' ' }}
- {{ (item != null && item != undefined) ? item.title : '' }}
+ {{ (item != null && item != undefined) ? item.title : '' }}
+
+
+
+