Differential D15171 Diff 36648 src/applications/project/controller/PhabricatorProjectSubprojectWarningController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/controller/PhabricatorProjectSubprojectWarningController.php
| Show All 29 Lines | if ($request->isFormPost()) { | ||||
| return id(new AphrontRedirectResponse()) | return id(new AphrontRedirectResponse()) | ||||
| ->setURI($done_uri); | ->setURI($done_uri); | ||||
| } | } | ||||
| $doc_href = PhabricatorEnv::getDoclink('Projects User Guide'); | $doc_href = PhabricatorEnv::getDoclink('Projects User Guide'); | ||||
| $conversion_help = pht( | $conversion_help = pht( | ||||
| "Creating a project's first subproject **moves all ". | "Creating a project's first subproject **moves all ". | ||||
| "members** and **destroys all workboard columns**.". | "members** to become members of the subproject instead". | ||||
| "\n\n". | "\n\n". | ||||
| "See [[ %s | Projects User Guide ]] in the documentation for details. ". | "See [[ %s | Projects User Guide ]] in the documentation for details. ". | ||||
| "This process can not be undone.", | "This process can not be undone.", | ||||
| $doc_href); | $doc_href); | ||||
| return $this->newDialog() | return $this->newDialog() | ||||
| ->setTitle(pht('Convert to Parent Project')) | ->setTitle(pht('Convert to Parent Project')) | ||||
| ->appendChild(new PHUIRemarkupView($viewer, $conversion_help)) | ->appendChild(new PHUIRemarkupView($viewer, $conversion_help)) | ||||
| ->addCancelButton($cancel_uri) | ->addCancelButton($cancel_uri) | ||||
| ->addSubmitButton(pht('Convert Project')); | ->addSubmitButton(pht('Convert Project')); | ||||
| } | } | ||||
| } | } | ||||