Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/field/PhabricatorCustomFieldList.php
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | public function appendFieldsToForm(AphrontFormView $form) { | ||||
} else { | } else { | ||||
$handles = array(); | $handles = array(); | ||||
} | } | ||||
foreach ($enabled as $field_key => $field) { | foreach ($enabled as $field_key => $field) { | ||||
$field_handles = array_select_keys($handles, $phids[$field_key]); | $field_handles = array_select_keys($handles, $phids[$field_key]); | ||||
$instructions = $field->getInstructionsForEdit(); | $instructions = $field->getInstructionsForEdit(); | ||||
if (strlen($instructions)) { | if (phutil_nonempty_string($instructions)) { | ||||
$form->appendRemarkupInstructions($instructions); | $form->appendRemarkupInstructions($instructions); | ||||
} | } | ||||
$form->appendChild($field->renderEditControl($field_handles)); | $form->appendChild($field->renderEditControl($field_handles)); | ||||
} | } | ||||
} | } | ||||
public function appendFieldsToPropertyList( | public function appendFieldsToPropertyList( | ||||
▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0