From 2ff71010e59d565d48bc4260bd713f330067bc8d Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Fri, 31 Oct 2014 05:06:46 +0000 Subject: [PATCH] Ring Groups: Toggle Destinations Delay/Order column heading based on Strategy select value. --- app/ring_groups/app_languages.php | 5 +++++ app/ring_groups/ring_group_edit.php | 34 +++++++---------------------- 2 files changed, 13 insertions(+), 26 deletions(-) diff --git a/app/ring_groups/app_languages.php b/app/ring_groups/app_languages.php index db926de9a2..1d3f15f4a4 100644 --- a/app/ring_groups/app_languages.php +++ b/app/ring_groups/app_languages.php @@ -176,6 +176,11 @@ $text['label-destination_delay']['fr-fr'] = "Délais"; $text['label-destination_delay']['pt-pt'] = "Atraso"; + $text['label-destination_order']['en-us'] = "Order"; + $text['label-destination_order']['es-cl'] = "Orden"; + $text['label-destination_order']['fr-fr'] = "Ordem"; + $text['label-destination_order']['pt-pt'] = "Ordre"; + $text['label-destination_number']['en-us'] = "Destination"; $text['label-destination_number']['es-cl'] = "Destino"; $text['label-destination_number']['fr-fr'] = "Destination"; diff --git a/app/ring_groups/ring_group_edit.php b/app/ring_groups/ring_group_edit.php index 2a040c6325..30b4576fe6 100644 --- a/app/ring_groups/ring_group_edit.php +++ b/app/ring_groups/ring_group_edit.php @@ -458,31 +458,11 @@ else { echo " ".$text['label-strategy'].":\n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; echo " \n"; echo "
\n"; echo $text['description-strategy']."\n"; @@ -496,7 +476,9 @@ else { echo " \n"; echo " \n"; echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; if (permission_exists('ring_group_prompt')) { echo " \n";
".$text['label-destination_number']."".$text['label-destination_delay'].""; + echo ($ring_group_strategy == 'simultaneous' || $ring_group_strategy == 'rollover' || $ring_group_strategy == '') ? $text['label-destination_order'] : $text['label-destination_delay']; + echo " ".$text['label-destination_timeout']."".$text['label-destination_prompt']."