Fix Broken Rnav in add device
Replace _DIR_ with absolute path; _DIR_ references sccpTraits Fix error in toolbar id
This commit is contained in:
parent
5ad6f5bae0
commit
03057edd6c
|
@ -34,7 +34,6 @@ trait bmoFunctions {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getActionBar($request) {
|
public function getActionBar($request) {
|
||||||
dbug('request',$request);
|
|
||||||
$buttons = array();
|
$buttons = array();
|
||||||
switch ($request['display']) {
|
switch ($request['display']) {
|
||||||
case 'sccp_adv':
|
case 'sccp_adv':
|
||||||
|
@ -110,7 +109,7 @@ trait bmoFunctions {
|
||||||
|
|
||||||
public function getRightNav($request) {
|
public function getRightNav($request) {
|
||||||
if (isset($request['tech_hardware']) && ($request['tech_hardware'] == 'cisco')) {
|
if (isset($request['tech_hardware']) && ($request['tech_hardware'] == 'cisco')) {
|
||||||
return load_view(__DIR__ . "/views/hardware.rnav.php", array('request' => $request));
|
return load_view("/var/www/html/admin/modules/sccp_manager/views/hardware.rnav.php", array('request' => $request));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,24 @@
|
||||||
<div id="toolbar-sccpbnav">
|
<div id="toolbar-sccp-rnav">
|
||||||
<a href="config.php?display=sccp_phone#sccpdevice" class = "btn btn-default"><i class="fa fa-list"></i> <?php echo _("List Device")?></a>
|
<a class="btn btn-default" href="config.php?display=sccp_phone#sccpdevice">
|
||||||
<a href="config.php?display=sccp_phone&tech_hardware=cisco" class = "btn btn-default"><i class="fa fa-plus"></i> <?php echo _("Add Device")?></a>
|
<i class="fa fa-list"></i>
|
||||||
|
<?php echo _("List Device")?>
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-default" href="config.php?display=sccp_phone&tech_hardware=cisco">
|
||||||
|
<i class="fa fa-plus"> </i>
|
||||||
|
<?php echo _("Add Device")?>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<table id="sccpnavgrid"
|
<table id="sccpnavgrid"
|
||||||
data-search="true"
|
data-search="true"
|
||||||
data-toolbar="#toolbar-sccpnav"
|
data-toolbar="#toolbar-sccp-rnav"
|
||||||
data-url="ajax.php?module=sccp_manager&command=getPhoneGrid&type=sccp"
|
data-url="ajax.php?module=sccp_manager&command=getPhoneGrid&type=sccp"
|
||||||
data-cache="false"
|
data-cache="false"
|
||||||
data-toggle="table"
|
data-toggle="table"
|
||||||
class="table">
|
class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th data-sortable="true" data-field="mac"><?php echo _('SEP ID') ?></th>
|
<th data-sortable="true" data-field="mac"><?php echo _('SEP ID')?></th>
|
||||||
<th data-sortable="true" data-field="description"><?php echo _('Descriptions') ?></th>
|
<th data-sortable="true" data-field="description"><?php echo _('Descriptions')?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in a new issue