Skip to content

Commit

Permalink
Server checkbox tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix committed Nov 22, 2024
1 parent 106ef9d commit 787ebb6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion qgis-app/plugins/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <b>serverClassFactory</b>, see the"
" <a href=\"https://docs.qgis.org/latest/en/docs/pyqgis_developer_cookbook/server.html#init-py\" target=\"_blank\">documentation</a>."
),
)

# Managers
objects = models.Manager()
Expand Down
2 changes: 1 addition & 1 deletion qgis-app/plugins/templates/plugins/form_snippet.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{% endif %}
{{ field }}
{% endif %}
<div class="help">{{ field.help_text }}</div>
<div class="help">{{ field.help_text|safe }}</div>
</div>
{% endfor %}
</fieldset>

0 comments on commit 787ebb6

Please sign in to comment.