Basic styling for 'Add to dashboard'

This commit is contained in:
Thomas Gelf 2014-03-10 01:40:23 +01:00
parent 9d8bd28148
commit 08c66afec2
2 changed files with 10 additions and 4 deletions

View File

@ -88,6 +88,10 @@ class DashboardController extends ActionController
*/
public function addurlAction()
{
$this->getTabs()->add('addurl', array(
'title' => 'Add Dashboard URL',
'url' => Url::fromRequest()
))->activate('addurl');
$form = new AddUrlForm();
$form->setRequest($this->_request);
$this->view->form = $form;

View File

@ -1,5 +1,7 @@
<h1>Hosts Status</h1>
<div class="controls">
<?= $this->tabs ?>
</div>
<div style="max-width:600px" >
<?= $this->form->render($this); ?>
</div>
<div class="content" >
<?= $this->form ?>
</div>