Syncrule: load and render preview and run forms

This commit is contained in:
Thomas Gelf 2016-06-25 23:03:21 +02:00
parent afaaf5760d
commit 6e560d2c0f
2 changed files with 11 additions and 3 deletions

View File

@ -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()

View File

@ -43,6 +43,8 @@ TODO: check whether...
- there have been activities since then
*/ ?></p>
<?php endif ?>
<?= $this->checkForm ?>
<?= $this->runForm ?>
<?php if ($this->run): ?>
<h3><?= $this->translate('Last sync run details') ?></h3>
<?= $this->render('syncrule/syncRunDetails.phtml') ?><br />
@ -51,8 +53,5 @@ TODO: check whether...
$this->translate("It has been renamed since then, it's former name was %s"),
$run->rule_name
)) ?>
<pre><?= $this->escape( print_r($this->run->getProperties(), 1)); ?></pre>
<?php endif ?>
<?php endif ?>