Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/view/ConpherencePeopleWidgetView.php
| Show All 15 Lines | public function render() { | ||||
| $handles = array_select_keys($handles, $handle_list); | $handles = array_select_keys($handles, $handle_list); | ||||
| $head_handles = mpull($head_handles, null, 'getName'); | $head_handles = mpull($head_handles, null, 'getName'); | ||||
| $handles = $head_handles + $handles; | $handles = $head_handles + $handles; | ||||
| $body = array(); | $body = array(); | ||||
| foreach ($handles as $handle) { | foreach ($handles as $handle) { | ||||
| $user_phid = $handle->getPHID(); | $user_phid = $handle->getPHID(); | ||||
| $remove_html = ''; | $remove_html = ''; | ||||
| if ($user_phid == $user->getPHID()) { | // Add the 'remove' icon next to all users. | ||||
| // The actual validation will be handled in ConpherenceUpdateController | |||||
| // instead. | |||||
| // if ($user_phid == $user->getPHID()) { | |||||
| $icon = id(new PHUIIconView()) | $icon = id(new PHUIIconView()) | ||||
| ->setIcon('fa-times lightbluetext'); | ->setIcon('fa-times lightbluetext'); | ||||
| $remove_html = javelin_tag( | $remove_html = javelin_tag( | ||||
| 'a', | 'a', | ||||
| array( | array( | ||||
| 'class' => 'remove', | 'class' => 'remove', | ||||
| 'sigil' => 'remove-person', | 'sigil' => 'remove-person', | ||||
| 'meta' => array( | 'meta' => array( | ||||
| 'remove_person' => $user_phid, | 'remove_person' => $user_phid, | ||||
| 'action' => 'remove_person', | 'action' => 'remove_person', | ||||
| ), | ), | ||||
| ), | ), | ||||
| $icon); | $icon); | ||||
| } | // } | ||||
| $body[] = phutil_tag( | $body[] = phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => 'person-entry grouped', | 'class' => 'person-entry grouped', | ||||
| ), | ), | ||||
| array( | array( | ||||
| phutil_tag( | phutil_tag( | ||||
| 'a', | 'a', | ||||
| Show All 19 Lines | |||||