Differential D13200 Diff 31965 src/applications/harbormaster/controller/HarbormasterPlanRunController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/controller/HarbormasterPlanRunController.php
| Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | $form = id(new PHUIFormLayoutView()) | ||||
| "Enter the name of a commit or revision to run this plan on (for ". | "Enter the name of a commit or revision to run this plan on (for ". | ||||
| "example, `rX123456` or `D123`).\n\n". | "example, `rX123456` or `D123`).\n\n". | ||||
| "For more detailed output, you can also run manual builds from ". | "For more detailed output, you can also run manual builds from ". | ||||
| "the command line:\n\n". | "the command line:\n\n". | ||||
| " phabricator/ $ ./bin/harbormaster build <object> --plan %s", | " phabricator/ $ ./bin/harbormaster build <object> --plan %s", | ||||
| $plan->getID())) | $plan->getID())) | ||||
| ->appendChild( | ->appendChild( | ||||
| id(new AphrontFormTextControl()) | id(new AphrontFormTextControl()) | ||||
| ->setLabel('Buildable Name') | ->setLabel(pht('Buildable Name')) | ||||
| ->setName('buildablePHID') | ->setName('buildablePHID') | ||||
| ->setError($e_name) | ->setError($e_name) | ||||
| ->setValue($v_name)); | ->setValue($v_name)); | ||||
| $dialog = id(new AphrontDialogView()) | $dialog = id(new AphrontDialogView()) | ||||
| ->setWidth(AphrontDialogView::WIDTH_FULL) | ->setWidth(AphrontDialogView::WIDTH_FULL) | ||||
| ->setUser($viewer) | ->setUser($viewer) | ||||
| ->setTitle($title) | ->setTitle($title) | ||||
| ->appendChild($form) | ->appendChild($form) | ||||
| ->addCancelButton($cancel_uri) | ->addCancelButton($cancel_uri) | ||||
| ->addSubmitButton($save_button); | ->addSubmitButton($save_button); | ||||
| return id(new AphrontDialogResponse())->setDialog($dialog); | return id(new AphrontDialogResponse())->setDialog($dialog); | ||||
| } | } | ||||
| } | } | ||||