diff --git a/CHANGELOG b/CHANGELOG index f9e59d8d4..d2fad35f5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -16,11 +16,14 @@ Other: template signals and slides. -Version 1.7.0 (unreleased) -========================== +Version 1.7 (unreleased) +======================== [https://github.com/OpenSlides/OpenSlides/milestones/1.7] -Motions: +Core: +- New feature to tag motions, agenda and assignments. +Motion: +- New Feature to create amendments, which are related to a parent motion. - Added possibility to hide motions from non staff users in some states. Other: - Cleaned up utils.views to increase performance when fetching single objects diff --git a/openslides/agenda/forms.py b/openslides/agenda/forms.py index 62c5420e1..aab531b27 100644 --- a/openslides/agenda/forms.py +++ b/openslides/agenda/forms.py @@ -30,7 +30,7 @@ class ItemForm(CleanHtmlFormMixin, CssClassMixin, forms.ModelForm): class Meta: model = Item - fields = ('item_number', 'title', 'text', 'comment', 'type', 'duration', 'parent', 'speaker_list_closed') + fields = ('item_number', 'title', 'text', 'comment', 'tags', 'type', 'duration', 'parent', 'speaker_list_closed') widgets = {'text': CKEditorWidget(config_name='images')} diff --git a/openslides/agenda/models.py b/openslides/agenda/models.py index 06f618fbb..51b5098ed 100644 --- a/openslides/agenda/models.py +++ b/openslides/agenda/models.py @@ -11,6 +11,7 @@ from django.utils.translation import ugettext_lazy, ugettext_noop from mptt.models import MPTTModel, TreeForeignKey from openslides.config.api import config +from openslides.core.models import Tag from openslides.projector.api import (get_active_slide, reset_countdown, start_countdown, stop_countdown, update_projector, update_projector_overlay) @@ -107,6 +108,11 @@ class Item(SlideMixin, AbsoluteUrlMixin, MPTTModel): True, if the list of speakers is closed. """ + tags = models.ManyToManyField(Tag, blank=True) + """ + Tags to categorise agenda items. + """ + class Meta: permissions = ( ('can_see_agenda', ugettext_noop("Can see agenda")), diff --git a/openslides/agenda/templates/agenda/overview.html b/openslides/agenda/templates/agenda/overview.html index f044a185f..eaee7a1f2 100644 --- a/openslides/agenda/templates/agenda/overview.html +++ b/openslides/agenda/templates/agenda/overview.html @@ -34,8 +34,22 @@
{% trans "Tag name" %} | +{% trans "Actions" %} | +
---|---|
{{ tag }} | ++ + + + + + + + + | +