@@ -1671,7 +1671,11 @@ function display_configuration_parameter(
16711671 $ html = '<div class="form-group"> ' ;
16721672 $ html .= '<label class="col-sm-6 control-label"> ' .$ parameterName .'</label> ' ;
16731673 if ($ installType == INSTALL_TYPE_UPDATE && $ displayWhenUpdate ) {
1674- $ html .= '<input type="hidden" name=" ' .$ formFieldName .'" value=" ' .api_htmlentities ($ parameterValue , ENT_QUOTES ).'" /> ' .$ parameterValue ;
1674+ $ html .= Display::input (
1675+ 'hidden ' ,
1676+ $ formFieldName ,
1677+ api_htmlentities ($ parameterValue , ENT_QUOTES )
1678+ ).$ parameterValue ;
16751679 } else {
16761680 $ hiddenPasswordClass = '' ;
16771681 $ eyeForPassword = '' ;
@@ -1680,13 +1684,24 @@ function display_configuration_parameter(
16801684 /* show/hide admin password in step 5*/
16811685 $ hiddenPasswordClass = 'inputShowPwd ' ;
16821686 $ inputType = 'password ' ;
1683- $ eyeForPassword =
1684- '<input type="checkbox" id="showPassword" class="hidden"> ' .'<label for="showPassword"> ' .
1685- Display::returnFontAwesomeIcon ('eye ' , null , true , 'showPasswordEye ' ).
1686- '</label> ' ;
1687+ $ eyeForPassword = PHP_EOL
1688+ .'<input type="checkbox" id="showPassword" class="hidden"> '
1689+ .'<label for="showPassword" style="cursor: pointer;"> '
1690+ .Display::returnFontAwesomeIcon ('eye ' , null , true , 'showPasswordEye ' )
1691+ .'</label> ' ;
16871692 }
1688- $ html .= '<div class="col-sm-6 ' .$ hiddenPasswordClass .'"><input class="form-control" type=" ' .$ inputType .'" size=" ' .FORM_FIELD_DISPLAY_LENGTH .'" maxlength=" ' .MAX_FORM_FIELD_LENGTH .'" name=" ' .$ formFieldName .'" value=" ' .api_htmlentities ($ parameterValue ,
1689- ENT_QUOTES ).'" /> ' .$ eyeForPassword ."</div> " ;
1693+ $ html .= '<div class="col-sm-6 ' .$ hiddenPasswordClass .'"> '
1694+ .Display::input (
1695+ $ inputType ,
1696+ $ formFieldName ,
1697+ api_htmlentities ($ parameterValue , ENT_QUOTES ),
1698+ [
1699+ 'class ' => 'form-control ' ,
1700+ 'size ' => FORM_FIELD_DISPLAY_LENGTH ,
1701+ 'maxlength ' => MAX_FORM_FIELD_LENGTH
1702+ ]
1703+ )
1704+ .$ eyeForPassword ."</div> " ;
16901705 }
16911706 $ html .= "</div> " ;
16921707
0 commit comments