diff --git a/ckanext/editable_config/assets/css/editable_config.css b/ckanext/editable_config/assets/css/editable_config.css new file mode 100644 index 0000000..3d49d9a --- /dev/null +++ b/ckanext/editable_config/assets/css/editable_config.css @@ -0,0 +1,4 @@ +.editable-option-help--key { + max-width: 100%; + overflow-wrap: break-word; +} diff --git a/ckanext/editable_config/assets/script.js b/ckanext/editable_config/assets/script.js deleted file mode 100644 index d68a4ba..0000000 --- a/ckanext/editable_config/assets/script.js +++ /dev/null @@ -1,10 +0,0 @@ -ckan.module("editable_config-module", function ($, _) { - "use strict"; - return { - options: { - debug: false, - }, - - initialize: function () {}, - }; -}); diff --git a/ckanext/editable_config/assets/style.css b/ckanext/editable_config/assets/style.css deleted file mode 100644 index 9631595..0000000 --- a/ckanext/editable_config/assets/style.css +++ /dev/null @@ -1,5 +0,0 @@ -/* -body { - border-radius: 0; -} -*/ diff --git a/ckanext/editable_config/assets/webassets.yml b/ckanext/editable_config/assets/webassets.yml index fa62321..4772267 100644 --- a/ckanext/editable_config/assets/webassets.yml +++ b/ckanext/editable_config/assets/webassets.yml @@ -7,8 +7,8 @@ editable_config-js: preload: - base/main -# editable_config-css: -# filter: cssrewrite -# output: ckanext-editable_config/%(version)s-editable_config.css -# contents: -# - css/editable_config.css +editable_config-css: + filter: cssrewrite + output: ckanext-editable_config/%(version)s-editable_config.css + contents: + - css/editable_config.css diff --git a/ckanext/editable_config/config_declaration.yaml b/ckanext/editable_config/config_declaration.yaml index f8d01a6..91db5c7 100644 --- a/ckanext/editable_config/config_declaration.yaml +++ b/ckanext/editable_config/config_declaration.yaml @@ -36,6 +36,7 @@ groups: type: int default: 0 example: 10 + editable: true description: | Minimal number of seconds between two consequent change detection cycles. Basically, if you set 60 as a value, plugin will check config @@ -60,12 +61,14 @@ groups: - key: ckanext.editable_config.disable_admin_config_tab type: bool example: true + editable: true description: | Remove "Config" tab from CKAN's Admin UI. - key: ckanext.editable_config.replace_admin_config_tab type: bool example: true + editable: true description: | Replace "Config" tab from CKAN's Admin UI with basic form for editable config options. diff --git a/ckanext/editable_config/templates/editable_config/config.html b/ckanext/editable_config/templates/editable_config/config.html index 8cf8324..d06b883 100644 --- a/ckanext/editable_config/templates/editable_config/config.html +++ b/ckanext/editable_config/templates/editable_config/config.html @@ -13,6 +13,12 @@ {% asset "editable_config/editable_config-js" %} {% endblock scripts %} +{% block styles %} + {{ super() }} + {% asset "editable_config/editable_config-css" %} +{% endblock styles %} + + {% block primary_content_inner %} {% block form %} @@ -64,7 +70,10 @@

{% block sidebar_content %} {% for name in options %}

-