1 from base import Setting, SettingSet
2 from django.forms.widgets import Textarea
4 SIDEBAR_SET = SettingSet('sidebar', 'Sidebar content', "Enter contents to display in the sidebar. You can use markdown and some basic html tags.", 10, True)
6 SIDEBAR_UPPER_SHOW = Setting('SIDEBAR_UPPER_SHOW', False, SIDEBAR_SET, dict(
7 label = "Show Upper Block",
8 help_text = "Check if your pages should display the upper sidebar block.",
12 SIDEBAR_UPPER_TEXT = Setting('SIDEBAR_UPPER_TEXT',
14 ## [Try WebFaction](http://www.webfaction.com?affiliate=osqa)
16 We recommend [**WebFaction**](http://www.webfaction.com?affiliate=osqa)
17 for hosting OSQA. Their affordable, reliable servers have everything you need!
18 """, SIDEBAR_SET, dict(
19 label = "Upper Block Content",
20 help_text = " The upper sidebar block. ",
21 widget=Textarea(attrs={'rows': '10'})))
24 SIDEBAR_LOWER_SHOW = Setting('SIDEBAR_LOWER_SHOW', False, SIDEBAR_SET, dict(
25 label = "Show Lower Block",
26 help_text = "Check if your pages should display the lower sidebar block.",
29 SIDEBAR_LOWER_TEXT = Setting('SIDEBAR_LOWER_TEXT',
31 ## Learn more about OSQA
33 The [**OSQA website**](http://www.osqa.net/) and [**OSQA wiki**](http://wiki.osqa.net/)
34 are also great resources to help you learn more about the OSQA open source Q&A system!
35 """, SIDEBAR_SET, dict(
36 label = "Lower Block Content",
37 help_text = " The lower sidebar block. ",
38 widget=Textarea(attrs={'rows': '10'})))