HTML5 input tags for xmpp_profile_edit

This commit is contained in:
luis daniel lucio quiroz
2014-12-21 06:08:47 +00:00
parent df78ad79d0
commit 5b71771ce3
2 changed files with 9 additions and 8 deletions

View File

@@ -56,7 +56,7 @@ function show_advanced_config() {
<?php echo $text['label-profile_name']?>:
</td>
<td width="70%" class='vtable' align='left'>
<input class='formfld' type='text' name='profile_name' maxlength='255' value="<?php echo $profile['profile_name']; ?>">
<input class='formfld' type='text' name='profile_name' maxlength='255' value="<?php echo $profile['profile_name']; ?>" required='required'>
<br />
<?php echo $text['description-profile_name']?>
</td>
@@ -67,7 +67,7 @@ function show_advanced_config() {
<?php echo $text['label-username']?>:
</td>
<td class='vtable' align='left'>
<input class='formfld' type='text' name='profile_username' autocomplete='off' maxlength='255' value="<?php echo $profile['profile_username'];?>">
<input class='formfld' type='text' name='profile_username' autocomplete='off' maxlength='255' value="<?php echo $profile['profile_username'];?>" required='required'>
<br />
<?php echo $text['description-username']?>
</td>
@@ -78,7 +78,7 @@ function show_advanced_config() {
<?php echo $text['label-password']?>:
</td>
<td class='vtable' align='left'>
<input class='formfld' type='password' name='profile_password' autocomplete='off' id='profile_password' maxlength='50' onmouseover="this.type='text';" onfocus="this.type='text';" onmouseout="if (!$(this).is(':focus')) { this.type='password'; }" onblur="this.type='password';" value="<?php echo $profile['profile_password'];?>">
<input class='formfld' type='password' name='profile_password' autocomplete='off' id='profile_password' maxlength='50' onmouseover="this.type='text';" onfocus="this.type='text';" onmouseout="if (!$(this).is(':focus')) { this.type='password'; }" onblur="this.type='password';" value="<?php echo $profile['profile_password'];?>" required='required'>
<br />
<?php echo $text['description-password']?>
</td>
@@ -114,7 +114,7 @@ function show_advanced_config() {
<?php echo $text['label-default_exten']?>:
</td>
<td class='vtable' align='left'>
<input class='formfld' type='text' name='default_exten' maxlength='255' value="<?php echo $profile['default_exten'];?>">
<input class='formfld' type='text' name='default_exten' maxlength='255' value="<?php echo $profile['default_exten'];?>" required='required'>
<br />
<?php echo $text['description-default_exten']?>
</td>
@@ -140,7 +140,7 @@ function show_advanced_config() {
<?php echo $text['label-context']?>:
</td>
<td width='70%' class='vtable' align='left'>
<input class='formfld' type='text' name='context' maxlength='255' value="<?php echo $profile['context'];?>">
<input class='formfld' type='text' name='context' maxlength='255' value="<?php echo $profile['context'];?>" required='required'>
<br />
<?php echo $text['description-context']?>
</td>
@@ -151,7 +151,7 @@ function show_advanced_config() {
<?php echo $text['label-rtp_ip']?>:
</td>
<td class='vtable' align='left'>
<input class='formfld' type='text' name='rtp_ip' maxlength='255' value="<?php echo $profile['rtp_ip'];?>">
<input class='formfld' type='text' name='rtp_ip' maxlength='255' value="<?php echo $profile['rtp_ip'];?>" required='required'>
<br />
<?php echo $text['description-rtp_ip']?>
</td>
@@ -162,7 +162,7 @@ function show_advanced_config() {
<?php echo $text['label-ext_rtp_ip']?>:
</td>
<td class='vtable' align='left'>
<input class='formfld' type='text' name='ext_rtp_ip' maxlength='255' value="<?php echo $profile['ext_rtp_ip'];?>">
<input class='formfld' type='text' name='ext_rtp_ip' maxlength='255' value="<?php echo $profile['ext_rtp_ip'];?>" required='required'>
<br />
<?php echo $text['description-ext_rtp_ip']?>
</td>

View File

@@ -24,6 +24,7 @@
Contributor(s):
Ken Rice <krice@tollfreegateway.com>
Mark J Crane <markjcrane@fusionpbx.com>
Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
*/
include "root.php";
@@ -242,4 +243,4 @@ if ($fp) {
include "update_complete.php";
?>
?>