From a2a11e626ed601dd6031be5d3d48fbaacc021680 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 10 Feb 2020 21:17:57 -0700 Subject: [PATCH] SIP Profiles - Edit: Button updates. --- app/sip_profiles/sip_profile_edit.php | 48 +++++++++++++-------------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/app/sip_profiles/sip_profile_edit.php b/app/sip_profiles/sip_profile_edit.php index d84876f3e7..919afb9dcb 100644 --- a/app/sip_profiles/sip_profile_edit.php +++ b/app/sip_profiles/sip_profile_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2016-2018 + Portions created by the Initial Developer are Copyright (C) 2016-2020 the Initial Developer. All Rights Reserved. Contributor(s): @@ -265,30 +265,32 @@ echo "\n"; //show the content - echo "
\n"; - echo "\n"; + echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; + echo button::create(['type'=>'submit','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save']]); + echo " \n"; + echo "
\n"; + echo "\n"; + + echo "
".$text['title-sip_profile']."

\n"; - echo " "; + echo "
\n"; + echo "
".$text['title-sip_profile']."
\n"; + echo "
\n"; + echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'style'=>'margin-right: 15px;','link'=>'sip_profiles.php']); if ($action == 'update' && ( permission_exists('dialplan_add') || permission_exists('inbound_route_add') || permission_exists('outbound_route_add') || permission_exists('time_condition_add') )) { - echo " \n"; + echo button::create(['type'=>'button','label'=>$text['button-copy'],'icon'=>$_SESSION['theme']['button_icon_copy'],'style'=>'margin-right: 15px;','onclick'=>"var name = prompt('".$text['label-new_sip_profile_name']."'); if (name != null) { window.location='sip_profile_copy.php?id=".urlencode($sip_profile_uuid)."&name=' + name; }"]); } - echo " "; - echo "
\n"; echo "\n"; - echo "\n"; - echo "\n"; echo "\n"; - echo " \n"; - echo " \n"; - echo " "; echo "
\n"; + echo "\n"; echo " ".$text['label-sip_profile_name']."\n"; echo "\n"; + echo "\n"; echo " \n"; echo "
\n"; echo $text['description-sip_profile_name']."\n"; @@ -493,21 +495,17 @@ echo "
\n"; - if ($action == "update") { - echo " \n"; - } - echo " \n"; - echo "
\n"; - echo " \n"; - echo "
"; - echo "
"; echo "

"; + if ($action == "update") { + echo "\n"; + } + echo "\n"; + + echo ""; + //include the footer require_once "resources/footer.php"; -?> +?> \ No newline at end of file