From 695f5ee4467a425f406ed1efbc918f2220b8c667 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Wed, 31 Mar 2010 22:40:51 -0400 Subject: [PATCH] Shout: keep working on first-run wizard --- shout/templates/dialplan/add.inc | 2 +- shout/templates/wizard.inc | 14 ++++++++++---- shout/themes/screen.css | 8 ++++++++ shout/wizard.php | 5 ++++- 4 files changed, 23 insertions(+), 6 deletions(-) diff --git a/shout/templates/dialplan/add.inc b/shout/templates/dialplan/add.inc index 9763d3607..112bd7d4b 100644 --- a/shout/templates/dialplan/add.inc +++ b/shout/templates/dialplan/add.inc @@ -1,2 +1,2 @@ renderActive($RENDERER, $vars, Horde::applicationUrl('dialplan.php'), 'post'); +$Form->renderActive(null, $vars, Horde::applicationUrl('dialplan.php'), 'post'); diff --git a/shout/templates/wizard.inc b/shout/templates/wizard.inc index a761bd8a4..d007e7a2a 100644 --- a/shout/templates/wizard.inc +++ b/shout/templates/wizard.inc @@ -9,9 +9,15 @@ Follow the prompts to create and save your new recording. When finished, hang up. - +
+
Continue to Step 2
- +
- Here we create an extension. -
\ No newline at end of file + renderActive(null, $vars, Horde::applicationUrl('dialplan.php'), 'post');?> + + \ No newline at end of file diff --git a/shout/themes/screen.css b/shout/themes/screen.css index 0e1512a0a..05b989bc7 100644 --- a/shout/themes/screen.css +++ b/shout/themes/screen.css @@ -214,3 +214,11 @@ span.device:hover background: url('graphics/redbox_spinner.gif') no-repeat center #000; z-index: 5; } + +.step +{ + width: 500px; + border: 1px dotted; + margin: 5px; + padding: 5px; +} diff --git a/shout/wizard.php b/shout/wizard.php index d5ef4273a..93b47fa5e 100644 --- a/shout/wizard.php +++ b/shout/wizard.php @@ -11,6 +11,8 @@ require_once dirname(__FILE__) . '/lib/Application.php'; $shout = Horde_Registry::appInit('shout'); +require_once SHOUT_BASE . '/lib/Forms/ExtensionForm.php'; + try { // Only continue if there is no existing "Main Menu" $curaccount = $_SESSION['shout']['curaccount']; @@ -43,7 +45,8 @@ try { $shout->dialplan->saveMenuAction($curaccount['code'], Shout::MAIN_MENU, 'star', 'admin_login', array()); - + $vars = Horde_Variables::getDefaultVariables(); + $extensionform = new ExtensionDetailsForm($vars); } catch (Exception $e) { $notification->push($e); } -- 2.11.0