@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update Fund edit page for new UI

Summary: Updates fund for new edit UI

Test Plan: Create Fund, Edit Fund

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D15595

+18 -11
+18 -11
src/applications/fund/controller/FundInitiativeEditController.php
··· 30 30 $title = pht('Create Initiative'); 31 31 $button_text = pht('Create Initiative'); 32 32 $cancel_uri = $this->getApplicationURI(); 33 + $header_icon = 'fa-plus-square'; 33 34 } else { 34 35 $title = pht( 35 - 'Edit %s %s', 36 - $initiative->getMonogram(), 36 + 'Edit Initiative: %s', 37 37 $initiative->getName()); 38 38 $button_text = pht('Save Changes'); 39 39 $cancel_uri = '/'.$initiative->getMonogram(); 40 + $header_icon = 'fa-pencil'; 40 41 } 41 42 42 43 $e_name = true; ··· 230 231 '/'.$initiative->getMonogram()); 231 232 $crumbs->addTextCrumb(pht('Edit')); 232 233 } 234 + $crumbs->setBorder(true); 233 235 234 236 $box = id(new PHUIObjectBoxView()) 235 237 ->setValidationException($validation_exception) 236 - ->setHeaderText($title) 238 + ->setHeaderText(pht('Initiative')) 239 + ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) 237 240 ->appendChild($form); 238 241 239 - return $this->buildApplicationPage( 240 - array( 241 - $crumbs, 242 - $box, 243 - ), 244 - array( 245 - 'title' => $title, 246 - )); 242 + $header = id(new PHUIHeaderView()) 243 + ->setHeader($title) 244 + ->setHeaderIcon($header_icon); 245 + 246 + $view = id(new PHUITwoColumnView()) 247 + ->setHeader($header) 248 + ->setFooter($box); 249 + 250 + return $this->newPage() 251 + ->setTitle($title) 252 + ->setCrumbs($crumbs) 253 + ->appendChild($view); 247 254 } 248 255 249 256 }