diff --git a/openslides/agenda/forms.py b/openslides/agenda/forms.py index dbf18a15b..b98e1329a 100644 --- a/openslides/agenda/forms.py +++ b/openslides/agenda/forms.py @@ -11,7 +11,7 @@ """ from django.forms import Form, ModelForm, IntegerField, ChoiceField, \ - ModelChoiceField, HiddenInput, Select + ModelChoiceField, HiddenInput, Select, TextInput from django.utils.translation import ugettext as _ from mptt.forms import TreeNodeChoiceField @@ -41,3 +41,7 @@ class ItemOrderForm(Form, CssClassMixin): label="") self = IntegerField(widget=HiddenInput(attrs={'class': 'menu-mlid'})) parent = IntegerField(widget=HiddenInput(attrs={'class': 'menu-plid'})) + + +class ConfigForm(Form, CssClassMixin): + agenda_countdown_time = IntegerField(widget=TextInput(attrs={'class':'small-input'}),label=_("Countdown (in seconds)"),initial=60, min_value=0) diff --git a/openslides/system/templates/system/agenda.html b/openslides/agenda/templates/agenda/config.html similarity index 95% rename from openslides/system/templates/system/agenda.html rename to openslides/agenda/templates/agenda/config.html index 1479d2b15..a02d26e3e 100644 --- a/openslides/system/templates/system/agenda.html +++ b/openslides/agenda/templates/agenda/config.html @@ -7,7 +7,7 @@ {% block content %}