From 2e013f2dc0365222e480da09aefc571f95fd06f0 Mon Sep 17 00:00:00 2001 From: Lova Andriarimalala <43842786+Xpirix@users.noreply.github.com> Date: Wed, 25 Sep 2024 13:37:58 +0300 Subject: [PATCH] Use bulma for notification --- .../templates/plugins/form_snippet.html | 10 +++--- .../templates/plugins/plugin_detail.html | 6 ++-- .../templates/plugins/plugin_feedback.html | 12 +++---- .../templates/plugins/plugin_form.html | 12 +++---- .../plugins/plugin_token_delete_confirm.html | 2 +- .../templates/plugins/plugin_token_form.html | 12 +++---- .../templates/plugins/plugin_upload.html | 36 +++++++++---------- .../plugins/version_delete_confirm.html | 2 +- .../templates/plugins/version_detail.html | 2 +- .../templates/plugins/version_form.html | 6 ++-- qgis-app/static/js/bulma.js | 11 ++++++ qgis-app/static/style/scss/_variables.scss | 2 +- qgis-app/templates/base.html | 1 + qgis-app/templates/layouts/header.html | 2 +- qgis-app/templates/registration/login.html | 8 ++--- 15 files changed, 67 insertions(+), 57 deletions(-) create mode 100644 qgis-app/static/js/bulma.js diff --git a/qgis-app/plugins/templates/plugins/form_snippet.html b/qgis-app/plugins/templates/plugins/form_snippet.html index a75c544b..5371cede 100755 --- a/qgis-app/plugins/templates/plugins/form_snippet.html +++ b/qgis-app/plugins/templates/plugins/form_snippet.html @@ -45,12 +45,12 @@ Choose a fileā¦ - {% if field.errors %} - {% for error in field.errors %} -
{{ error }}
- {% endfor %} - {% endif %} + {% if field.errors %} + {% for error in field.errors %} +{{ error }}
+ {% endfor %} + {% endif %} {% elif field.field.widget|klass == 'Textarea' %}{% trans "This plugin has no public version yet." %}
+ {% trans "This plugin has no public version yet." %}{% trans "The plugin maintainer has been blocked." %}
+ {% trans "The plugin maintainer has been blocked." %}{% trans "This plugin is deprecated!" %}
+ {% trans "This plugin is deprecated!" %}{% trans "The form contains errors and cannot be submitted, please check the fields highlighted in red." %}
+{{ error }}
+ {{ error }}{% trans "The form contains errors and cannot be submitted, please check the fields highlighted in red." %}
+{{ error }}
+ {{ error }}{% trans "The form contains errors and cannot be submitted, please check the fields highlighted in red." %}
+{{ error }}
+ {{ error }}{{ error }}
+ {{ error }}{{ error }}
+ {{ error }}