Shout: keep working on first-run wizard
authorBen Klang <ben@alkaloid.net>
Thu, 1 Apr 2010 02:40:51 +0000 (22:40 -0400)
committerBen Klang <ben@alkaloid.net>
Thu, 1 Apr 2010 02:40:51 +0000 (22:40 -0400)
shout/templates/dialplan/add.inc
shout/templates/wizard.inc
shout/themes/screen.css
shout/wizard.php

index 9763d36..112bd7d 100644 (file)
@@ -1,2 +1,2 @@
 <?php
-$Form->renderActive($RENDERER, $vars, Horde::applicationUrl('dialplan.php'), 'post');
+$Form->renderActive(null, $vars, Horde::applicationUrl('dialplan.php'), 'post');
index a761bd8..d007e7a 100644 (file)
@@ -9,9 +9,15 @@
         Follow the prompts to create and save your new recording.</li>
     </ol>
     When finished, hang up.
-    <input type="cancel" onclick="shownext()" value="Continue to Step 2">
+    <br style="clear:both;">
+    <div class="button" onclick="$('step2').show()">Continue to Step 2</div>
 </div>
-
+<br style="clear:both;">
 <div id="step2" class="step">
-    Here we create an extension.
-</div>
\ No newline at end of file
+    <?php $extensionform->renderActive(null, $vars, Horde::applicationUrl('dialplan.php'), 'post');?>
+</div>
+<script type="text/javascript">
+<!--
+$('step2').hide();
+// -->
+</script>
\ No newline at end of file
index 0e1512a..05b989b 100644 (file)
@@ -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;
+}
index d5ef427..93b47fa 100644 (file)
@@ -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);
 }