1<?php
2/**
3 *
4 * Copyright 2001-2002 Robert E. Coyle <robertecoyle@hotmail.com>
5 * Copyright 2001-2017 Horde LLC (http://www.horde.org/)
6 *
7 * See the enclosed file LICENSE for license information (BSD). If you
8 * did not receive this file, see http://www.horde.org/licenses/bsdl.php.
9 */
10
11class Whups_Form_SetTypeStepTwo extends Horde_Form
12{
13    public function __construct(&$vars, $title = '')
14    {
15        global $whups_driver;
16
17        parent::__construct($vars, $title);
18
19        $this->addHidden('', 'id', 'int', true, false);
20        $this->addHidden('', 'group', 'int', false, false);
21        $this->addHidden('', 'type', 'int', true, false);
22        $this->addHidden('', 'newcomment', 'longtext', false, false);
23
24        /* Give user an opportunity to check that state and priority
25         * are still valid. */
26        $type = $vars->get('type');
27        $this->addVariable(_("State"), 'state', 'enum', true, false, null, array($whups_driver->getStates($type)));
28        $this->addVariable(_("Priority"), 'priority', 'enum', true, false, null, array($whups_driver->getPriorities($type)));
29    }
30
31}