From eff841c2b987fbd5a61f7aa1417e20256dd2c0b0 Mon Sep 17 00:00:00 2001 From: Frank Bergkemper Date: Fri, 8 May 2015 14:25:26 +0200 Subject: [PATCH] View population with form and elements --- .../Restore/view/restore/restore/index.phtml | 51 ++++++++++++++++++- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git a/module/Restore/view/restore/restore/index.phtml b/module/Restore/view/restore/restore/index.phtml index 7f07e8b2..5eb1bd79 100644 --- a/module/Restore/view/restore/restore/index.phtml +++ b/module/Restore/view/restore/restore/index.phtml @@ -3,9 +3,9 @@ /** * * bareos-webui - Bareos Web-Frontend - * + * * @link https://github.com/bareos/bareos-webui for the canonical source repository - * @copyright Copyright (c) 2013-2014 Bareos GmbH & Co. KG (http://www.bareos.org/) + * @copyright Copyright (c) 2013-2015 Bareos GmbH & Co. KG (http://www.bareos.org/) * @license GNU Affero General Public License (http://www.gnu.org/licenses/) * * This program is free software: you can redistribute it and/or modify @@ -31,4 +31,51 @@ $this->headTitle($title);


+prepare(); + $form->setAttribute('class','form-horizontal form-group-sm'); + echo $this->form()->openTag($form); +?> + + +
+ +
+ + restore_params['type']) { + case 1: + echo $this->formRow($form->get('client')->setAttribute('class','form-control')); + echo $this->formRow($form->get('restoreclient')->setAttribute('class','form-control')); + echo $this->formRow($form->get('fileset')->setAttribute('class','form-control')); + break; + case 2: + break; + default: + echo $this->formRow($form->get('job')->setAttribute('class', 'form-control')); + echo $this->formRow($form->get('client')->setAttribute('class','form-control')); + echo $this->formRow($form->get('restoreclient')->setAttribute('class','form-control')); + echo $this->formRow($form->get('fileset')->setAttribute('class','form-control')); + break; + } + ?> + +
+ +
+ +
+
+ +
+ +
+
+ formSubmit($form->get('submit')->setAttribute('class','btn btn-primary')); ?> +
+
+ +form()->closeTag($form); +?>