X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/07fe485fb0a119fb87f8ec948185b5acdd65300e..32509c7ba5495ee0b0e42b0343cbd2a6125532cd:/forum/settings/form.py?ds=inline diff --git a/forum/settings/form.py b/forum/settings/form.py index 45df66f..5f770b3 100644 --- a/forum/settings/form.py +++ b/forum/settings/form.py @@ -9,6 +9,11 @@ label = _("Enable community wiki"), help_text = _("Can questions or answers be marked as community wiki."), required=False)) +LIMIT_TAG_CREATION = Setting('LIMIT_TAG_CREATION', False, FORUM_SET, dict( +label = _("Limit tag creation"), +help_text = _("Limit tag creation to super users, staff or users with a minimum reputation."), +required=False)) + """ settings for questions """ FORM_MIN_QUESTION_TITLE = Setting('FORM_MIN_QUESTION_TITLE', 10, FORUM_SET, dict( @@ -33,6 +38,9 @@ help_text = _("If a question's content can be empty."), required=False)) + + +""" settings for tags """ FORM_MIN_NUMBER_OF_TAGS = Setting('FORM_MIN_NUMBER_OF_TAGS', 1, FORUM_SET, dict( label = _("Required number of tags per question"), help_text = _("How many tags are required in questions."), @@ -43,6 +51,17 @@ label = _("Maximum number of tags per question"), help_text = _("How many tags are allowed in questions."), )) +FORM_MIN_LENGTH_OF_TAG = Setting('FORM_MIN_LENGTH_OF_TAG', 1, FORUM_SET, dict( +label = _("Minimum length of a tag"), +help_text = _("How short a tag can be."), +)) + +FORM_MAX_LENGTH_OF_TAG = Setting('FORM_MAX_LENGTH_OF_TAG', 20, FORUM_SET, dict( +label = _("Maximum length of a tag"), +help_text = _("How long a tag can be."), +)) + + """ settings for comments """ @@ -62,4 +81,7 @@ required=False)) FORM_GRAVATAR_IN_COMMENTS = Setting('FORM_GRAVATAR_IN_COMMENTS', False, FORUM_SET, dict( label = _("Show author gravatar in comments"), help_text = _("Show the gravatar image of a comment author."), -required=False)) \ No newline at end of file +required=False)) + + +