add new active calls permissions (#7294)
Add new permissions to the active calls page so the fields can be removed from an admin permissions group to simplify the page, hiding more technical fields they probably will not find helpful.
This commit is contained in:
parent
a1c03c364a
commit
8f354b54de
|
|
@ -198,19 +198,25 @@
|
||||||
echo " <input type='checkbox' id='checkbox_all' name='checkbox_all' onclick='if (this.checked) { refresh_stop(); } else { refresh_start(); } list_all_toggle();' ".(empty($rows) ? "style='visibility: hidden;'" : null).">\n";
|
echo " <input type='checkbox' id='checkbox_all' name='checkbox_all' onclick='if (this.checked) { refresh_stop(); } else { refresh_start(); } list_all_toggle();' ".(empty($rows) ? "style='visibility: hidden;'" : null).">\n";
|
||||||
echo " </th>\n";
|
echo " </th>\n";
|
||||||
}
|
}
|
||||||
echo " <th class='hide-small'>".$text['label-profile']."</th>\n";
|
if (permission_exists('call_active_profile')) {
|
||||||
//echo" <th>".$text['label-created']."</th>\n";
|
echo " <th class='hide-small'>".$text['label-profile']."</th>\n";
|
||||||
|
}
|
||||||
echo " <th>".$text['label-duration']."</th>\n";
|
echo " <th>".$text['label-duration']."</th>\n";
|
||||||
if ($show == 'all') {
|
if ($show == 'all') {
|
||||||
echo " <th>".$text['label-domain']."</th>\n";
|
echo " <th>".$text['label-domain']."</th>\n";
|
||||||
}
|
}
|
||||||
//echo " <th>".$text['label-number']."</th>\n";
|
|
||||||
echo " <th class='hide-small'>".$text['label-cid-name']."</th>\n";
|
echo " <th class='hide-small'>".$text['label-cid-name']."</th>\n";
|
||||||
echo " <th>".$text['label-cid-number']."</th>\n";
|
echo " <th>".$text['label-cid-number']."</th>\n";
|
||||||
echo " <th>".$text['label-destination']."</th>\n";
|
echo " <th>".$text['label-destination']."</th>\n";
|
||||||
echo " <th class='hide-small hide-medium'>".$text['label-app']."</th>\n";
|
if (permission_exists('call_active_application')) {
|
||||||
echo " <th class='hide-small hide-medium'>".$text['label-codec']."</th>\n";
|
echo " <th class='hide-small hide-medium'>".$text['label-app']."</th>\n";
|
||||||
echo " <th class='hide-small hide-medium'>".$text['label-secure']."</th>\n";
|
}
|
||||||
|
if (permission_exists('call_active_codec')) {
|
||||||
|
echo " <th class='hide-small hide-medium'>".$text['label-codec']."</th>\n";
|
||||||
|
}
|
||||||
|
if (permission_exists('call_active_secure')) {
|
||||||
|
echo " <th class='hide-small hide-medium'>".$text['label-secure']."</th>\n";
|
||||||
|
}
|
||||||
if (permission_exists('call_active_eavesdrop') || permission_exists('call_active_hangup')) {
|
if (permission_exists('call_active_eavesdrop') || permission_exists('call_active_hangup')) {
|
||||||
echo " <th> </th>\n";
|
echo " <th> </th>\n";
|
||||||
}
|
}
|
||||||
|
|
@ -269,7 +275,9 @@
|
||||||
echo " <input type='hidden' name='calls[$x][uuid]' value='".escape($uuid)."' />\n";
|
echo " <input type='hidden' name='calls[$x][uuid]' value='".escape($uuid)."' />\n";
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
}
|
}
|
||||||
echo " <td class='hide-small'>".escape($sip_profile)." </td>\n";
|
if (permission_exists('call_active_profile')) {
|
||||||
|
echo " <td class='hide-small'>".escape($sip_profile)." </td>\n";
|
||||||
|
}
|
||||||
//echo " <td>".escape($created)." </td>\n";
|
//echo " <td>".escape($created)." </td>\n";
|
||||||
echo " <td>".escape($elapsed_time)."</td>\n";
|
echo " <td>".escape($elapsed_time)."</td>\n";
|
||||||
if ($show == 'all') {
|
if ($show == 'all') {
|
||||||
|
|
@ -279,9 +287,15 @@
|
||||||
echo " <td class='hide-small'>".escape($cid_name)." </td>\n";
|
echo " <td class='hide-small'>".escape($cid_name)." </td>\n";
|
||||||
echo " <td>".escape($cid_num)." </td>\n";
|
echo " <td>".escape($cid_num)." </td>\n";
|
||||||
echo " <td>".escape($dest)." </td>\n";
|
echo " <td>".escape($dest)." </td>\n";
|
||||||
echo " <td class='hide-small hide-medium' style='max-width: 200px; word-wrap: break-word;'>".(!empty($application) ? escape($application).":".escape($application_data) : null)." </td>\n";
|
if (permission_exists('call_active_application')) {
|
||||||
echo " <td class='hide-small hide-medium'>".escape($read_codec).":".escape($read_rate)." / ".escape($write_codec).":".escape($write_rate)." </td>\n";
|
echo " <td class='hide-small hide-medium' style='max-width: 200px; word-wrap: break-word;'>".(!empty($application) ? escape($application).":".escape($application_data) : null)." </td>\n";
|
||||||
echo " <td class='hide-small hide-medium'>".escape($secure)." </td>\n";
|
}
|
||||||
|
if (permission_exists('call_active_codec')) {
|
||||||
|
echo " <td class='hide-small hide-medium'>".escape($read_codec).":".escape($read_rate)." / ".escape($write_codec).":".escape($write_rate)." </td>\n";
|
||||||
|
}
|
||||||
|
if (permission_exists('call_active_secure')) {
|
||||||
|
echo " <td class='hide-small hide-medium'>".escape($secure)." </td>\n";
|
||||||
|
}
|
||||||
if (permission_exists('call_active_eavesdrop') || permission_exists('call_active_hangup')) {
|
if (permission_exists('call_active_eavesdrop') || permission_exists('call_active_hangup')) {
|
||||||
echo " <td class='button right' style='padding-right: 0;'>\n";
|
echo " <td class='button right' style='padding-right: 0;'>\n";
|
||||||
//eavesdrop
|
//eavesdrop
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue