context; /** @var \app\models\settings\Layout $layout */ $layout = $controller->layoutParams; $layout->robotsNoindex = true; $layout->addBreadcrumb($newMotion->getBreadcrumbTitle(), UrlHelper::createMotionUrl($newMotion)); $layout->addBreadcrumb(Yii::t('amend', 'merge_confirm_title')); $layout->loadDatepicker(); $title = str_replace('%TITLE%', $newMotion->getMyMotionType()->getTitleSingularForDisplay(), Yii::t('amend', 'merge_title')); $this->title = $title . ': ' . $newMotion->getTitleWithPrefix(); ?>

'motionConfirmForm', 'class' => 'motionMergeConfirmForm', ]); $odtText = ' ' . Yii::t('amend', 'merge_confirm_odt'); $odtLink = UrlHelper::createMotionUrl($newMotion, 'view-changes-odt'); ?>
'btn btn-default']) ?>
canCreateResolution()) { echo $this->render('_confirm_resolution_voting', ['motion' => $newMotion, 'oldMotion' => $oldMotion]); } // All languages: confirming the outcome of a merge that touched every language section. foreach ($newMotion->getSortedSections(true, false, SectionLanguageMode::AllLanguages) as $section) { if ($section->getSectionType()->isEmpty()) { continue; } echo '
'; echo '
'; echo '

' . Html::encode($section->getSettings()->title) . '

'; echo $section->getSectionType()->getSimple(false); echo '
'; foreach ($changes as $change) { echo '
'; if ($change->getSectionId() === $section->sectionId) { echo $this->render('@app/views/motion/_view_change_section', ['change' => $change]); } echo '
'; } echo '
'; } if (count($newMotion->replacedMotion->getVisibleAmendments()) > 0) { ?>

replacedMotion->getVisibleAmendments() as $amendment) { //$changeset = (isset($changesets[$amendment->id]) ? $changesets[$amendment->id] : []); $changeset = []; $data = 'data-old-status="' . $amendment->status . '"'; $data .= ' data-amendment-id="' . $amendment->id . '"'; $data .= ' data-changesets="' . Html::encode(json_encode($changeset)) . '"'; $voting = $mergingDraft->amendmentVotingData[$amendment->id]; ?>
>
getShortTitle()) ?>
getInitiatorsStr()) ?>

getMyConsultation()->getStatuses()->getStatusNames(); $statuses = [ Amendment::STATUS_PROCESSED => $statusesAll[Amendment::STATUS_PROCESSED], Amendment::STATUS_ACCEPTED => $statusesAll[Amendment::STATUS_ACCEPTED], Amendment::STATUS_REJECTED => $statusesAll[Amendment::STATUS_REJECTED], Amendment::STATUS_MODIFIED_ACCEPTED => $statusesAll[Amendment::STATUS_MODIFIED_ACCEPTED], ]; $statuses[$amendment->status] = $statusesAll[$amendment->status]; $statusPre = $mergingDraft->amendmentStatuses[$amendment->id] ?? Amendment::STATUS_PROCESSED; $opts = ['id' => 'amendmentStatus' . $amendment->id, 'class' => 'stdDropdown']; echo Html::dropDownList('amendStatus[' . $amendment->id . ']', $statusPre, $statuses, $opts); ?>