2011-07-31 10:46:29 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
2012-04-14 12:52:56 +02:00
|
|
|
openslides.config.forms
|
2011-07-31 10:46:29 +02:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2012-04-14 12:52:56 +02:00
|
|
|
Forms for the config app.
|
2011-07-31 10:46:29 +02:00
|
|
|
|
|
|
|
:copyright: 2011 by the OpenSlides team, see AUTHORS.
|
|
|
|
:license: GNU GPL, see LICENSE for more details.
|
|
|
|
"""
|
|
|
|
|
2011-10-25 22:03:21 +02:00
|
|
|
from django.forms import Form, CharField, TextInput, BooleanField, IntegerField, ChoiceField, Textarea, Select
|
2011-07-31 10:46:29 +02:00
|
|
|
from django.utils.translation import ugettext as _
|
2012-02-20 18:44:02 +01:00
|
|
|
|
|
|
|
from utils.forms import CssClassMixin
|
2012-04-14 12:52:56 +02:00
|
|
|
from models import config
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2012-02-15 12:04:11 +01:00
|
|
|
|
2012-04-15 12:39:28 +02:00
|
|
|
class GeneralConfigForm(Form, CssClassMixin):
|
2011-07-31 10:46:29 +02:00
|
|
|
event_name = CharField(widget=TextInput(),label=_("Event name"), max_length=30)
|
|
|
|
event_description = CharField(widget=TextInput(),label=_("Short description of event"), max_length=100, required=False)
|
|
|
|
event_date = CharField(widget=TextInput(), required=False, label=_("Event date"))
|
|
|
|
event_location = CharField(widget=TextInput(), required=False, label=_("Event location"))
|
|
|
|
event_organizer = CharField(widget=TextInput(), required=False, label=_("Event organizer"))
|
2012-04-15 12:39:28 +02:00
|
|
|
system_enable_anonymous = BooleanField(required=False, label=_("Allow access for anonymous guest users") )
|