Convert all apps to use the new class based settings
This commit is contained in:
@@ -1,14 +1,30 @@
|
||||
"""Configuration options for the web_theme app"""
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from smart_settings.api import register_settings
|
||||
from smart_settings.api import Setting, SettingNamespace
|
||||
|
||||
register_settings(
|
||||
namespace=u'web_theme',
|
||||
module=u'web_theme.conf.settings',
|
||||
settings=[
|
||||
{'name': u'THEME', 'global_name': u'WEB_THEME_THEME', 'default': u'activo', 'description': _(u'CSS theme to apply, options are: amro, bec, bec-green, blue, default, djime-cerulean, drastic-dark, kathleene, olive, orange, red, reidb-greenish and warehouse.')},
|
||||
{'name': u'ENABLE_SCROLL_JS', 'global_name': u'WEB_THEME_ENABLE_SCROLL_JS', 'default': True, 'hidden': True},
|
||||
{'name': u'VERBOSE_LOGIN', 'global_name': u'WEB_THEME_VERBOSE_LOGIN', 'default': True, 'description': _(u'Display extra information in the login screen.')},
|
||||
]
|
||||
namespace = SettingNamespace('web_theme', _(u'Interface'), module='web_theme.conf.settings')
|
||||
|
||||
Setting(
|
||||
namespace=namespace,
|
||||
name='THEME',
|
||||
global_name='WEB_THEME_THEME',
|
||||
default=u'activo',
|
||||
description=_(u'CSS theme to apply, options are: amro, bec, bec-green, blue, default, djime-cerulean, drastic-dark, kathleene, olive, orange, red, reidb-greenish and warehouse.')
|
||||
)
|
||||
|
||||
Setting(
|
||||
namespace=namespace,
|
||||
name='ENABLE_SCROLL_JS',
|
||||
global_name='WEB_THEME_ENABLE_SCROLL_JS',
|
||||
default=True,
|
||||
hidden=True
|
||||
)
|
||||
|
||||
Setting(
|
||||
namespace=namespace,
|
||||
name='VERBOSE_LOGIN',
|
||||
global_name='WEB_THEME_VERBOSE_LOGIN',
|
||||
default=True,
|
||||
description=_(u'Display extra information in the login screen.')
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user