Move welcome config values to general section.
Use textarea for welcome text.
This commit is contained in:
parent
b035ee7d7c
commit
11470d3b57
@ -65,12 +65,35 @@ def setup_general_config(sender, **kwargs):
|
||||
|
||||
yield ConfigVariable(
|
||||
name='general_event_legal_notice',
|
||||
default_value=_('<a href="http://www.openslides.org">OpenSlides</a> is a free web based presentation and assembly system for visualizing and controlling agenda, motions and elections of an assembly.'),
|
||||
default_value=_(
|
||||
'<a href="http://www.openslides.org">OpenSlides</a> is a free web based '
|
||||
'presentation and assembly system for visualizing and controlling agenda, '
|
||||
'motions and elections of an assembly.'),
|
||||
input_type='text',
|
||||
label=ugettext_lazy('Legal notice'),
|
||||
weight=132,
|
||||
group=ugettext_lazy('General'),
|
||||
subgroup=ugettext_lazy('Event'))
|
||||
subgroup=ugettext_lazy('Event'),
|
||||
translatable=True)
|
||||
|
||||
yield ConfigVariable(
|
||||
name='general_event_welcome_title',
|
||||
default_value=_('Welcome to OpenSlides'),
|
||||
label=ugettext_lazy('Front page title'),
|
||||
weight=134,
|
||||
group=ugettext_lazy('General'),
|
||||
subgroup=ugettext_lazy('Event'),
|
||||
translatable=True)
|
||||
|
||||
yield ConfigVariable(
|
||||
name='general_event_welcome_text',
|
||||
default_value=_('[Space for your welcome text.]'),
|
||||
input_type='text',
|
||||
label=ugettext_lazy('Front page text'),
|
||||
weight=136,
|
||||
group=ugettext_lazy('General'),
|
||||
subgroup=ugettext_lazy('Event'),
|
||||
translatable=True)
|
||||
|
||||
# General System
|
||||
|
||||
@ -79,7 +102,7 @@ def setup_general_config(sender, **kwargs):
|
||||
default_value=False,
|
||||
input_type='boolean',
|
||||
label=ugettext_lazy('Allow access for anonymous guest users'),
|
||||
weight=135,
|
||||
weight=138,
|
||||
group=ugettext_lazy('General'),
|
||||
subgroup=ugettext_lazy('System'))
|
||||
|
||||
@ -136,23 +159,6 @@ def setup_general_config(sender, **kwargs):
|
||||
weight=170,
|
||||
group=ugettext_lazy('Projector'))
|
||||
|
||||
yield ConfigVariable(
|
||||
name='projector_welcome_title',
|
||||
default_value=_('Welcome to OpenSlides'),
|
||||
label=ugettext_lazy('Title'),
|
||||
help_text=ugettext_lazy('Also used for the default welcome slide.'),
|
||||
weight=175,
|
||||
group=ugettext_lazy('Projector'),
|
||||
translatable=True)
|
||||
|
||||
yield ConfigVariable(
|
||||
name='projector_welcome_text',
|
||||
default_value=_('[Space for your welcome text.]'),
|
||||
label=ugettext_lazy('Welcome text'),
|
||||
weight=180,
|
||||
group=ugettext_lazy('Projector'),
|
||||
translatable=True)
|
||||
|
||||
yield ConfigVariable(
|
||||
name='projector_default_countdown',
|
||||
default_value=60,
|
||||
|
@ -1,9 +1,7 @@
|
||||
<div class="header">
|
||||
<div class="title">
|
||||
<h1>{{ config('projector_welcome_title') }}</h1>
|
||||
<h1>{{ config('general_event_welcome_title') }}</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="details">
|
||||
{{ config('projector_welcome_text') }}
|
||||
</div>
|
||||
<div class="details" ng-bind-html="config('general_event_welcome_text')"></div>
|
||||
|
Loading…
Reference in New Issue
Block a user