diff --git a/src/components/manage/Blocks/DiscodataOpenlayersMapBlock/View.jsx b/src/components/manage/Blocks/DiscodataOpenlayersMapBlock/View.jsx index ce18a00a..1dcd93dd 100644 --- a/src/components/manage/Blocks/DiscodataOpenlayersMapBlock/View.jsx +++ b/src/components/manage/Blocks/DiscodataOpenlayersMapBlock/View.jsx @@ -1185,15 +1185,17 @@ const OpenlayersMapView = (props) => { - {state.popupDetails.properties.nLCP || 0} Large - combustion plants + {state.popupDetails.properties.nInstallations || 0}{' '} + Installations
@@ -1202,17 +1204,15 @@ const OpenlayersMapView = (props) => { - {state.popupDetails.properties.nInstallations || 0}{' '} - Installations + {state.popupDetails.properties.nLCP || 0} Large + combustion plants diff --git a/src/components/manage/Blocks/GlossarySearchBlock/Edit.jsx b/src/components/manage/Blocks/GlossarySearchBlock/Edit.jsx new file mode 100644 index 00000000..8097f625 --- /dev/null +++ b/src/components/manage/Blocks/GlossarySearchBlock/Edit.jsx @@ -0,0 +1,92 @@ +import React from 'react'; +import { connect } from 'react-redux'; +import { compose } from 'redux'; +import { injectIntl } from 'react-intl'; +import View from './View'; + +import RenderFields from 'volto-addons/Widgets/RenderFields'; + +const schema = { + title: { + title: 'Title', + type: 'text', + }, + description: { + title: 'Description', + type: 'text', + }, + placeholder: { + title: 'Placeholder', + type: 'text', + }, + searchButton: { + title: 'Search button', + type: 'boolean', + }, + buttonText: { + title: 'Button text', + type: 'text', + requires: 'searchButton', + }, + className: { + title: 'Class name', + type: 'text', + }, + buttonClassName: { + title: 'Button class name', + type: 'text', + requires: 'searchButton', + }, + query: { + title: 'Query parameters', + type: 'schema', + fieldSetTitle: 'Query metadata', + fieldSetId: 'query-metadata', + fieldSetSchema: { + fieldsets: [ + { + id: 'default', + title: 'title', + fields: ['title', 'id', 'value'], + }, + ], + properties: { + title: { + type: 'string', + title: 'Query title', + }, + id: { + type: 'string', + title: 'Query id', + description: 'This will be used as query parameter key', + }, + value: { + type: 'array', + title: 'Values', + }, + }, + required: ['id', 'title', 'value'], + }, + editFieldset: false, + deleteFieldset: false, + }, +}; + +const Edit = (props) => { + if (__SERVER__) { + return ; + } + return ( +Tableau edit mode
+ ) : ( + '' + )}