diff --git a/src/views/admin/components/edition/item-edition-form.vue b/src/views/admin/components/edition/item-edition-form.vue index d26d91ffe..78b5d1be3 100644 --- a/src/views/admin/components/edition/item-edition-form.vue +++ b/src/views/admin/components/edition/item-edition-form.vue @@ -11,16 +11,33 @@

{{ $i18n.get('status_' + item.status) }} + class="status-tag" + @mouseenter="$emit('toggleItemEditionFooterDropdown')"> + {{ $i18n.get('status_' + item.status) }} + {{ $i18n.get('title_create_item_collection') + ' ' }} {{ collection && collection.name ? collection.name : '' }}

{{ $i18n.get('status_' + item.status) }} + class="status-tag" + @mouseenter="$emit('toggleItemEditionFooterDropdown')"> + {{ $i18n.get('status_' + item.status) }} + {{ $i18n.get('title_edit_item') + ' ' }} - {{ (item != null && item != undefined) ? item.title : '' }} + + {{ (item != null && item != undefined) ? item.title : '' }} + + + +

@@ -639,13 +656,14 @@

- + @@ -2181,13 +2198,6 @@ export default { align-items: center; transition: bottom 0.5s ease, width 0.2s linear; - .form-submission-footer { - .button { - margin-left: 16px; - margin-right: 6px; - } - } - @keyframes blink { from { color: var(--tainacan-blue5); } to { color: var(--tainacan-info-color); } @@ -2246,25 +2256,6 @@ export default { margin-left: auto;margin-bottom: 0.75em; margin-top: -0.25em; } - .form-submission-footer { - display: flex; - justify-content: space-between; - width: 100%; - - .button { - margin-left: 6px; - margin-right: 6px; - } - .button:first-of-type { - margin-left: 0px; - } - .button:last-of-type { - margin-right: 0px; - } - .button.is-success { - margin-left: auto; - } - } } } 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 5ebe8fe0b..5e8d56523 100644 --- a/src/views/admin/components/edition/item-form-footer-buttons.vue +++ b/src/views/admin/components/edition/item-form-footer-buttons.vue @@ -11,31 +11,12 @@ - - + + + + \ No newline at end of file diff --git a/src/views/admin/components/other/item-creation-status-dialog.vue b/src/views/admin/components/other/item-creation-status-dialog.vue new file mode 100644 index 000000000..8ade3abbe --- /dev/null +++ b/src/views/admin/components/other/item-creation-status-dialog.vue @@ -0,0 +1,124 @@ + + + + + + diff --git a/src/views/admin/scss/_dropdown-and-autocomplete.scss b/src/views/admin/scss/_dropdown-and-autocomplete.scss index aad8cf80e..f028fbeb9 100644 --- a/src/views/admin/scss/_dropdown-and-autocomplete.scss +++ b/src/views/admin/scss/_dropdown-and-autocomplete.scss @@ -57,7 +57,7 @@ &.control { font-size: 0.8125em !important; } &.dropdown-header { color: var(--tainacan-info-color) !important; } &:not(.dropdown-header):hover { background-color: var(--tainacan-input-border-color); } - + .b-checkbox { width: 100% }; label { margin-bottom: 0; } .is-small { color: var(--tainacan-info-color); } diff --git a/src/views/tainacan-i18n.php b/src/views/tainacan-i18n.php index 35ac63faa..e301fb8ce 100644 --- a/src/views/tainacan-i18n.php +++ b/src/views/tainacan-i18n.php @@ -642,6 +642,12 @@ return apply_filters( 'tainacan-i18n', [ 'label_document_and_thumbnail' => __( 'Document and thumbnail', 'tainacan' ), 'label_all_attachments' => __( 'All attachments', 'tainacan' ), 'label_only_required_metadata' => __( 'Only required metadata', 'tainacan' ), + 'label_update_as_public' => __( 'Update as public', 'tainacan' ), + 'label_update_as_private' => __( 'Update as private', 'tainacan' ), + 'label_change_to_private' => __( 'Change to private', 'tainacan' ), + 'label_change_to_draft' => __( 'Change to draft', 'tainacan' ), + 'label_create_item' => __( 'Create item', 'tainacan' ), + 'label_ready_to_create_item' => __( 'Ready to create this item?', 'tainacan' ), // Instructions. More complex sentences to guide user and placeholders 'instruction_delete_selected_collections' => __( 'Delete selected collections', 'tainacan' ), @@ -713,6 +719,7 @@ return apply_filters( 'tainacan-i18n', [ 'instruction_collection_description' => __( 'Enter the collection description here...', 'tainacan' ), 'instruction_collection_name' => __( 'Enter the collection name here...', 'tainacan' ), 'instruction_click_to_easily_see' => __( 'Click to easily see', 'tainacan' ), + 'instruction_create_item_select_status' => __( 'Select a status for the item visiblity on the site. Remember, whichever you select will still be restricted by the collection status as well.', 'tainacan' ), // Info. Other feedback to user. 'info_items_tab_all' => __( 'Every item, except by those sent to trash.', 'tainacan' ),