Small categorization adjustments

This commit is contained in:
Raphael Michel
2020-02-08 13:14:19 +01:00
parent e4619eeca3
commit 3ea4cdc3b3
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ author string Your name
version string A human-readable version code of your plugin
description string A more verbose description of what your plugin does.
category string Category of a plugin. Either one of ``"FEATURE"``, ``"PAYMENT"``,
``"INTEGRATION"``, ``"CUSTOMIZATION"``, ``"FORMATS"``, or ``"API"``,
``"INTEGRATION"``, ``"CUSTOMIZATION"``, ``"FORMAT"``, or ``"API"``,
or any other string.
visible boolean (optional) ``True`` by default, can hide a plugin so it cannot be normally activated.
restricted boolean (optional) ``False`` by default, restricts a plugin such that it can only be enabled
@@ -58,7 +58,7 @@
</div>
{% endif %}
</td>
<td class="text-right flip">
<td class="text-right flip" width="20%">
{% if plugin.app.compatibility_errors %}
<button class="btn disabled btn-block btn-default"
disabled="disabled">{% trans "Incompatible" %}</button>
+2 -2
View File
@@ -221,7 +221,7 @@ class EventPlugins(EventSettingsViewMixin, EventPermissionRequiredMixin, Templat
'PAYMENT',
'INTEGRATION',
'CUSTOMIZATION',
'FORMATS',
'FORMAT',
'API',
]
labels = {
@@ -229,7 +229,7 @@ class EventPlugins(EventSettingsViewMixin, EventPermissionRequiredMixin, Templat
'PAYMENT': _('Payment providers'),
'INTEGRATION': _('Integrations'),
'CUSTOMIZATION': _('Customizations'),
'FORMATS': _('Output and export formats'),
'FORMAT': _('Output and export formats'),
'API': _('API features'),
}
context['plugins'] = sorted([
+1 -1
View File
@@ -13,7 +13,7 @@ class ReportsApp(AppConfig):
name = _("Report exporter")
author = _("the pretix team")
version = version
category = 'FORMATS'
category = 'FORMAT'
description = _("This plugin allows you to generate printable reports about your sales.")
def ready(self):
@@ -13,7 +13,7 @@ class TicketOutputPdfApp(AppConfig):
name = _("PDF ticket output")
author = _("the pretix team")
version = version
category = 'FORMATS'
category = 'FORMAT'
description = _("This plugin allows you to print out tickets as PDF files")
def ready(self):