diff --git a/qgis-app/models/templatetags/resources_utils.py b/qgis-app/models/templatetags/resources_utils.py index 0782f3f..68a88e0 100755 --- a/qgis-app/models/templatetags/resources_utils.py +++ b/qgis-app/models/templatetags/resources_utils.py @@ -95,4 +95,13 @@ def get_sustaining_members_section(): else: return "Section not found" except requests.RequestException as e: - return f"Error: {e}" \ No newline at end of file + return f"Error: {e}" + +@register.filter +def get_string_tags(tags): + """ + Get the string representation of tags + """ + if not tags: + return '' + return ', '.join([tag.name for tag in tags]) \ No newline at end of file diff --git a/qgis-app/static/js/resource_upload.js b/qgis-app/static/js/resource_upload.js index 3872646..7ca5985 100644 --- a/qgis-app/static/js/resource_upload.js +++ b/qgis-app/static/js/resource_upload.js @@ -5,13 +5,13 @@ let disableSubmit = () =>{ $("#licenseAgreed").prop('disabled', true); $("#licenseAgreed").removeClass() - $("#licenseAgreed").addClass("btn") + $("#licenseAgreed").addClass("button") } let enableSubmit = () => { $("#licenseAgreed").prop('disabled', false); $("#licenseAgreed").removeClass() - $("#licenseAgreed").addClass("btn btn-primary") + $("#licenseAgreed").addClass("button is-success") } // Disable submit button diff --git a/qgis-app/static/style/scss/style.scss b/qgis-app/static/style/scss/style.scss index c7df222..f0e6015 100644 --- a/qgis-app/static/style/scss/style.scss +++ b/qgis-app/static/style/scss/style.scss @@ -328,3 +328,11 @@ a.is-active > span { height: 16px; display:block; } + +#tag-suggestions { + position: absolute; + width: 100%; + z-index: 1; + max-height: 250px; + overflow: auto; +} diff --git a/qgis-app/templates/base/form_snippet.html b/qgis-app/templates/base/form_snippet.html index 313f989..84dda0f 100644 --- a/qgis-app/templates/base/form_snippet.html +++ b/qgis-app/templates/base/form_snippet.html @@ -1,156 +1,217 @@ {% load i18n resources_custom_tags resources_utils %} -