mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
Align properly the 'validation_error' icon in forms.
SVN:trunk[990]
This commit is contained in:
@@ -1057,7 +1057,7 @@ EOF
|
||||
{
|
||||
$bMandatory = 'true';
|
||||
}
|
||||
$sValidationField = "<span id=\"v_{$iId}\"></span>";
|
||||
$sValidationField = "<span class=\"form_validation\" id=\"v_{$iId}\"></span>";
|
||||
$sHelpText = $oAttDef->GetHelpOnEdition();
|
||||
$aEventsList = array();
|
||||
switch($oAttDef->GetEditClass())
|
||||
|
||||
@@ -56,7 +56,7 @@ class UIPasswordWidget
|
||||
$sConfirmPasswordValue = utils::ReadPostedParam("attr_{$sCode}_confirmed", '*****');
|
||||
$sChangedValue = (($sPasswordValue != '*****') || ($sConfirmPasswordValue != '*****')) ? 1 : 0;
|
||||
$sHtmlValue = '';
|
||||
$sHtmlValue = '<input type="password" maxlength="255" name="attr_'.$sCode.'" id="'.$this->iId.'" value="'.htmlentities($sPasswordValue, ENT_QUOTES, 'UTF-8').'"/> <span id="v_'.$this->iId.'"></span><br/>';
|
||||
$sHtmlValue = '<input type="password" maxlength="255" name="attr_'.$sCode.'" id="'.$this->iId.'" value="'.htmlentities($sPasswordValue, ENT_QUOTES, 'UTF-8').'"/> <span class="form_validation" id="v_'.$this->iId.'"></span><br/>';
|
||||
$sHtmlValue .= '<input type="password" maxlength="255" id="'.$this->iId.'_confirm" value="'.htmlentities($sConfirmPasswordValue, ENT_QUOTES, 'UTF-8').'" name="attr_'.$sCode.'_confirmed"/> '.Dict::S('UI:PasswordConfirm').' <input type="button" value="'.Dict::S('UI:Button:ResetPassword').'" onClick="ResetPwd(\''.$this->iId.'\');">';
|
||||
$sHtmlValue .= '<input type="hidden" id="'.$this->iId.'_changed" name="attr_'.$sCode.'_changed" value="'.$sChangedValue.'"/>';
|
||||
|
||||
|
||||
@@ -895,4 +895,8 @@ a.truncated {
|
||||
font-size:x-small;
|
||||
width: auto;
|
||||
max-width: 200px;
|
||||
}
|
||||
}
|
||||
span.form_validation {
|
||||
width:24px;
|
||||
text-align:center;
|
||||
}
|
||||
@@ -167,7 +167,7 @@ function ReportFieldValidationStatus(sFieldId, sFormId, bValid)
|
||||
oFormErrors['input_'+sFormId] = sFieldId;
|
||||
}
|
||||
// Visual feedback
|
||||
$('#v_'+sFieldId).html('<img src="../images/validation_error.png" />');
|
||||
$('#v_'+sFieldId).html('<img src="../images/validation_error.png" style="vertical-align:middle"/>');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -284,7 +284,7 @@ function ValidatePasswordField(id, sFormId)
|
||||
oFormErrors['input_'+sFormId] = id;
|
||||
}
|
||||
// Visual feedback
|
||||
$('#v_'+id).html('<img src="../images/validation_error.png" />');
|
||||
$('#v_'+id).html('<img src="../images/validation_error.png" style="vertical-align:middle"/>');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user