1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12:
13:
14: class Whups_Form_Admin_AddQueue extends Horde_Form
15: {
16: public function __construct(&$vars)
17: {
18: parent::__construct($vars, _("Add Queue"));
19: $this->appendButtons(_("Add Queue"));
20:
21: $this->addVariable(_("Queue Name"), 'name', 'text', true);
22: $this->addVariable(_("Queue Description"), 'description', 'text', true);
23: $this->addVariable(
24: _("Queue Slug"), 'slug', 'text', false, false,
25: sprintf(_("Slugs allows direct access to this queue's open tickets by visiting: %s. <br /> Slug names may contain only letters, numbers or the _ (underscore) character."),
26: Horde::url('queue/slugname', true)),
27: array('/^[a-zA-Z1-9_]*$/'));
28: $this->addVariable(
29: _("Queue Email"), 'email', 'email', false, false,
30: _("This email address will be used when sending notifications for any queue tickets."));
31: }
32:
33: }