Configvalue for pagenumber alignment in PDF

This commit is contained in:
FinnStutzenstein 2017-07-26 15:34:05 +02:00
parent 41ab706939
commit 1f59336e3e
5 changed files with 22 additions and 2 deletions

View File

@ -33,6 +33,7 @@ Motions:
on server side [#3304]. on server side [#3304].
- Added config value for customize sorting of category list in - Added config value for customize sorting of category list in
pdf/docx export [#3329]. pdf/docx export [#3329].
- Added config value for pagenumber alignment in PDF [#3327].
Users: Users:
- User without permission to see users can now see agenda item speakers, - User without permission to see users can now see agenda item speakers,

View File

@ -115,6 +115,21 @@ def get_config_variables():
group='General', group='General',
subgroup='CSV') subgroup='CSV')
# General export settings
yield ConfigVariable(
name='general_export_pdf_pagenumber_alignment',
default_value='center',
input_type='choice',
label='Pagenumber alignment in PDF',
choices=(
{'value': 'left', 'display_name': 'Left'},
{'value': 'center', 'display_name': 'Center'},
{'value': 'right', 'display_name': 'Right'}),
weight=146,
group='General',
subgroup='Export')
# Projector # Projector
yield ConfigVariable( yield ConfigVariable(

View File

@ -212,7 +212,7 @@ angular.module('OpenSlidesApp.core.pdf', [])
text: '{{currentPage}} / {{pageCount}}', text: '{{currentPage}} / {{pageCount}}',
color: '#555', color: '#555',
fontSize: 9, fontSize: 9,
alignment: 'right', alignment: Config.get('general_export_pdf_pagenumber_alignment').value,
margin: [0, 15, 0, 0], margin: [0, 15, 0, 0],
}); });
return { return {

View File

@ -1883,6 +1883,10 @@ angular.module('OpenSlidesApp.core.site', [
gettext('Allow access for anonymous guest users'); gettext('Allow access for anonymous guest users');
gettext('Show this text on the login page'); gettext('Show this text on the login page');
gettext('Separator used for all csv exports and examples'); gettext('Separator used for all csv exports and examples');
gettext('Pagenumber alignment in PDF');
gettext('Left');
gettext('Center');
gettext('Right');
gettext('Show logo on projector'); gettext('Show logo on projector');
gettext('You can replace the logo by uploading an image and set it as ' + gettext('You can replace the logo by uploading an image and set it as ' +
'the "Projector logo" in "files".'); 'the "Projector logo" in "files".');

View File

@ -262,6 +262,6 @@ def get_config_variables():
choices=( choices=(
{'value': 'prefix', 'display_name': 'Prefix'}, {'value': 'prefix', 'display_name': 'Prefix'},
{'value': 'name', 'display_name': 'Name'}), {'value': 'name', 'display_name': 'Name'}),
weight=385, weight=380,
group='Motions', group='Motions',
subgroup='Export') subgroup='Export')