OpenSlides/openslides/motion/widgets.py
Emanuel Schuetze d8d2ad002a Rename and clean up static direcories.
- rename static subdirs to css and js
- move global static dir to core/static, changed
- move global templates dir to core/templates
- check comments and code style of all our own CSS and JS files
- minor changes related to the changes of template and static files
2014-01-14 23:27:12 +01:00

27 lines
676 B
Python

# -*- coding: utf-8 -*-
from django.utils.translation import ugettext_lazy
from openslides.utils.widgets import Widget
from .models import Motion
class MotionWidget(Widget):
"""
Motion widget.
"""
name = 'motion'
verbose_name = ugettext_lazy('Motions')
permission_required = 'projector.can_manage_projector'
default_column = 1
default_weight = 40
icon_css_class = 'icon-file'
template_name = 'motion/widget_motion.html'
more_link_pattern_name = 'motion_list'
def get_context_data(self, **context):
return super(MotionWidget, self).get_context_data(
motions=Motion.objects.all(),
**context)