diff --git a/templates/default/voipaccount/voipaccountaddbox.html b/templates/default/voipaccount/voipaccountaddbox.html
index 10d9c75ea1..5524e870d9 100644
--- a/templates/default/voipaccount/voipaccountaddbox.html
+++ b/templates/default/voipaccount/voipaccountaddbox.html
@@ -60,7 +60,7 @@
{trans("Login:")}
-
+
|
{/block}
@@ -84,7 +84,7 @@
{trans("Password:")}
-
+
»»»
|
@@ -102,7 +102,7 @@
number")}"
- {tip class="phone-number" trigger="phone-number-0"}>
+ {tip class="phone-number" trigger="phone-number-0"} required>
number")}"
- {tip trigger="phone-number-{$k}"}>
+ {tip trigger="phone-number-{$k}"} required>
number")}" {tip trigger="phone-number"}>' +
+ var phone_number_input = 'number")}" {tip trigger="phone-number"} required>' +
'';
table.append('| ' + phone_number_input + ' | ' + pool_number_select + ' ' + remove_number + ' |
');
var numbers = table.find('.remove-number');
diff --git a/templates/default/voipaccount/voipaccounteditbox.html b/templates/default/voipaccount/voipaccounteditbox.html
index fe2bd3ea29..7e8a2b1a6a 100644
--- a/templates/default/voipaccount/voipaccounteditbox.html
+++ b/templates/default/voipaccount/voipaccounteditbox.html
@@ -63,7 +63,8 @@
{trans("Login:")}
-
+
({$voipaccountinfo.id|string_format:"%04d"})
|
@@ -91,7 +92,7 @@
{trans("Password:")}
-
+
»»»
|
@@ -378,7 +379,8 @@
$('#add_number').on('click', function () {
var table = $('#phone_numbers_table');
var i = table.find('[type="tel"]').length;
- var phone_number_input = 'number")}" {tip trigger="phone-number"}>' +
+ var phone_number_input = 'number")}" {tip trigger="phone-number"} required>' +
'';
table.append('| ' + phone_number_input + ' | ' + pool_number_select + ' ' + remove_number + ' |
');
var numbers = table.find('.remove-number');
diff --git a/templates/default/voipaccount/voipaccountinfobox.html b/templates/default/voipaccount/voipaccountinfobox.html
index 4d2a80e03d..a5d8fa3040 100644
--- a/templates/default/voipaccount/voipaccountinfobox.html
+++ b/templates/default/voipaccount/voipaccountinfobox.html
@@ -60,7 +60,7 @@
{trans("Password:")}
- {if ConfigHelper::checkPrivilege('hide_voip_passwords')}{'*'|str_repeat:8}{else}{$voipaccountinfo.passwd}{/if}
+ {if !ConfigHelper::checkConfig('privileges.hide_voip_passwords')}{$voipaccountinfo.passwd}{else}{'*'|str_repeat:8}{/if}
|
{/block}
diff --git a/templates/default/voipaccount/voipaccountlist.html b/templates/default/voipaccount/voipaccountlist.html
index bb52033dec..349c627e7e 100644
--- a/templates/default/voipaccount/voipaccountlist.html
+++ b/templates/default/voipaccount/voipaccountlist.html
@@ -104,7 +104,7 @@ {$layout.pagetitle}
{/foreach}
- {if ConfigHelper::checkPrivilege('hide_voip_passwords')}{'*'|str_repeat:8}{else}{$voipaccountlist[voipaccountlist].passwd}{/if}
+ {if !ConfigHelper::checkConfig('privileges.hide_voip_passwords')}{$voipaccountlist[voipaccountlist].passwd}{else}{'*'|str_repeat:8}{/if}
|
|