From: Ben Klang Date: Sat, 2 Jan 2010 19:08:23 +0000 (-0500) Subject: Shout: Begin to rough in the destinations X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=44f08dce43c303e08a40516368c9d25c5e918be3;p=horde.git Shout: Begin to rough in the destinations --- diff --git a/shout/lib/Forms/ExtensionForm.php b/shout/lib/Forms/ExtensionForm.php index 05aacb48e..83efbe203 100644 --- a/shout/lib/Forms/ExtensionForm.php +++ b/shout/lib/Forms/ExtensionForm.php @@ -14,14 +14,15 @@ class ExtensionDetailsForm extends Horde_Form { /** * ExtensionDetailsForm constructor. - * + * * @global $shout_extensions * @param $vars - * @return + * @return */ function __construct(&$vars) { global $shout_extensions; + $context = $_SESSION['shout']['context']; $action = $vars->get('action'); if ($action == 'edit') { @@ -30,10 +31,10 @@ class ExtensionDetailsForm extends Horde_Form { $formtitle = "Add User"; } + parent::__construct($vars, _("$formtitle - Context: $context")); + $extension = $vars->get('extension'); - parent::__construct($vars, _("$formtitle - Context: $context")); - $this->addHidden('', 'action', 'text', true); $this->addHidden('', 'oldextension', 'text', false); $this->addVariable(_("Full Name"), 'name', 'text', true); @@ -96,4 +97,4 @@ class ExtensionDeleteForm extends Horde_Form $extension = $this->_vars->get('extension'); $shout_extensions->deleteExtension($context, $extension); } -} \ No newline at end of file +} diff --git a/shout/templates/extensions/list.inc b/shout/templates/extensions/list.inc index 61cfa96ad..aa403a23c 100644 --- a/shout/templates/extensions/list.inc +++ b/shout/templates/extensions/list.inc @@ -20,6 +20,10 @@ E-Mail Address 'javascript:alert(this.getNode().parent);', + 'id' => 'myid'); + $expandButton = Horde::img('tree/plusonly.png', _("Expand"), $expandAttrs, + $registry->getImageDir('horde')); foreach ($extensions as $extension => $info) { $url = Horde::applicationUrl("extensions.php"); @@ -35,8 +39,10 @@ - + + + + + +
+
+ + \n"; + } + foreach ($info['numbers'] as $number) { + echo Horde::img('telephone-pole.png') . " " . $number . "
\n"; + } + ?> +
+