1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12:
13: class Whups_Form_Admin_DeletePriority extends Horde_Form
14: {
15: public function __construct(&$vars)
16: {
17: global $whups_driver;
18:
19: parent::__construct($vars, _("Delete Priority Confirmation"));
20:
21: $priority = $vars->get('priority');
22: $info = $whups_driver->getPriority($priority);
23:
24: $this->addHidden('', 'type', 'int', true, true);
25: $this->addHidden('', 'priority', 'int', true, true);
26:
27: $pname = &$this->addVariable(_("Priority Name"), 'name', 'text', false, true);
28: $pname->setDefault($info['name']);
29:
30: $pdesc = &$this->addVariable(_("Priority Description"), 'description', 'text', false, true);
31: $pdesc->setDefault($info['description']);
32:
33: $yesno = array(array(0 => _("No"), 1 => _("Yes")));
34: $this->addVariable(_("Really delete this priority? This may cause data problems!"), 'yesno', 'enum', true, false, null, $yesno);
35: }
36:
37: }
38: