| | 15 | # preferences |
| | 16 | |
| | 17 | from django import newforms as forms |
| | 18 | from django.utils.translation import ugettext as _ |
| | 19 | |
| | 20 | from PyLucid.db.page import PageChoiceField, get_page_choices |
| | 21 | |
| | 22 | |
| | 23 | class PreferencesForm(forms.Form): |
| | 24 | index_page = PageChoiceField( |
| | 25 | widget=forms.Select(choices=get_page_choices()), |
| | 26 | help_text=_("The page ID of the index page"), |
| | 27 | initial=0 |
| | 28 | ) |
| | 29 | auto_shortcuts = forms.BooleanField( |
| | 30 | help_text=_("Should the shortcut of a page rebuild on every edit?"), |
| | 31 | initial=True |
| | 32 | ) |
| | 33 | |
| | 34 | #_____________________________________________________________________________ |