mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
Portal: enable adding dependent attributes in the request creation form
SVN:trunk[2270]
This commit is contained in:
@@ -218,8 +218,10 @@ EOF
|
|||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
// For Wizard helper to process the ajax replies
|
||||||
|
$this->add('<div id="ajax_content"></div>');
|
||||||
|
}
|
||||||
|
|
||||||
public function SetCurrentTab($sTabLabel = '')
|
public function SetCurrentTab($sTabLabel = '')
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -250,8 +250,9 @@ EOF
|
|||||||
}
|
}
|
||||||
$aArgs = array('this' => $oRequest);
|
$aArgs = array('this' => $oRequest);
|
||||||
|
|
||||||
$aFieldsMap[$sAttCode] = 'attr_'.$sAttCode;
|
$sInputId = 'attr_'.$sAttCode;
|
||||||
$sValue = $oRequest->GetFormElementForField($oP, get_class($oRequest), $sAttCode, $oAttDef, $value, '', 'attr_'.$sAttCode, '', $iFlags, $aArgs);
|
$aFieldsMap[$sAttCode] = $sInputId;
|
||||||
|
$sValue = "<span id=\"field_{$sInputId}\">".$oRequest->GetFormElementForField($oP, get_class($oRequest), $sAttCode, $oAttDef, $value, '', 'attr_'.$sAttCode, '', $iFlags, $aArgs).'</span>';
|
||||||
$aDetails[] = array('label' => $oAttDef->GetLabel(), 'value' => $sValue);
|
$aDetails[] = array('label' => $oAttDef->GetLabel(), 'value' => $sValue);
|
||||||
}
|
}
|
||||||
$aDetails[] = array('label' => Dict::S('Class:Ticket/Attribute:ticket_log'), 'value' => '<textarea id="attr_moreinfo" class="resizable ui-resizable" cols="40" rows="8" name="attr_moreinfo" title="" style="margin: 0px; resize: none; position: static; display: block; height: 145px; width: 339px;">'.$sDescription.'</textarea>');
|
$aDetails[] = array('label' => Dict::S('Class:Ticket/Attribute:ticket_log'), 'value' => '<textarea id="attr_moreinfo" class="resizable ui-resizable" cols="40" rows="8" name="attr_moreinfo" title="" style="margin: 0px; resize: none; position: static; display: block; height: 145px; width: 339px;">'.$sDescription.'</textarea>');
|
||||||
|
|||||||
Reference in New Issue
Block a user