diff --git a/src/bundle/Resources/encore/ez.js.config.js b/src/bundle/Resources/encore/ez.js.config.js index 6edef51b0d..9f264e4e47 100644 --- a/src/bundle/Resources/encore/ez.js.config.js +++ b/src/bundle/Resources/encore/ez.js.config.js @@ -109,13 +109,11 @@ module.exports = (Encore) => { path.resolve(__dirname, '../public/js/scripts/button.state.toggle.js'), path.resolve(__dirname, '../public/js/scripts/button.content.edit.js'), path.resolve(__dirname, '../public/js/scripts/admin.version.edit.conflict.js'), - path.resolve(__dirname, '../public/js/scripts/admin.content.tree.js'), ]) .addEntry('ezplatform-admin-ui-content-draft-list-js', [ path.resolve(__dirname, '../public/js/scripts/button.state.toggle.js'), path.resolve(__dirname, '../public/js/scripts/button.content.edit.js'), path.resolve(__dirname, '../public/js/scripts/admin.version.edit.conflict.js'), - path.resolve(__dirname, '../public/js/scripts/admin.content.tree.js'), ]) .addEntry('ezplatform-admin-ui-content-type-create-js', [ path.resolve(__dirname, '../public/js/scripts/admin.contenttype.selection.js'), @@ -157,21 +155,17 @@ module.exports = (Encore) => { path.resolve(__dirname, '../public/js/scripts/button.content.edit.js'), path.resolve(__dirname, '../public/js/scripts/admin.search.filters.js'), path.resolve(__dirname, '../public/js/scripts/udw/select.location.js'), - path.resolve(__dirname, '../public/js/scripts/admin.content.tree.js'), ]) .addEntry('ezplatform-admin-ui-section-list-js', [ path.resolve(__dirname, '../public/js/scripts/admin.section.list.js'), path.resolve(__dirname, '../public/js/scripts/button.state.toggle.js'), ]) .addEntry('ezplatform-admin-ui-section-view-js', [path.resolve(__dirname, '../public/js/scripts/admin.section.view.js')]) - .addEntry('ezplatform-admin-ui-trash-list-js', [ - path.resolve(__dirname, '../public/js/scripts/admin.trash.list.js'), - path.resolve(__dirname, '../public/js/scripts/admin.content.tree.js'), - ]) + .addEntry('ezplatform-admin-ui-trash-list-js', [path.resolve(__dirname, '../public/js/scripts/admin.trash.list.js')]) .addEntry('ezplatform-admin-ui-content-preview-js', [path.resolve(__dirname, '../public/js/scripts/admin.preview.js')]) .addEntry('ezplatform-admin-ui-location-view-js', [ path.resolve(__dirname, '../public/js/scripts/admin.location.change.language.js'), - path.resolve(__dirname, '../public/js/scripts/admin.content.tree.js'), + path.resolve(__dirname, '../public/js/scripts/admin.location.content.tree.js'), path.resolve(__dirname, '../public/js/scripts/admin.location.view.js'), path.resolve(__dirname, '../public/js/scripts/admin.location.tab.js'), path.resolve(__dirname, '../public/js/scripts/admin.location.visibility.js'), diff --git a/src/bundle/Resources/public/js/scripts/admin.content.tree.js b/src/bundle/Resources/public/js/scripts/admin.location.content.tree.js similarity index 100% rename from src/bundle/Resources/public/js/scripts/admin.content.tree.js rename to src/bundle/Resources/public/js/scripts/admin.location.content.tree.js diff --git a/src/bundle/Resources/public/scss/_main-row.scss b/src/bundle/Resources/public/scss/_main-row.scss index 6598def848..c2ae2ba341 100644 --- a/src/bundle/Resources/public/scss/_main-row.scss +++ b/src/bundle/Resources/public/scss/_main-row.scss @@ -1,13 +1,38 @@ .ez-main-row { - display: flex; - flex-wrap: nowrap; + display: grid; + grid-template-columns: 1fr calculateRem(80px); + grid-template-rows: auto; + grid-template-areas: 'ez-content-container ez-context-menu'; + + .ez-content-container { + grid-area: ez-content-container; + } - .ez-side-menu, .ez-context-menu { - flex: 0 0 calculateRem(80px); + grid-area: ez-context-menu; } - .ez-content-container { - flex: 1 1 auto; + .ez-has-two-sidebars & { + grid-template-columns: calculateRem(80px) 1fr calculateRem(80px); + grid-template-areas: 'ez-side-menu ez-content-container ez-context-menu'; + + .ez-side-menu { + grid-area: ez-side-menu; + } + } + + .ez-has-no-sidebars & { + grid-template-columns: 1fr; + grid-template-areas: 'ez-content-container'; + + .ez-context-menu, + .ez-side-menu { + display: none; + } + } + + &.ez-dashboard-row { + grid-template-columns: 1fr; + grid-template-areas: 'ez-content-container'; } } diff --git a/src/bundle/Resources/public/scss/_content-tree.scss b/src/bundle/Resources/public/scss/_view-content.scss similarity index 82% rename from src/bundle/Resources/public/scss/_content-tree.scss rename to src/bundle/Resources/public/scss/_view-content.scss index 16e297fa7d..ddb643c866 100644 --- a/src/bundle/Resources/public/scss/_content-tree.scss +++ b/src/bundle/Resources/public/scss/_view-content.scss @@ -1,9 +1,6 @@ -.ez-content-view, -.ez-bookmark-list-view, -.ez-search-view, -.ez-trash-list-view, -.ez-drafts-list-view { +.ez-content-view { .ez-content-container { + display: flex; min-width: 0; } @@ -15,6 +12,7 @@ background: $ez-white; color: inherit; transition: max-width 0.2s $ez-admin-transition; + margin-bottom: calculateRem(-24px); &--expanded { display: initial; @@ -29,7 +27,7 @@ } } - .ez-view-container { + .ez-location-view-container { flex: 1 1 auto; min-width: 0; } diff --git a/src/bundle/Resources/public/scss/ezplatform.scss b/src/bundle/Resources/public/scss/ezplatform.scss index 6795079e87..7b103c5df6 100644 --- a/src/bundle/Resources/public/scss/ezplatform.scss +++ b/src/bundle/Resources/public/scss/ezplatform.scss @@ -71,4 +71,4 @@ @import 'admin.section-view'; @import 'admin.content-type-view'; @import 'main-row'; -@import 'content-tree'; +@import 'view-content'; diff --git a/src/bundle/Resources/views/admin/bookmark/list.html.twig b/src/bundle/Resources/views/admin/bookmark/list.html.twig index 371d895169..7522d62b0a 100644 --- a/src/bundle/Resources/views/admin/bookmark/list.html.twig +++ b/src/bundle/Resources/views/admin/bookmark/list.html.twig @@ -22,74 +22,72 @@ 'attr': { 'class': 'ez-toggle-btn-state', 'data-toggle-button-id': '#bookmark_remove_remove' } }) }} {% include '@ezdesign/parts/table_header.html.twig' with { - ground: 'mt-3', - headerText: 'bookmark.table.header'|trans|desc('Bookmarks') ~ ' (' ~ pager.count ~ ')', - tools: form_widget(form_remove.remove, {'attr': {'class': 'btn btn-danger', 'disabled': true}}) - } %} -
+ | + | {{ 'bookmark.list.name'|trans|desc('Name') }} | +{{ 'bookmark.list.content_type'|trans|desc('Content Type') }} | +{{ 'bookmark.list.path'|trans|desc('Path') }} | ++ | |
---|---|---|---|---|---|---|
+ {{ 'bookmark.list.empty'|trans|desc('The bookmark list is empty. Any Content item you bookmark will end up here.') }} + | +||||||
- | - | {{ 'bookmark.list.name'|trans|desc('Name') }} | -{{ 'bookmark.list.content_type'|trans|desc('Content Type') }} | -{{ 'bookmark.list.path'|trans|desc('Path') }} | -- | |
- {{ 'bookmark.list.empty'|trans|desc('The bookmark list is empty. Any Content item you bookmark will end up here.') }} + | {{ form_widget(form_remove.bookmarks[bookmark.id]) }} | ++ | -||||
{{ form_widget(form_remove.bookmarks[bookmark.id]) }} | -- |
+ | + | {{ 'drafts.list.name'|trans|desc('Name') }} | +{{ 'drafts.list.content_type'|trans|desc('Content Type') }} | +{{ 'drafts.list.modified_language'|trans|desc('Modified Language') }} | +{{ 'drafts.list.version'|trans|desc('Version') }} | +{{ 'drafts.list.last_saved'|trans|desc('Last Saved') }} | ++ | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
+ + {{ 'drafts.list.empty'|trans|desc('The draft list is empty. Any Content draft you create will end up here.') }} + + | +||||||||||||||
- | - | {{ 'drafts.list.name'|trans|desc('Name') }} | -{{ 'drafts.list.content_type'|trans|desc('Content Type') }} | -{{ 'drafts.list.modified_language'|trans|desc('Modified Language') }} | -{{ 'drafts.list.version'|trans|desc('Version') }} | -{{ 'drafts.list.last_saved'|trans|desc('Last Saved') }} | -- | |||||||
- - {{ 'drafts.list.empty'|trans|desc('The draft list is empty. Any Content draft you create will end up here.') }} - + | + {{ form_widget(form_remove.versions[row.id ~ '']) }} | -|||||||||||||
- {{ form_widget(form_remove.versions[row.id ~ '']) }} - | -
-
+ |
+ {{ row.name }} |
+ {{ row.content_type.name }} |
+ {{ admin_ui_config.languages.mappings[row.language].name }} |
+ {{ row.version }} |
+ {{ row.modified|ez_full_datetime }} |
+
+ |
- {{ row.name }} |
- {{ row.content_type.name }} |
- {{ admin_ui_config.languages.mappings[row.language].name }} |
- {{ row.version }} |
- {{ row.modified|ez_full_datetime }} |
-
-
- |
- |
@@ -44,8 +44,8 @@
{% else %}
-
-
-
- {{ 'pagination.viewing'|trans({
- '%viewing%': pager.currentPageResults|length,
- '%total%': pager.nbResults}, 'pagination')|desc('Viewing %viewing% out of %total% items')|raw }}
-
-
-
- {{ pagerfanta(pager, 'ez', {'pageParameter': '[search][page]'}) }}
-
- {% endif %}
+ {% if pager.haveToPaginate %}
+
+
+ {{ 'pagination.viewing'|trans({
+ '%viewing%': pager.currentPageResults|length,
+ '%total%': pager.nbResults}, 'pagination')|desc('Viewing %viewing% out of %total% items')|raw }}
+
+
+
+ {{ pagerfanta(pager, 'ez', {'pageParameter': '[search][page]'}) }}
+
+ {% endif %}
+
{% endif %}
{% form_theme form_edit '@ezdesign/parts/form/flat_widgets.html.twig' %}
@@ -91,10 +91,6 @@
{% endblock %}
-{% block react_modules %}
- {{ encore_entry_script_tags('ezplatform-admin-ui-modules-content-tree-js', null, 'ezplatform') }}
-{% endblock %}
-
{% block javascripts %}
{{ encore_entry_script_tags('ezplatform-admin-ui-search-js', null, 'ezplatform') }}
{% endblock %}
diff --git a/src/bundle/Resources/views/admin/search/search_form.html.twig b/src/bundle/Resources/views/admin/search/search_form.html.twig
index bed8e10c5d..b934d79646 100644
--- a/src/bundle/Resources/views/admin/search/search_form.html.twig
+++ b/src/bundle/Resources/views/admin/search/search_form.html.twig
@@ -3,7 +3,7 @@
{% trans_default_domain 'search' %}
{{ form_start(form) }}
-
+
-
{{ form_widget(form.query) }}
diff --git a/src/bundle/Resources/views/admin/trash/list.html.twig b/src/bundle/Resources/views/admin/trash/list.html.twig
index 2156e0a528..4107fe718d 100644
--- a/src/bundle/Resources/views/admin/trash/list.html.twig
+++ b/src/bundle/Resources/views/admin/trash/list.html.twig
@@ -62,56 +62,54 @@
{% endif %}
-
@@ -153,10 +151,6 @@
{% endblock %}
-{% block react_modules %}
- {{ encore_entry_script_tags('ezplatform-admin-ui-modules-content-tree-js', null, 'ezplatform') }}
-{% endblock %}
-
{% block javascripts %}
{{ encore_entry_script_tags('ezplatform-admin-ui-trash-list-js', null, 'ezplatform') }}
{% endblock %}
diff --git a/src/bundle/Resources/views/content/locationview.html.twig b/src/bundle/Resources/views/content/locationview.html.twig
index 2329b36533..9550e6aa5a 100644
--- a/src/bundle/Resources/views/content/locationview.html.twig
+++ b/src/bundle/Resources/views/content/locationview.html.twig
@@ -1,5 +1,3 @@
-{% set location_path = location.pathString %}
-
{% extends "@ezdesign/layout.html.twig" %}
{% trans_default_domain 'locationview' %}
@@ -21,13 +19,17 @@
data-parent-location-path="{{ location.pathString }}"
data-parent-content-type-identifier="{{ contentType.identifier }}"
data-parent-content-type-id="{{ contentType.id }}">
-
+
{% block left_sidebar %}
{{ parent() }}
{% endblock left_sidebar %}
+
-
+
+
+
{% set items = [] %}
@@ -90,6 +92,7 @@
{% endif %}
-
-
{% endblock left_sidebar %}
{% endblock content %}
|