mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
- Display the description on the field label when modifying/creating an object.
SVN:trunk[449]
This commit is contained in:
@@ -202,7 +202,7 @@ abstract class cmdbAbstractObject extends CMDBObject
|
|||||||
{
|
{
|
||||||
$sDisplayValue = $this->GetAsHTML($sAttCode);
|
$sDisplayValue = $this->GetAsHTML($sAttCode);
|
||||||
}
|
}
|
||||||
$aDetails[] = array('label' => MetaModel::GetLabel($sClass, $sAttCode), 'value' => $sDisplayValue);
|
$aDetails[] = array('label' => '<span title="'.MetaModel::GetDescription($sClass, $sAttCode).'">'.MetaModel::GetLabel($sClass, $sAttCode).'</span>', 'value' => $sDisplayValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$sHtml .= $oPage->GetDetails($aDetails);
|
$sHtml .= $oPage->GetDetails($aDetails);
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ class UIWizard
|
|||||||
$oDefaultValuesSet = $oAttDef->GetDefaultValue(/* $oObject->ToArgs() */); // @@@ TO DO: get the object's current value if the object exists
|
$oDefaultValuesSet = $oAttDef->GetDefaultValue(/* $oObject->ToArgs() */); // @@@ TO DO: get the object's current value if the object exists
|
||||||
$sHTMLValue = cmdbAbstractObject::GetFormElementForField($this->m_oPage, $this->m_sClass, $sAttCode, $oAttDef, $oDefaultValuesSet, '', "att_$iMaxInputId", '', $iOptions, $aArgs);
|
$sHTMLValue = cmdbAbstractObject::GetFormElementForField($this->m_oPage, $this->m_sClass, $sAttCode, $oAttDef, $oDefaultValuesSet, '', "att_$iMaxInputId", '', $iOptions, $aArgs);
|
||||||
$aFieldsMap["att_$iMaxInputId"] = $sAttCode;
|
$aFieldsMap["att_$iMaxInputId"] = $sAttCode;
|
||||||
$aDetails[] = array('label' => $oAttDef->GetLabel().$sFieldFlag, 'value' => "<span id=\"field_att_$iMaxInputId\">$sHTMLValue</span>");
|
$aDetails[] = array('label' => '<span title="'.$oAttDef->GetDescription().'">'.$oAttDef->GetLabel().$sFieldFlag.'</span>', 'value' => "<span id=\"field_att_$iMaxInputId\">$sHTMLValue</span>");
|
||||||
if ($oAttDef->GetValuesDef() != null)
|
if ($oAttDef->GetValuesDef() != null)
|
||||||
{
|
{
|
||||||
$sJSHandlerCode .= "\toWizardHelper.RequestAllowedValues('$sAttCode');\n";
|
$sJSHandlerCode .= "\toWizardHelper.RequestAllowedValues('$sAttCode');\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user