mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-04 10:43:49 +00:00
Added a key profile edit and add button (#1815)
Added a key profile edit and add button for easier navigation, can now hop to profile editing with one click.
This commit is contained in:
@@ -933,12 +933,14 @@
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell' valign='top'>".$text['label-profile']."</td>";
|
||||
echo " <td class='vtable' align='left'>";
|
||||
echo " <select class='formfld' name='device_profile_uuid'>\n";
|
||||
echo " <select class='formfld' id='device_profile_uuid' name='device_profile_uuid'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
foreach($result as $row) {
|
||||
echo " <option value='".$row['device_profile_uuid']."' ".(($row['device_profile_uuid'] == $device_profile_uuid) ? "selected='selected'" : null).">".$row['device_profile_name']." ".(($row['domain_uuid'] == '') ? " (".$text['select-global'].")" : null)."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo " <button type='button' class='btn btn-default list_control_icon' onclick=\"if(document.getElementById('device_profile_uuid').value != '') window.location='device_profile_edit.php?id='+document.getElementById('device_profile_uuid').value;\"><span class='glyphicon glyphicon-pencil'></span></button>";
|
||||
echo " <button type='button' class='btn btn-default list_control_icon' onclick=\"window.location='device_profile_edit.php'\"><span class='glyphicon glyphicon-plus'></span></button>";
|
||||
echo " <br>".$text['description-profile2']."\n";
|
||||
echo " </td>";
|
||||
echo " </tr>";
|
||||
|
||||
Reference in New Issue
Block a user