Add support for YAML configuration files. Add support for editing setting options and saving them using the new YAML configuration file support. Add new revertsettings management command. Add new permission to edit setting via the UI.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -13,20 +13,20 @@ namespace = Namespace(name='mailer', label=_('Mailing'))
|
||||
setting_link_subject_template = namespace.add_setting(
|
||||
default=_('Link for document: {{ document }}'),
|
||||
help_text=_('Template for the document link email form subject line.'),
|
||||
global_name='MAILER_LINK_SUBJECT_TEMPLATE',
|
||||
global_name='MAILER_LINK_SUBJECT_TEMPLATE', quoted=True
|
||||
)
|
||||
setting_link_body_template = namespace.add_setting(
|
||||
default=DEFAULT_LINK_BODY_TEMPLATE,
|
||||
help_text=_('Template for the document link email form body text. Can include HTML.'),
|
||||
global_name='MAILER_LINK_BODY_TEMPLATE',
|
||||
global_name='MAILER_LINK_BODY_TEMPLATE', quoted=True
|
||||
)
|
||||
setting_document_subject_template = namespace.add_setting(
|
||||
default=_('Document: {{ document }}'),
|
||||
help_text=_('Template for the document email form subject line.'),
|
||||
global_name='MAILER_DOCUMENT_SUBJECT_TEMPLATE',
|
||||
global_name='MAILER_DOCUMENT_SUBJECT_TEMPLATE', quoted=True
|
||||
)
|
||||
setting_document_body_template = namespace.add_setting(
|
||||
default=DEFAULT_DOCUMENT_BODY_TEMPLATE,
|
||||
help_text=_('Template for the document email form body text. Can include HTML.'),
|
||||
global_name='MAILER_DOCUMENT_BODY_TEMPLATE',
|
||||
global_name='MAILER_DOCUMENT_BODY_TEMPLATE', quoted=True
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user