Commit Graph

87 Commits

Author SHA1 Message Date
FusionPBX
7f9064fadb Update boolean toggle and the database boolean type (#7522)
* Change the data type to boolean

* Use boolean values in SQL and Conditional Statements

* Schema Data Types: Drop views so that alter tables statements complete

* Update settings.php

* Add extension for call_screen_enabled

* Gateway handle boolean
Add the boolean toggle
- distinct_to
- caller_id_in_from
- supress_cng
- extension_in_contact
- contact_in_ping

* Update gateways.php

* Update voicemail_edit.php

* Replace the ${caller_id_name} with the extensions caller id name

* Phrase - Edit: Update slide toggle with new select beneath.

* Update the input toggle style

* Set the input_toggle_style_switch as boolean

* Update the input toggle style

* Theme: Adjust CSS to wrap description text on form fields.

* Add domain_uuid and domain_name to the SQL SELECT

* Unset the parameters to fix the next query

* Gateway: Integrate new slide toggle switch.

* Dashboard: Update the input toggle style (#7499)

* Dashboard: Update the input toggle style

* Update dashboard_widget_edit.php

* Update dashboard_edit.php

* Inbound Route - Add: Integrate new slide toggle switch and boolean.

* User Settings: Integrate new slide toggle switch.

* Call Block Edit: Update the input toggle style (#7500)

* Bridge Edit: Update the input toggle style (#7501)

* Update phrases.php

* Update domain_edit.php

* Domain Settings Edit: Update the input toggle style

* User Edit: Update the input toggle style

* Update install.php

* Remove fields marked as deprecated

* Use boolean in the select statement

* Streams: New slide toggle and boolean.

* Streams: Remove unnecessary default.

* Queues (FIFO): New slide toggle.

* Call Detail Records: Update the input toggle style (#7503)

* Call Detail Records: Update the input toggle style

* Update xml_cdr_extension_summary.php

* Update xml_cdr_extension_summary.php

* Update xml_cdr_extension_summary.php

* Call Centers: Update the input toggle style (#7502)

* Call Centers: Update the input toggle style

* Update call_center_agent_edit.php

* Conference Centers: Update the input toggle style (#7506)

* Conference Centers: Update the input toggle style

* Update app_config.php

* Update conference_center_edit.php

* Use boolean data type (#7505)

* Call Flow Edit: Update the input toggle style (#7504)

* Devices: Update the input toggle style

* IVR Menus: New slide toggle.

* IVR Menu: Remove deprected file.

* SIP Profile - Edit: New slide toggle.

* Device Profiles: Update the input toggle style

* Ring Groups - List: Fix syntax.

* Theme: Fire onchange event when switching slide toggle control.

* Device Vendors: Update the input toggle style

* Update enabled boolean

* Update device_edit.php

* Ring Groups: New slide toggle.

* Update domain_edit.php

* Email Templates: Update the input toggle style

* Header: Correct default value on input toggle style.

* Default/Domain/User Settings: Adjust Select option label for better clarity.

* Use true boolean types for switch theme toggle or drop-down box (#7507)

* Groups: Update the input toggle style

* Conference Controls: Update the input toggle style (#7509)

* Conference Controls: Update the input toggle style

* Update conference_control_edit.php

* Update conference_control_details.php

* Update conference_control_detail_edit.php

* Conferences: Update the input toggle style (#7511)

* Use true boolean types for switch theme toggle or drop-down box (#7513)

* Dialplans: Update the input toggle style
Also updated outbound route add

* Ring Group: Only adjust ring group forward destination top margin when slide toggle enabled.

* Default/Domain/User Settings - List: Adjust for new 'Select Box' label on input_toggle_style value.

* Use true boolean types for switch theme toggle or drop-down box (#7514)

* Call Forward / Follow Me: Minor javascript adjustments to mirror previous behavior.

* Ring Groups [Dashboard]: New slide toggle.

* Get the contacts details with a seperate SQL Query

* Remove debug info

* Destinations: Update the input toggle style

* Conference Profiles: Update the input toggle style (#7515)

* Conference Profiles: Update the input toggle style

* Update conference_profiles.php

* Update conference_profile_params.php

* Update conference_profile_param_edit.php

* Update conference_profile_edit.php

* Extensions: Update the input toggle style

* Contacts: Update the input toggle style (#7517)

* Contacts: Update the input toggle style

* Update contact_address_edit.php

* Update contact_attachment_edit.php

* Update contact_edit.php

* Update contact_email_edit.php

* Update contact_phone_edit.php

* Update contact_relation_edit.php

* Update contact_setting_edit.php

* Update contact_url_edit.php

* Update contacts.php

* Voicemails: New slide toggle.

* Voicemail Greeting: New slide toggle.

* Modules: New slide toggle.

* Recordings: New slide toggle

* Variables: New slide toggle.

* Time Conditions: New slide toggle.

* Extensions - List: Remove invalid column name.

* Extension Settings: New slide toggle.

* Number Translations: New slide toggle and boolean.

* Sofia global settings: Update the input toggle style

* Update alter table convert to boolean

* Fix contact relation search (#7518)

* Sip Profile Edit: Fix setting enabled labels (#7519)

* Sip Profile Edit: Fix setting enabled labels

* Update sip_profile_edit.php

* Update dialplan_edit.php (#7520)

* Update SQL queries to use true/false for contact primary settings (#7521)

* Update SQL queries to use true/false for contact primary settings

* Update contacts_vcard.php

* Update email.php

* Update totp.php

* Update contact_url_edit.php

* Update contact_email_edit.php

* Update contact_address_edit.php

* Update contact_attachment_edit.php

* Update contact_phone_edit.php

* Add a database views method

* Add database view groups

* Add database users view

* Add database call_recordings view

* Update users.php

* Add  database view call block

* Update schema to use the database views method

* Update conference.conf.lua boolean

* Update directory.lua boolean

* Update callcenter.conf.lua agent_status boolean

* Update sofia.conf.lua boolean

* Update number translations lua boolean

* Update directory.lua boolean

* Update group_call.lua fix the cache

* Update reverse-auth-lookup.lua boolean

* Update directory.lua boolean

* Use concat instead of ||

* Update index.lua

---------

Co-authored-by: fusionate <nate@fusionpbx.com>
Co-authored-by: Alex <alex@fusionpbx.com>
Co-authored-by: frytimo <tim@fusionpbx.com>
2025-09-20 18:42:05 -06:00
fusionate
d37dec79a1 Device Profile - Edit: Adjust indentation in previous commit. 2025-08-21 12:14:13 -06:00
fusionate
6fe859986a Device Profile - Edit: Apply slide toggle option to Settings Enabled field. 2025-08-21 12:12:59 -06:00
FusionPBX
c3952028b1 Use the settings get method for the buttons 2025-04-14 10:36:21 -06:00
Alex
c01403cce8 Added content card div to devices (#7122) 2024-09-06 11:20:03 -06:00
frytimo
2cbb4dbc31 remove instances where a pointer is used in a foreach loop for value (#7108) 2024-08-22 12:41:10 -06:00
frytimo
d7bbcd89f5 Use magic constant dir (#6711)
* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__ to load only functions.php

* replace spaces with tab character

* update dirname command to use levels instead of nesting

* use magic constant __DIR__

* update dirname command to use levels instead of nesting

* Update access_control_edit.php

* Update access_control_import.php

* Update access_controls.php

* Update dnd.php

* Update access_controls_reload.php

* Update call_center_agents.php

* Update call_center_agents.php

* Update fax_queue.php

* Update login.php

* Update pdo.php

* Update pdo_vm.php

* Update switch.php

* Update index.php

* Update css.php

* Update v_mailto.php

* Update fax_to_email.php

---------

Co-authored-by: FusionPBX <markjcrane@gmail.com>
2023-06-15 11:28:23 -06:00
FusionPBX
f8662f20a3 Fix the display of the device table header 2023-06-02 15:43:52 -06:00
fusionate
e3dce560cf Device Profile - Edit: Updates for PHP 8.1 2023-05-25 17:46:27 +00:00
frytimo
fef8165be2 Frytimo pr patches for php8.1 (#6630)
* Passing null to parameter #2 ($string) of type string is deprecated

* Passing null to parameter #1 ($string) of type string is deprecated

* php 8.1 fixes

* php 8.1 fixes - replace strlen($var) > 0 with !empty($var)

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - strlower with null

* php 8.1 fixes - strreplace with null

* php 8.1 fixes - passing null to base64_decode

* php 8.1 fixes - check for false and check for null on $this->dir

* php 8.1 fixes - remove assignment of $db variable to modules object

* php 8.1 fixes - avoid sending null to substr

* php 8.1 fixes - change ${var} to {$var}

* php 8.1 fixes - check for null before preg_replace

* php 8.1 fixes - remove setting db variable on domains object

* php 8.1 fixes - set empty string if $row['domain_setting_subcategory'] is null

* php 8.1 fixes - set empty string if $_REQUEST['show'] is not available

* php 8.1 fixes

* php 8.1 fixes - correct $_POST checking syntax

* php 8.1 fixes - correct $_POST variables

* php 8.1 fixes

* Use brackets consistently

* Update user_setting_edit.php

* Change to not empty

* Update device.php

* Update text.php

---------

Co-authored-by: Tim Fry <tim@voipstratus.com>
Co-authored-by: FusionPBX <markjcrane@gmail.com>
2023-05-05 10:46:37 -06:00
FusionPBX
423bcd8aa8 Rename name to type 2023-04-04 10:59:24 -06:00
FusionPBX
408122c60c Add subtype to vendor functions and device keys. (#6409)
* Add subtype to vendor functions and device keys.

Added to support phones that require a subtype for provisioning the phone.

* Add device_key_subtype

* Update device_edit.php

* Update device_profile_edit.php

* Update device_vendor_edit.php

* Update device_vendor_function_edit.php

* Update device_vendor_functions.php

* Update device_vendor_restore.php

* Update index.php

* Update provision.php

* Update app_languages.php

* Update app_config.php
2023-04-04 08:57:41 -06:00
FusionPBX
e72094543a Add key to the name 2023-02-21 20:45:54 -07:00
FusionPBX
aa51f96212 Customizable empty rows for device keys (#6561)
* Customizable empty rows for device keys

* New default setting profile_add_rows and profile_edit_rows
2023-02-21 20:27:55 -07:00
Alex
7326cb845a Set default for enabled (#6556)
* Set default for enabled

* Update conference_profile_edit.php

* Update call_block_edit.php

* Update conference_control_edit.php

* Update conference_control_detail_edit.php

* Update conference_profile_edit.php

* Update conference_profile_param_edit.php

* Update conference_edit.php

* Update destination_edit.php

* Update device_edit.php

* Update device_profile_edit.php

* Update device_vendor_edit.php

* Update email_template_edit.php

* Update extension_edit.php

* Update module_edit.php

* Update phrase_edit.php

* Update ring_group_edit.php

* Update sip_profile_edit.php

* Update stream_edit.php

* Update time_condition_edit.php

* Update var_edit.php

* Update voicemail_edit.php

* Update call_block_edit.php

* Update default_setting_edit.php

* Update domain_setting_edit.php

* Update domain_edit.php

* Update user_edit.php

* Update bridge_edit.php

* Update sip_profile_edit.php

* Update sofia_global_setting_edit.php

* Update call_flow_edit.php

* Update email_template_edit.php

* Update call_flow_edit.php

* Update bridge_edit.php

* Update email_template_edit.php

* Update sip_profile_edit.php

* Update sofia_global_setting_edit.php

* Update bridge_edit.php

* Update call_flow_edit.php

* Update conference_control_edit.php

* Update sip_profile_edit.php

* Update stream_edit.php

* Update default_setting_edit.php

* Update email_template_edit.php

* Update extension_setting_edit.php

* Update default_setting_edit.php

* Update dashboard_edit.php

* Update dashboard_edit.php

* Update default_setting_edit.php
2023-02-17 14:21:41 -07:00
Alex
a229d1e46c Add enabled toggle to more pages and bug fix (#6552)
* Add enabled toggle to more pages and bug fix

* Add device profile enable toggle

* fixed enable on bridge_edit.php

* Fixed enable on call_block_edit.php

* Fixed enable on call_flow_edit.php

* Fixed enable on conference_center_edit.php

* Add conference room enabled toggle

* Fixed enable on conference_control_detail_edit.php

* Fixed enable on conference_control_edit.php

* Fixed enable on conference_profile_edit.php

* Add conference profile param enabled toggle

* Fixed enable on conference_edit.php

* Fixed enabled on device_edit.php

* Fixed enable on extension_edit.php

* Fixed enable on gateway_edit.php

* Fixed enable on number_translation_edit.php

* Fixed enable on phrase_edit.php

* Fixed enable on ring_group_edit.php

* Fixed enable on sip_profile_edit.php

* Fixed enable on stream_edit.php

* Fixed enable on time_condition_edit.php

* Fixed enable on var_edit.php

* Fixed enable on voicemail_edit.php

* Fixed enable on user_edit.php

* Fixed enable on user_setting_edit.php

* Update user_edit.php

* Update bridge_edit.php

* Update call_flow_edit.php

* Update conference_control_edit.php

* Update stream_edit.php

* Fixed enable on default_setting_edit.php

* Fixed enable on domain_edit.php

* Fixed enable on email_template_edit.php

* Fixed enable on module_edit.php
2023-02-14 11:19:02 -07:00
fusionate
6825825891 Device Profile - Edit: Implement device_key_icon permission on Icon column of Keys. 2023-01-27 22:42:05 +00:00
markjcrane
d50bcb476a Replace root.php 2022-10-10 16:35:14 -06:00
agree
dbd1fc27fe [device profiles] Only allow editing device settings when having permission (#5980)
* [device profiles] Only allow editing device settings when having permission

* Update device_profile_edit.php
2021-11-13 11:29:21 -07:00
FusionPBX
d2004e921e Device profile add just expansion. 2020-08-28 12:34:36 -06:00
chansizzle
c3b5f57ad1 Update device_profile_edit.php (#5430)
* Update device_profile_edit.php

expansion modules update
2020-08-28 12:28:02 -06:00
FusionPBX
90dc96d134 Fix the device profile key vendor for Yealink 2020-07-14 19:32:01 -06:00
konradSC
5dc1137a64 Fix Yealink Expansion Modules in Device Profiles (#5324)
The 'if' statements need to reference v_device_profile_keys.profile_key_vendor instead of device_key_vendor which is in a different table.
2020-07-01 16:28:36 -06:00
Nate
92033b88bc Devices, Profiles & Vendors: Modal integration. 2020-03-26 08:55:43 -06:00
Nate
e8494facee Multiple: Add IDs to form tags, remove empty action attributes. 2020-03-05 10:02:25 -07:00
Nate
029c7174b4 Multiple - Add IDs to common/default action buttons. 2020-03-05 00:05:45 -07:00
Nate
8cf57f30be Multiple - Edit: Minor mods. 2020-03-03 19:59:41 -07:00
Nate
6c37a5e125 Devices / Device Profiles - Edit: Permission adjustments. 2020-02-28 07:31:35 -07:00
Nate
834880e0e7 Devices / Device Profiles - Edit: Add select-all checkboxes for bulk delete of Lines, Keys and Settings. 2020-02-27 19:01:21 -07:00
Nate
0da0e3036a Device Profiles - Edit: Add delete button with dynamic action. 2020-02-27 12:48:43 -07:00
Nate
4836e4ba7f Device Profiles - Edit: Integrate checkboxes on Keys and Settings for bulk delete on Save (uses token). 2020-02-20 15:37:45 -07:00
Nate
36334d003c Devices: List view and button updates, other fixes. 2020-01-08 13:28:01 -07:00
Nate
4edd21773a Devices: Add window titles. 2020-01-06 07:39:59 -07:00
FusionPBX
1e05105179 Add expansion 3-6 to the device profile. 2019-12-12 09:02:50 -07:00
Nate
f0f05f5651 Devices (Profiles & Vendors): List view updates. 2019-11-07 16:01:43 -07:00
Nate
bd2536a1da Update device_profile_edit.php 2019-09-23 15:54:05 -06:00
Nate
3e8603cfae Update device_profile_edit.php 2019-09-23 14:16:38 -06:00
Nate
1a29840b12 Devices: Token integration. 2019-09-17 22:35:49 -06:00
FusionPBX
abcbb4a1a7 Update device_profile_edit.php 2019-08-29 17:11:27 -06:00
Nate
17f2911056 Replace misc glyphicon usage. 2019-08-20 19:53:21 -06:00
FusionPBX
9441e638f6 Update device_profile_edit.php 2019-08-16 14:24:58 -06:00
FusionPBX
f376b7db27 Update device_profile_edit.php 2019-08-16 14:19:01 -06:00
FusionPBX
b2bae448a4 Update device_profile_edit.php 2019-08-14 23:46:10 -06:00
FusionPBX
639dd286dc Update device_profile_edit.php 2019-08-14 22:23:17 -06:00
FusionPBX
02a96ab900 Update device_profile_edit.php 2019-08-14 20:14:36 -06:00
FusionPBX
a63ac28aa7 Update device_profile_edit.php 2019-08-14 20:10:20 -06:00
FusionPBX
9b0fc3d77a Update device_profile_edit.php 2019-08-14 19:45:53 -06:00
FusionPBX
7a0f0f11b9 Update device_profile_edit.php 2019-08-14 19:24:58 -06:00
FusionPBX
2e692f0bd0 Update device_profile_edit.php 2019-08-14 18:23:39 -06:00
FusionPBX
da5f0b0ce4 Update device_profile_edit.php 2019-08-14 18:22:02 -06:00