diff --git a/app/phrases/phrase_edit.php b/app/phrases/phrase_edit.php index 04bb99f439..6dafe8a059 100644 --- a/app/phrases/phrase_edit.php +++ b/app/phrases/phrase_edit.php @@ -502,7 +502,7 @@ echo " \n"; echo " \n"; echo " \n"; - echo button::create(['type'=>'submit','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'style'=>'white-space: nowrap;']); + echo button::create(['type'=>'submit','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add']]); echo " \n"; echo " \n"; diff --git a/app/voicemails/voicemail_edit.php b/app/voicemails/voicemail_edit.php index eb185d2031..63c212846d 100644 --- a/app/voicemails/voicemail_edit.php +++ b/app/voicemails/voicemail_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) 2008-2019 + Portions created by the Initial Developer are Copyright (C) 2008-2020 the Initial Developer. All Rights Reserved. Contributor(s): @@ -304,9 +304,9 @@ $object = new token; $token = $object->create($_SERVER['PHP_SELF']); -//show the header - require_once "resources/header.php"; +//include the header $document['title'] = $text['title-voicemail']; + require_once "resources/header.php"; //password complexity $password_complexity = $_SESSION['voicemail']['password_complexity']['boolean']; @@ -351,29 +351,24 @@ } //show the content - echo "
\n"; + echo "\n"; + + echo "
\n"; + echo "
".$text['title-voicemail']."
\n"; + echo "
\n"; + echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'style'=>'margin-right: 15px;','link'=>$back_button_location]); + echo button::create(['type'=>'button','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'onclick'=>($password_complexity == "true" ? "if (check_password_strength(document.getElementById('password').value)) { submit_form(); }" : 'submit_form();')]); + echo "
\n"; + echo "
\n"; + echo "
\n"; + echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; echo "\n"; - echo "\n"; - echo ""; echo " "; echo "
"; - echo " ".$text['title-voicemail'].""; - echo "

"; - echo "
\n"; - echo " \n"; - if ($password_complexity == "true") { - echo " "; - } - else { - echo " \n"; - } - echo "
\n"; + echo "\n"; echo " ".$text['label-voicemail_id']."\n"; echo "\n"; + echo "\n"; echo " \n"; echo " \n"; //help defeat browser auto-fill echo "
\n"; @@ -441,7 +436,7 @@ echo "
".$text['label-options'].""; - echo " \n"; + echo "
\n"; echo " \n"; echo " \n"; echo " \n"; @@ -530,7 +525,7 @@ echo "\n"; echo " \n"; echo " \n"; } @@ -694,7 +689,8 @@ } unset($sql, $parameters, $result, $field); echo " "; - echo " \n"; + echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'collapse'=>'never','onclick'=>'submit_form();']); +// echo " \n"; echo "
\n"; echo " ".$text['description-forward_destinations']."\n"; echo "
\n"; @@ -736,26 +732,18 @@ echo $text['description-voicemail_description']."\n"; echo "\n"; echo "\n"; - echo " \n"; - echo " \n"; - echo " "; + echo "
".$text['label-option']."".$text['label-destination']."\n"; - echo " \n"; + echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'onclick'=>'submit_form();']); echo "
\n"; - if ($action == "update") { - echo " \n"; - } - $http_referer = parse_url($_SERVER["HTTP_REFERER"]); - echo " \n"; - echo " \n"; - echo " \n"; - echo "
"; - if ($password_complexity == "true") { - echo " "; - } - else { - echo " \n"; - } - echo "
"; echo "

"; + + if ($action == "update") { + echo "\n"; + } + $http_referer = parse_url($_SERVER["HTTP_REFERER"]); + echo "\n"; + echo "\n"; + echo "\n"; + echo ""; echo "