12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- from misago.settings.fixtures import load_settings_fixture, update_settings_fixture
- from misago.utils import ugettext_lazy as _
- from misago.utils import get_msgid
- settings_fixtures = (
- # Avatars Settings
- ('tos', {
- 'name': _("Forum Terms of Service"),
- 'description': _("Those settings allow you to set up forum terms of service."),
- 'settings': (
- ('tos_title', {
- 'value': "Terms of Service",
- 'type': "string",
- 'input': "text",
- 'separator': _("Terms of Service Settings"),
- 'name': _("Page Title"),
- 'description': _("Title of page community ToS are displayed on."),
- }),
- ('tos_url', {
- 'value': "",
- 'type': "string",
- 'input': "text",
- 'name': _("Link to remote page with ToS"),
- 'description': _("If your forum's ToS are located on remote page, enter here its address."),
- }),
- ('tos_content', {
- 'value': "",
- 'type': "string",
- 'input': "textarea",
- 'name': _("OR enter ToS content"),
- 'description': _("Instead of linking to remote page, forum can create dedicated ToS page for you. To display ToS page, enter here your forum Terms of Service."),
- }),
- ),
- }),
- )
- def load_fixtures():
- load_settings_fixture(settings_fixtures)
-
-
- def update_fixtures():
- update_settings_fixture(settings_fixtures)
|