Template fixes for motion preamble (#2760).

This commit is contained in:
Emanuel Schütze 2016-12-12 14:21:22 +01:00
parent 7772f60bd4
commit 32b7ddedce
4 changed files with 9 additions and 4 deletions

View File

@ -1159,7 +1159,9 @@ img {
.spacer-left-lg { .spacer-left-lg {
margin-left: 10px; margin-left: 10px;
} }
.no-padding {
padding: 0px;
}
.lead-div { .lead-div {
margin-bottom: 20px; margin-bottom: 20px;
} }

View File

@ -49,7 +49,7 @@ def get_config_variables():
yield ConfigVariable( yield ConfigVariable(
name='motions_preamble', name='motions_preamble',
default_value='The assembly may decide,', default_value='The assembly may decide:',
label='Motion preamble', label='Motion preamble',
weight=320, weight=320,
group='Motions', group='Motions',

View File

@ -252,7 +252,7 @@ angular.module('OpenSlidesApp.motions.pdf', ['OpenSlidesApp.core.pdf'])
var motionPreamble = function () { var motionPreamble = function () {
return { return {
text: Config.translate(Config.get('motions_preamble').value), text: Config.translate(Config.get('motions_preamble').value),
style: 'textItem', margin: [0, 10, 0, 0]
}; };
}; };

View File

@ -481,6 +481,9 @@ angular.module('OpenSlidesApp.motions.site', [
required: true required: true
} }
}, },
{
template: '<p class="spacer-top-lg no-padding">' + Config.translate(Config.get('motions_preamble').value) + '</p>'
},
{ {
key: 'text', key: 'text',
type: 'editor', type: 'editor',
@ -1942,7 +1945,7 @@ angular.module('OpenSlidesApp.motions.site', [
gettext('Serially numbered'); gettext('Serially numbered');
gettext('Set it manually'); gettext('Set it manually');
gettext('Motion preamble'); gettext('Motion preamble');
gettext('The assembly may decide,'); gettext('The assembly may decide:');
gettext('Default line numbering'); gettext('Default line numbering');
/// Line numbering: Outside /// Line numbering: Outside
gettext('Outside'); gettext('Outside');