Shout: Improve display of extension/device information
authorBen Klang <ben@alkaloid.net>
Sat, 30 Jan 2010 03:27:57 +0000 (22:27 -0500)
committerBen Klang <ben@alkaloid.net>
Sat, 30 Jan 2010 03:27:57 +0000 (22:27 -0500)
shout/lib/Forms/DeviceForm.php
shout/templates/devices/list.inc
shout/templates/extensions/list.inc

index 9b79c55..0d2182c 100644 (file)
@@ -33,7 +33,7 @@ class DeviceDetailsForm extends Horde_Form {
             $this->addHidden('', 'devid', 'text', true);
 
         }
-        $this->addVariable(_("Device Name"), 'name', 'text', false);
+        $this->addVariable(_("Device Name"), 'name', 'text', true);
         $this->addVariable(_("Mailbox"), 'mailbox', 'int', false);
         $this->addVariable(_("CallerID"), 'callerid', 'text', false);
         $this->addVariable(_("Reset authentication token?"), 'genauthtok',
index 7ba6ce8..48b2e1f 100644 (file)
@@ -15,9 +15,9 @@
 <div id="extensionList">
     <table width="100%" cellspacing="0" class="striped">
         <tr>
-            <td class="uheader">Device ID</td>
+            <td class="uheader">Name</td>
             <td class="uheader">Mailbox</td>
-            <td class="uheader">CallerID</td>
+            <td class="uheader">Device ID</td>
         </tr>
         <?php
             $line = 0;
         ?>
         <tr class="item">
             <td>
-                <?php echo Horde::link($editurl); echo $devid; ?></a>
+                <?php echo Horde::link($editurl); echo $info['name']; ?></a>
             </td>
             <td>
                 <?php echo $info['mailbox']; ?>
             </td>
             <td>
-                <?php echo $info['callerid']; ?>
+                <?php echo Horde::link($editurl); echo $devid; ?></a>
             </td>
         </tr>
         <?php
index b485914..4a53873 100644 (file)
@@ -17,7 +17,6 @@
         <tr>
             <td class="uheader">Extension</td>
             <td class="uheader">Destinations</td>
-            <td class="uheader">E-Mail Address</td>
         </tr>
         <?php
             foreach ($extensions as $extension => $info) {
@@ -46,9 +45,6 @@
                 <div class="extensionDestinations" id="destX<?php echo $extension; ?>info">
                 </div>
             </td>
-            <td>
-                <?php echo $info['email']; ?>
-            </td>
         </tr>
         <?php
             }