Enable/disable category in motion PDF.
This commit is contained in:
parent
96637e18c4
commit
6c2fbf7389
@ -135,7 +135,7 @@ angular.module('OpenSlidesApp.motions.pdf', ['OpenSlidesApp.core.pdf'])
|
|||||||
}
|
}
|
||||||
|
|
||||||
// category
|
// category
|
||||||
if (motion.category) {
|
if (params.include.category && motion.category) {
|
||||||
metaTableBody.push([
|
metaTableBody.push([
|
||||||
{
|
{
|
||||||
text: gettextCatalog.getString('Category') + ':',
|
text: gettextCatalog.getString('Category') + ':',
|
||||||
@ -321,6 +321,7 @@ angular.module('OpenSlidesApp.motions.pdf', ['OpenSlidesApp.core.pdf'])
|
|||||||
margin: [0, 0, 0, 20],
|
margin: [0, 0, 0, 20],
|
||||||
layout: '{{motion-placeholder-to-insert-functions-here}}'
|
layout: '{{motion-placeholder-to-insert-functions-here}}'
|
||||||
};
|
};
|
||||||
|
params.include.metatable = true;
|
||||||
return metaTable;
|
return metaTable;
|
||||||
} else {
|
} else {
|
||||||
return {};
|
return {};
|
||||||
@ -329,11 +330,13 @@ angular.module('OpenSlidesApp.motions.pdf', ['OpenSlidesApp.core.pdf'])
|
|||||||
|
|
||||||
// motion title
|
// motion title
|
||||||
var motionTitle = function() {
|
var motionTitle = function() {
|
||||||
if (params.include.text && !motion.isParagraphBasedAmendment()) {
|
if (params.include.metatable && params.include.text && !motion.isParagraphBasedAmendment()) {
|
||||||
return [{
|
return [{
|
||||||
text: titlePlain,
|
text: titlePlain,
|
||||||
style: 'heading3'
|
style: 'heading3'
|
||||||
}];
|
}];
|
||||||
|
} else {
|
||||||
|
return {};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -852,10 +852,17 @@ angular.module('OpenSlidesApp.motions.site', [
|
|||||||
disabled = {};
|
disabled = {};
|
||||||
}
|
}
|
||||||
var options = [
|
var options = [
|
||||||
{name: gettextCatalog.getString('State'), id: 'state', disabled: disabled.state},
|
|
||||||
{name: gettextCatalog.getString('Submitters'), id: 'submitters', disabled: disabled.submitters},
|
{name: gettextCatalog.getString('Submitters'), id: 'submitters', disabled: disabled.submitters},
|
||||||
|
{name: gettextCatalog.getString('State'), id: 'state', disabled: disabled.state},
|
||||||
{name: gettextCatalog.getString('Voting result'), id: 'votingresult', disabled: disabled.votingResult}
|
{name: gettextCatalog.getString('Voting result'), id: 'votingresult', disabled: disabled.votingResult}
|
||||||
];
|
];
|
||||||
|
if (_.some(motions, function (motion) { return motion.category; })) {
|
||||||
|
options.push({
|
||||||
|
name: gettextCatalog.getString('Category'),
|
||||||
|
id: 'category',
|
||||||
|
disabled: disabled.category,
|
||||||
|
});
|
||||||
|
}
|
||||||
if (_.some(motions, function (motion) { return motion.motionBlock; })) {
|
if (_.some(motions, function (motion) { return motion.motionBlock; })) {
|
||||||
options.push({
|
options.push({
|
||||||
name: gettextCatalog.getString('Motion block'),
|
name: gettextCatalog.getString('Motion block'),
|
||||||
|
Loading…
Reference in New Issue
Block a user