1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12:
13:
14: class Whups_Form_Admin_EditPriorityStepTwo extends Horde_Form
15: {
16: public function __construct(&$vars)
17: {
18: global $whups_driver;
19:
20: parent::__construct($vars, _("Edit Priority"));
21:
22: $priority = $vars->get('priority');
23: $info = $whups_driver->getPriority($priority);
24:
25: $this->addHidden('', 'type', 'int', true, true);
26: $this->addHidden('', 'priority', 'int', true, true);
27:
28: $pname = &$this->addVariable(_("Priority Name"), 'name', 'text', true);
29: $pname->setDefault($info['name']);
30:
31: $pdesc = &$this->addVariable(_("Priority Description"), 'description', 'text', true);
32: $pdesc->setDefault($info['description']);
33: }
34:
35: }