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 {
margin-left: 10px;
}
.no-padding {
padding: 0px;
}
.lead-div {
margin-bottom: 20px;
}

View File

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

View File

@ -252,7 +252,7 @@ angular.module('OpenSlidesApp.motions.pdf', ['OpenSlidesApp.core.pdf'])
var motionPreamble = function () {
return {
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
}
},
{
template: '<p class="spacer-top-lg no-padding">' + Config.translate(Config.get('motions_preamble').value) + '</p>'
},
{
key: 'text',
type: 'editor',
@ -1942,7 +1945,7 @@ angular.module('OpenSlidesApp.motions.site', [
gettext('Serially numbered');
gettext('Set it manually');
gettext('Motion preamble');
gettext('The assembly may decide,');
gettext('The assembly may decide:');
gettext('Default line numbering');
/// Line numbering: Outside
gettext('Outside');