From 5f35fe8460ca0cabe284fa43866645419b2defb2 Mon Sep 17 00:00:00 2001 From: Maximilian Krambach Date: Fri, 12 Apr 2019 12:28:18 +0200 Subject: [PATCH] call list improvements (WIP) - add extended recommendation label - remove motion blocks, use the column for 'notes' - don't break up tables --- client/src/app/site/motions/services/motion-pdf.service.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/app/site/motions/services/motion-pdf.service.ts b/client/src/app/site/motions/services/motion-pdf.service.ts index 20e3cdd88..ceda73586 100644 --- a/client/src/app/site/motions/services/motion-pdf.service.ts +++ b/client/src/app/site/motions/services/motion-pdf.service.ts @@ -607,7 +607,7 @@ export class MotionPdfService { style: 'tableHeader' }, { - text: this.translate.instant('Motion block'), + text: this.translate.instant('Notes'), style: 'tableHeader' } ] @@ -643,6 +643,7 @@ export class MotionPdfService { table: { widths: ['auto', 'auto', 'auto', '*', 'auto', 'auto'], headerRows: 1, + dontBreakRows: true, body: callListTableBody.concat(callListRows) }, layout: { @@ -675,9 +676,9 @@ export class MotionPdfService { { text: motion.submitters.length ? motion.submitters.map(s => s.short_name).join(', ') : '' }, { text: motion.title }, { - text: motion.recommendation ? this.translate.instant(motion.recommendation.recommendation_label) : '' + text: motion.recommendation ? this.motionRepo.getExtendedRecommendationLabel(motion) : '' }, - { text: motion.motion_block ? motion.motion_block.title : '' } + { text: '' } ]; }