diff --git a/src/applications/paste/controller/base/__init__.php b/src/applications/paste/controller/base/__init__.php new file mode 100644 index 0000000000..b488b10f35 --- /dev/null +++ b/src/applications/paste/controller/base/__init__.php @@ -0,0 +1,15 @@ +getRequest(); + $user = $request->getUser(); + + $form = new AphrontFormView(); + $form + ->setUser($user) + ->setAction($request->getRequestURI()->getPath()) + ->appendChild( + id(new AphrontFormTextControl()) + ->setLabel('Title') + ->setName('title')) + ->appendChild( + id(new AphrontFormTextAreaControl()) + ->setLabel('Text') + ->setName('text')) + ->appendChild( + id(new AphrontFormSubmitControl()) + ->addCancelButton('/paste/') + ->setValue('Create Paste')); + + $panel = new AphrontPanelView(); + $panel->setWidth(AphrontPanelView::WIDTH_FULL); + $panel->setHeader("Create a Paste"); + $panel->appendChild($form); + + return $this->buildStandardPageResponse( + $panel, + array( + 'title' => 'Paste Creation', + 'tab' => 'create', + )); + } +} \ No newline at end of file diff --git a/src/applications/paste/controller/create/__init__.php b/src/applications/paste/controller/create/__init__.php new file mode 100644 index 0000000000..0e297abd04 --- /dev/null +++ b/src/applications/paste/controller/create/__init__.php @@ -0,0 +1,12 @@ +buildStandardPageResponse( + null, + array( + 'title' => 'Paste', + 'tab' => 'home', + )); + } +} \ No newline at end of file diff --git a/src/applications/paste/controller/home/__init__.php b/src/applications/paste/controller/home/__init__.php new file mode 100644 index 0000000000..65db4d0b96 --- /dev/null +++ b/src/applications/paste/controller/home/__init__.php @@ -0,0 +1,12 @@ +