Update device_dashboard.php

Hide the 'apply' button on the devices keys dashboard until its ready.
This commit is contained in:
FusionPBX
2016-06-19 10:00:01 -06:00
committed by GitHub
parent 0db15c3fab
commit e058dd8c74

View File

@@ -170,6 +170,12 @@
$device_profile_uuid = $row['device_profile_uuid'];
unset($row);
//get device lines
$sql = "SELECT * from v_device_lines ";
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
$device_lines = $prep_statement->fetchAll(PDO::FETCH_NAMED);
//get device keys
$sql = "SELECT * from v_device_keys ";
$sql .= "WHERE device_uuid = '".$device_uuid."' ";
@@ -232,9 +238,9 @@
echo " <br />";
echo " </div>\n";
echo " <div style='float: right;'>";
echo " <input type='button' class='btn' value='".$text['button-apply']."' onclick=\"document.location.href='".PROJECT_PATH."/app/devices/cmd.php?cmd=check_sync&profile=".$sip_profile_name."&show=".$show."&user=".$row['user']."&domain=".$row['sip-auth-realm']."&agent=".urlencode($row['agent'])."';\" ".$onhover_pause_refresh.">\n";
echo " </div>\n";
// echo " <div style='float: right;'>";
// echo " <input type='button' class='btn' value='".$text['button-apply']."' onclick=\"document.location.href='".PROJECT_PATH."/app/devices/cmd.php?cmd=check_sync&profile=".$sip_profile_name."&show=".$show."&user=".$row['user']."&domain=".$row['sip-auth-realm']."&agent=".urlencode($row['agent'])."';\" ".$onhover_pause_refresh.">\n";
// echo " </div>\n";
echo "<div style='float: right;'>\n";
echo " <input type='submit' class='btn' value='".$text['button-save']."'>";