1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12:
13:
14: class Whups_Form_Admin_EditVersionStepTwo extends Horde_Form
15: {
16: public function __construct(&$vars)
17: {
18: global $whups_driver;
19:
20: parent::__construct($vars, _("Edit Version"));
21:
22: $version = $vars->get('version');
23: $info = $whups_driver->getVersion($version);
24:
25: $this->addHidden('', 'queue', 'int', true, true);
26: $this->addHidden('', 'version', 'int', true, true);
27:
28: $vname = &$this->addVariable(_("Version Name"), 'name', 'text', true);
29: $vname->setDefault($info['name']);
30:
31: $vdesc = &$this->addVariable(_("Version Description"), 'description', 'text', true);
32: $vdesc->setDefault($info['description']);
33: $vactive = &$this->addVariable(_("Version Active?"), 'active', 'boolean', false);
34: $vactive->setDefault($info['active']);
35: }
36:
37: }
38: