From 38a9e1fae0351a4da14866492a17d417aed8a5cb Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 8 Feb 2021 11:52:29 -0700 Subject: [PATCH] Add import button if the feature is installed. --- app/call_centers/call_center_agents.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/call_centers/call_center_agents.php b/app/call_centers/call_center_agents.php index 5542f2fe77..ba66758c58 100644 --- a/app/call_centers/call_center_agents.php +++ b/app/call_centers/call_center_agents.php @@ -119,6 +119,9 @@ echo "
".$text['header-call_center_agents']." (".$num_rows.")
\n"; echo "
\n"; echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'id'=>'btn_back','link'=>'call_center_queues.php','style'=>'margin-right: 15px;']); + if (permission_exists('call_center_imports')) { + echo button::create(['type'=>'button','label'=>$text['button-import'],'icon'=>$_SESSION['theme']['button_icon_import'],'link'=>PROJECT_PATH.'/app/call_center_imports/call_center_imports.php?type=call_center_agents']); + } if ($num_rows) { echo button::create(['type'=>'button','label'=>$text['button-status'],'icon'=>'user-clock','style'=>'margin-right: 15px;','link'=>'call_center_agent_status.php']); } @@ -242,4 +245,4 @@ //show the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?>