From 6e560d2c0f8a1b7b1fc0607ffcb0cb4694df60f6 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sat, 25 Jun 2016 23:03:21 +0200 Subject: [PATCH] Syncrule: load and render preview and run forms --- application/controllers/SyncruleController.php | 9 +++++++++ application/views/scripts/syncrule/index.phtml | 5 ++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/application/controllers/SyncruleController.php b/application/controllers/SyncruleController.php index 057cd9ab..52201209 100644 --- a/application/controllers/SyncruleController.php +++ b/application/controllers/SyncruleController.php @@ -28,6 +28,15 @@ class SyncruleController extends ActionController } else { $this->view->run = null; } + $this->view->checkForm = $this + ->loadForm('syncCheck') + ->setSyncRule($rule) + ->handleRequest(); + + $this->view->runForm = $this + ->loadForm('syncRun') + ->setSyncRule($rule) + ->handleRequest(); } public function addAction() diff --git a/application/views/scripts/syncrule/index.phtml b/application/views/scripts/syncrule/index.phtml index 9ec34870..9ac398e9 100644 --- a/application/views/scripts/syncrule/index.phtml +++ b/application/views/scripts/syncrule/index.phtml @@ -43,6 +43,8 @@ TODO: check whether... - there have been activities since then */ ?>

+checkForm ?> +runForm ?> run): ?>

translate('Last sync run details') ?>

render('syncrule/syncRunDetails.phtml') ?>
@@ -51,8 +53,5 @@ TODO: check whether... $this->translate("It has been renamed since then, it's former name was %s"), $run->rule_name )) ?> - -
escape( print_r($this->run->getProperties(), 1)); ?>
-