Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
View population with form and elements
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed May 8, 2015
1 parent 63fc542 commit eff841c
Showing 1 changed file with 49 additions and 2 deletions.
51 changes: 49 additions & 2 deletions module/Restore/view/restore/restore/index.phtml
Expand Up @@ -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
Expand All @@ -31,4 +31,51 @@ $this->headTitle($title);
<h3 class="text-muted"><?php echo $title; ?></h3>
<hr />

<?php
$form->prepare();
$form->setAttribute('class','form-horizontal form-group-sm');
echo $this->form()->openTag($form);
?>


<div class="row">

<div class="col-md-4">

<?php
switch($this->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;
}
?>

</div>

<div class="col-md-8">
<!-- filebrowser -->
</div>
</div>

<br />

<div class="row">
<div class="col-md-4">
<?php echo $this->formSubmit($form->get('submit')->setAttribute('class','btn btn-primary')); ?>
</div>
</div>

<?php
echo $this->form()->closeTag($form);
?>

0 comments on commit eff841c

Please sign in to comment.