context; /** @var \app\models\settings\Layout $layout */ $layout = $controller->layoutParams; $motion = $form->motion; $consultation = $motion->getMyConsultation(); $layout->robotsNoindex = true; $layout->addBreadcrumb($motion->getBreadcrumbTitle(), UrlHelper::createMotionUrl($motion)); $layout->addBreadcrumb(Yii::t('amend', 'merge_bread')); $layout->loadCKEditor(); if ($twoCols) { $layout->fullWidth = true; //$layout->fullScreen = true; } $title = str_replace('%TITLE%', $motion->getMyMotionType()->getTitleSingularForDisplay(), Yii::t('amend', 'merge_title')); $this->title = $title . ': ' . $motion->getTitleWithPrefix(); $amendments = Init::getMotionAmendmentsForMerging($form->motion); $pp = $form->motion->getLatestProposal()->getAlternativeProposaltextReference(); if ($pp && $pp['motion']->id === $form->motion->id) { $amendments[] = $pp['modification']; } $amendmentStaticData = array_map(function (Amendment $amendment) { return Init::getJsAmendmentStaticData($amendment); }, $amendments); /** @var MotionSection[] $newSections */ $newSections = []; // All languages: merging amendments into the motion must handle every language section. foreach ($motion->getSortedSections(false, false, SectionLanguageMode::AllLanguages) as $section) { $newSections[$section->sectionId] = $section; } echo '

' . $motion->getEncodedTitleWithPrefix() . '

'; echo '
'; include(__DIR__ . '/../motion/_view_motiondata.php'); if (count($amendments) > 0) { $explanation = Yii::t('amend', 'merge_explanation'); $explanation = str_replace('###COLLIDINGHINT###', '', $explanation); $explanation = str_replace('###NEWPREFIX###', $motion->titlePrefix, $explanation); $explanation = str_replace('###NEWVERSION###', MotionNumbering::getNewVersion($motion->version), $explanation); echo '
' . $explanation . '
'; } echo $controller->showErrors(); echo '
'; $statuses = [ Amendment::STATUS_PROCESSED => Yii::t('structure', 'STATUS_PROCESSED'), Amendment::STATUS_ACCEPTED => Yii::t('structure', 'STATUS_ACCEPTED'), Amendment::STATUS_REJECTED => Yii::t('structure', 'STATUS_REJECTED'), Amendment::STATUS_MODIFIED_ACCEPTED => Yii::t('structure', 'STATUS_MODIFIED_ACCEPTED'), ]; $layout->addJsTranslation('base'); $layout->addJsTranslation('amend'); ?> 'motionMergeForm motionMergeStyles', 'enctype' => 'multipart/form-data', 'data-draft-saving-url' => UrlHelper::createMotionUrl($motion, 'save-merging-draft'), 'data-check-status-url' => UrlHelper::createMotionUrl($motion, 'merge-amendments-status-ajax', ['knownAmendments' => 'AMENDMENTS']), 'data-amendment-static-data' => json_encode($amendmentStaticData), ]); $publicDraftLink = UrlHelper::createMotionUrl($motion, 'merge-amendments-public'); $pdfLink = UrlHelper::createMotionUrl($motion, 'merge-amendments-draft-pdf'); $resumedDate = ($form->draftData->time ? $form->draftData->time->format('c') : ''); ?>

PDF
:

getSortedSections(false, false, SectionLanguageMode::AllLanguages) as $section) { $type = $section->getSettings(); if ($type->type === \app\models\sectionTypes\ISectionType::TYPE_TITLE) { echo $this->render('_merging_section_title', ['form' => $form, 'section' => $section, 'twoCols' => $twoCols]); } elseif ($type->type === \app\models\sectionTypes\ISectionType::TYPE_TEXT_SIMPLE) { echo $this->render('_merging_section', ['form' => $form, 'section' => $section, 'twoCols' => $twoCols]); } else { echo $this->render('_merging_section_other', ['form' => $form, 'section' => $section, 'twoCols' => $twoCols]); } } ?>
getVisibleAmendments(false) as $amendment) { if ($amendment->changeEditorial !== '') { $str = '

'; $str .= str_replace( ['%TITLE%', '%INITIATOR%'], [Html::encode($amendment->getFormattedTitlePrefix()), Html::encode($amendment->getInitiatorsStr())], Yii::t('amend', 'merge_amend_by') ); $str .= '

'; $str .= '
'; $str .= $amendment->changeEditorial; $str .= '
'; $editorials[] = $str; } } if (count($editorials) > 0) { ?>


draftData->protocol; ?>
draftData), ['id' => 'mergeDraft']); ?>