1fb1f17d15
It is now possible to define a default state and to submit extra stylefiles and javascript files when defining a widget in an app. This is done by a new metaclass in openslides.utils.dispatch. Also fixed some other tests.
21 lines
490 B
Python
21 lines
490 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from openslides.config.api import config
|
|
|
|
from openslides.utils.widgets import Widget
|
|
|
|
|
|
class WelcomeWidget(Widget):
|
|
"""
|
|
Welcome widget with static info for all users.
|
|
"""
|
|
name = 'welcome'
|
|
permission_required = 'projector.can_see_dashboard'
|
|
default_column = 1
|
|
default_weight = 10
|
|
template_name = 'core/widget_welcome.html'
|
|
stylesheets = ['styles/core.css']
|
|
|
|
def get_verbose_name(self):
|
|
return config['welcome_title']
|