Skip to content

Commit

Permalink
Fix tag input using updated script and bulma css
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix committed Oct 16, 2024
1 parent 43f7403 commit 3f80406
Show file tree
Hide file tree
Showing 6 changed files with 239 additions and 239 deletions.
11 changes: 10 additions & 1 deletion qgis-app/models/templatetags/resources_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,13 @@ def get_sustaining_members_section():
else:
return "Section not found"
except requests.RequestException as e:
return f"Error: {e}"
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])
4 changes: 2 additions & 2 deletions qgis-app/static/js/resource_upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions qgis-app/static/style/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Loading

0 comments on commit 3f80406

Please sign in to comment.