Differential D14128 Diff 34129 src/applications/metamta/applicationpanel/PhabricatorMetaMTAApplicationEmailPanel.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/applicationpanel/PhabricatorMetaMTAApplicationEmailPanel.php
Show First 20 Lines • Show All 233 Lines • ▼ Show 20 Lines | $form = id(new AphrontFormView()) | ||||
->setUser($viewer) | ->setUser($viewer) | ||||
->appendChild( | ->appendChild( | ||||
id(new AphrontFormTextControl()) | id(new AphrontFormTextControl()) | ||||
->setLabel(pht('Email')) | ->setLabel(pht('Email')) | ||||
->setName('email') | ->setName('email') | ||||
->setValue($v_email) | ->setValue($v_email) | ||||
->setError($e_email)); | ->setError($e_email)); | ||||
if (PhabricatorSpacesNamespaceQuery::getViewerSpacesExist($viewer)) { | if (PhabricatorSpacesNamespaceQuery::getViewerActiveSpacesExist($viewer)) { | ||||
$form->appendControl( | $form->appendControl( | ||||
id(new AphrontFormSelectControl()) | id(new AphrontFormSelectControl()) | ||||
->setLabel(pht('Space')) | ->setLabel(pht('Space')) | ||||
->setName('spacePHID') | ->setName('spacePHID') | ||||
->setValue($v_space) | ->setValue($v_space) | ||||
->setError($e_space) | ->setError($e_space) | ||||
->setOptions( | ->setOptions( | ||||
PhabricatorSpacesNamespaceQuery::getSpaceOptionsForViewer( | PhabricatorSpacesNamespaceQuery::getSpaceOptionsForViewer( | ||||
▲ Show 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | $table->setColumnClasses( | ||||
'', | '', | ||||
'wide', | 'wide', | ||||
'action', | 'action', | ||||
'action', | 'action', | ||||
)); | )); | ||||
$table->setRowClasses($rowc); | $table->setRowClasses($rowc); | ||||
$table->setColumnVisibility( | $table->setColumnVisibility( | ||||
array( | array( | ||||
PhabricatorSpacesNamespaceQuery::getViewerSpacesExist($viewer), | PhabricatorSpacesNamespaceQuery::getViewerActiveSpacesExist($viewer), | ||||
true, | true, | ||||
$is_edit, | $is_edit, | ||||
$is_edit, | $is_edit, | ||||
)); | )); | ||||
return $table; | return $table; | ||||
} | } | ||||
} | } |