From 787ebb6393251e3adf1276462da70343288e7167 Mon Sep 17 00:00:00 2001 From: Lova Andriarimalala <43842786+Xpirix@users.noreply.github.com> Date: Fri, 22 Nov 2024 12:04:36 +0300 Subject: [PATCH] Server checkbox tooltip --- qgis-app/plugins/models.py | 11 ++++++++++- qgis-app/plugins/templates/plugins/form_snippet.html | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/qgis-app/plugins/models.py b/qgis-app/plugins/models.py index 5b4a7ff2..ff3f940e 100644 --- a/qgis-app/plugins/models.py +++ b/qgis-app/plugins/models.py @@ -478,7 +478,16 @@ class Plugin(models.Model): deprecated = models.BooleanField(_("Deprecated"), default=False, db_index=True) # True if the plugin has a server interface - server = models.BooleanField(_("Server"), default=False, db_index=True) + server = models.BooleanField( + _("Server"), + default=False, + db_index=True, + help_text=_( + "A server plugin is a plugin which can run on QGIS Server," + " by having a entrypoint serverClassFactory, see the" + " documentation." + ), + ) # Managers objects = models.Manager() diff --git a/qgis-app/plugins/templates/plugins/form_snippet.html b/qgis-app/plugins/templates/plugins/form_snippet.html index ae794508..3ba58232 100755 --- a/qgis-app/plugins/templates/plugins/form_snippet.html +++ b/qgis-app/plugins/templates/plugins/form_snippet.html @@ -21,7 +21,7 @@ {% endif %} {{ field }} {% endif %} -
{{ field.help_text }}
+
{{ field.help_text|safe }}
{% endfor %}