Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/controller/HeraldNewController.php
Show First 20 Lines • Show All 327 Lines • ▼ Show 20 Lines | private function newTargetForm( | ||||
foreach ($params as $key => $value) { | foreach ($params as $key => $value) { | ||||
$form->addHiddenInput($key, $value); | $form->addHiddenInput($key, $value); | ||||
} | } | ||||
$cancel_params = $params; | $cancel_params = $params; | ||||
unset($cancel_params['type']); | unset($cancel_params['type']); | ||||
$cancel_uri = $this->getApplicationURI('new/'); | $cancel_uri = $this->getApplicationURI('create/'); | ||||
$cancel_uri = new PhutilURI($cancel_uri, $params); | $cancel_uri = new PhutilURI($cancel_uri, $cancel_params); | ||||
valerio.bozzolan: In fact, this modification is totally cosmetic ↑
The important change is just this one ↓ | |||||
$form->appendChild( | $form->appendChild( | ||||
id(new AphrontFormSubmitControl()) | id(new AphrontFormSubmitControl()) | ||||
->setValue(pht('Continue')) | ->setValue(pht('Continue')) | ||||
->addCancelButton($cancel_uri, pht('Back'))); | ->addCancelButton($cancel_uri, pht('Back'))); | ||||
$form_box = id(new PHUIObjectBoxView()) | $form_box = id(new PHUIObjectBoxView()) | ||||
->setHeaderText($title) | ->setHeaderText($title) | ||||
->setFormErrors($errors) | ->setFormErrors($errors) | ||||
->setBackground(PHUIObjectBoxView::WHITE_CONFIG) | ->setBackground(PHUIObjectBoxView::WHITE_CONFIG) | ||||
->setForm($form); | ->setForm($form); | ||||
return $form_box; | return $form_box; | ||||
} | } | ||||
} | } |
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
In fact, this modification is totally cosmetic ↑
The important change is just this one ↓