Differential D14822 Diff 35837 src/applications/transactions/view/PhabricatorApplicationEditHTTPParameterHelpView.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/view/PhabricatorApplicationEditHTTPParameterHelpView.php
Show All 33 Lines | public function render() { | ||||
$object = $this->getObject(); | $object = $this->getObject(); | ||||
$fields = $this->getFields(); | $fields = $this->getFields(); | ||||
$uri = 'https://your.install.com/application/edit/'; | $uri = 'https://your.install.com/application/edit/'; | ||||
// Remove fields which do not expose an HTTP parameter type. | // Remove fields which do not expose an HTTP parameter type. | ||||
$types = array(); | $types = array(); | ||||
foreach ($fields as $key => $field) { | foreach ($fields as $key => $field) { | ||||
if (!$field->shouldGenerateTransactionsFromSubmit()) { | |||||
unset($fields[$key]); | |||||
continue; | |||||
} | |||||
$type = $field->getHTTPParameterType(); | $type = $field->getHTTPParameterType(); | ||||
if ($type === null) { | if ($type === null) { | ||||
unset($fields[$key]); | unset($fields[$key]); | ||||
continue; | continue; | ||||
} | } | ||||
$types[$type->getTypeName()] = $type; | $types[$type->getTypeName()] = $type; | ||||
} | } | ||||
$intro = pht(<<<EOTEXT | $intro = pht(<<<EOTEXT | ||||
When creating objects in the web interface, you can use HTTP parameters to | When creating objects in the web interface, you can use HTTP parameters to | ||||
prefill fields in the form. This allows you to quickly create a link to a | prefill fields in the form. This allows you to quickly create a link to a | ||||
form with some of the fields already filled in with default values. | form with some of the fields already filled in with default values. | ||||
▲ Show 20 Lines • Show All 259 Lines • Show Last 20 Lines |