System settings
hypha.core.models.system_settings
¶
SystemSettings
¶
Bases: BaseGenericSetting
home_title
class-attribute
instance-attribute
¶
home_title = models.CharField(_('Title'), max_length=255, default='', help_text=_('The title to be displayed on the homepage.'))
home_strapline
class-attribute
instance-attribute
¶
home_strapline = RichTextField(_('Strapline'), default='', help_text=_('The strapline to be displayed on the homepage.'))
home_no_applications_msg
class-attribute
instance-attribute
¶
home_no_applications_msg = RichTextField(_('No open applications message'), help_text=_('The message to be displayed when there are no open applications.'), default='<h4>There are currently no open applications, check back later!</h4>')
site_logo_default
class-attribute
instance-attribute
¶
site_logo_default = models.ForeignKey('images.CustomImage', null=True, blank=True, on_delete=models.SET_NULL, related_name='+', help_text=_('Default site logo'))
site_logo_mobile
class-attribute
instance-attribute
¶
site_logo_mobile = models.ForeignKey('images.CustomImage', null=True, blank=True, on_delete=models.SET_NULL, related_name='+', help_text=_('Mobile site logo (if not set default will be used)'))
site_logo_link
class-attribute
instance-attribute
¶
site_logo_link = models.URLField(default='', blank=True, help_text=_('Link for the site logo, e.g. "{example_url}". If not set, defaults to page with slug set to "home".').format(example_url='https://www.example.org/'))
nav_content
class-attribute
instance-attribute
¶
nav_content = models.TextField(_('Front page navigation content'), help_text=_('This will overwrite the default front page navigation bar, html tags is allowed.'), blank=True)
footer_content
class-attribute
instance-attribute
¶
footer_content = models.TextField(_('Footer content'), default='<p>Configure this text in Wagtail admin -> Settings -> System settings.</p>\n<br>\n<a href="#" onclick="openConsentPrompt()">Cookie Settings</a>', help_text=_('This will be added to the footer, html tags is allowed.'), blank=True)
title_404
class-attribute
instance-attribute
¶
body_404
class-attribute
instance-attribute
¶
body_404 = RichTextField(_('Text'), default='<p>You may be trying to find a page that doesn’t exist or has been moved.</p>')
title_403
class-attribute
instance-attribute
¶
body_403
class-attribute
instance-attribute
¶
body_403 = RichTextField(_('Text'), default='<p>You might not have access to the requested resource.</p>')
panels
class-attribute
instance-attribute
¶
panels = [MultiFieldPanel([FieldPanel('home_title'), FieldPanel('home_strapline'), FieldPanel('home_no_applications_msg')], _('Homepage')), MultiFieldPanel([FieldPanel('site_logo_default'), FieldPanel('site_logo_mobile'), FieldPanel('site_logo_link')], _('Site logo')), FieldPanel('nav_content'), FieldPanel('footer_content'), MultiFieldPanel([FieldPanel('title_404'), FieldPanel('body_404')], _('404 page')), MultiFieldPanel([FieldPanel('title_403'), FieldPanel('body_403')], _('403 page'))]