From 4957003c4d202b35b5b6fe3d490bf6ea4fa9a41d Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Fri, 10 Mar 2023 15:32:56 -0300 Subject: [PATCH] Begins new Taxonomy form and Terms list layout on admin side. #775. --- package-lock.json | 6 +- package.json | 2 +- .../edition/taxonomy-edition-form.vue | 504 ++++++++++-------- .../components/edition/term-edition-form.vue | 2 +- .../admin/components/lists/terms-list.vue | 147 ++--- src/views/tainacan-i18n.php | 1 + 6 files changed, 361 insertions(+), 301 deletions(-) diff --git a/package-lock.json b/package-lock.json index 288a934be..a72cdf5ef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2380,9 +2380,9 @@ } }, "buefy": { - "version": "0.9.22", - "resolved": "https://registry.npmjs.org/buefy/-/buefy-0.9.22.tgz", - "integrity": "sha512-rA9Bf7+2lZupL1PlQU60o7cc0Og4MRz9it5LZlKOIwPENM1uEOjH48EFnNFniLyxIcz6vln0EicS96GsVCFx1Q==", + "version": "0.9.23", + "resolved": "https://registry.npmjs.org/buefy/-/buefy-0.9.23.tgz", + "integrity": "sha512-zkmTOUDlh7xx0ID8cSw3Wtm97nkTGU992TcIBBTC41rjKHjJTyQn9fYr8oqvVaCTLNVJmdPnnjDCuYZtHoDEog==", "requires": { "bulma": "0.9.4" } diff --git a/package.json b/package.json index 1f446f74b..da418d77a 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "apexcharts": "^3.37.1", "axios": "^1.1.3", "blurhash": "^2.0.5", - "buefy": "^0.9.22", + "buefy": "^0.9.23", "bulma": "^0.9.4", "conditioner-core": "^2.3.3", "countup.js": "^2.5.0", diff --git a/src/views/admin/components/edition/taxonomy-edition-form.vue b/src/views/admin/components/edition/taxonomy-edition-form.vue index 914e63d13..c2d466aa2 100644 --- a/src/views/admin/components/edition/taxonomy-edition-form.vue +++ b/src/views/admin/components/edition/taxonomy-edition-form.vue @@ -6,239 +6,242 @@ { path: $routerHelper.getTaxonomiesPath(), label: $i18n.get('taxonomies') }, { path: '', label: (taxonomy != null && taxonomy.name != undefined) ? taxonomy.name : $i18n.get('taxonomy') } ]"/> - - -
-
-
- - - * + + +
+
+ + + * + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - -
- -
- - - - -
- - - - - {{ statusOption.name }} - -
-
- - - - - - - - - - + + + + + + + + -
- - {{ wpPostType.label }} - -
- + + + - - -
-
+
+ + {{ wpPostType.label }} + +
+
- -
-
- -
-
- -
-

- {{ formErrorMessage }} -

-

- {{ ($i18n.get('info_updated_at') + ' ' + updatedAt) }} -

- -
- - -
-
-
-

- - - -

-

{{ $i18n.get('info_can_not_edit_taxonomy') }}

-
-
- - - - - - +
+ + + + +
+ + + + + {{ statusOption.name }} + +
+
+ + + + + + + + + + +
+
+ + + + + +
+
+
+

+ + + +

+

{{ $i18n.get('info_can_not_edit_taxonomy') }}

+
+
+
+ + - -
@@ -569,5 +572,56 @@ color: var(--tainacan-info-color); font-style: italic; } + + .footer { + padding: 14px var(--tainacan-one-column); + position: fixed; + bottom: 0; + right: 0; + z-index: 9999; + background-color: var(--tainacan-gray1); + width: calc(100% - var(--tainacan-sidebar-width, 3.25em)); + height: 60px; + display: flex; + justify-content: flex-end; + align-items: center; + transition: bottom 0.5s ease, width 0.2s linear; + + .footer-message { + display: flex; + align-items: center; + } + + .update-info-section { + color: var(--tainacan-info-color); + margin-right: auto; + display: flex; + flex-wrap: nowrap; + } + + .help { + display: inline-flex; + font-size: 1.0em; + margin-top: 0; + margin-left: 24px; + + .tainacan-help-tooltip-trigger { + margin-left: 0.25em; + } + } + + @media screen and (max-width: 769px) { + padding: 13px 0.5em; + width: 100%; + flex-wrap: wrap; + height: auto; + position: fixed; + + .update-info-section { + margin-left: auto;margin-bottom: 0.75em; + margin-top: -0.25em; + } + } + } diff --git a/src/views/admin/components/edition/term-edition-form.vue b/src/views/admin/components/edition/term-edition-form.vue index 739c249cb..ab064811c 100644 --- a/src/views/admin/components/edition/term-edition-form.vue +++ b/src/views/admin/components/edition/term-edition-form.vue @@ -12,7 +12,7 @@ :is="isModal ? 'header' : 'div'" class="tainacan-page-title" :class="{ 'tainacan-modal-title': isModal }"> -

{{ form & form.id && form.id != 'new' ? $i18n.get("title_term_edit") : $i18n.get("title_term_creation") }}

+

{{ form & form.id && form.id != 'new' ? $i18n.get("title_term_edit") : $i18n.get("title_term_creation") }}

@@ -21,6 +24,7 @@ trap-focus>