1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 12:30:56 +01:00

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
This commit is contained in:
Chad Little 2016-04-03 11:49:33 -07:00
parent 867c699fee
commit 4e7e204ae9

View file

@ -30,13 +30,14 @@ final class FundInitiativeEditController
$title = pht('Create Initiative'); $title = pht('Create Initiative');
$button_text = pht('Create Initiative'); $button_text = pht('Create Initiative');
$cancel_uri = $this->getApplicationURI(); $cancel_uri = $this->getApplicationURI();
$header_icon = 'fa-plus-square';
} else { } else {
$title = pht( $title = pht(
'Edit %s %s', 'Edit Initiative: %s',
$initiative->getMonogram(),
$initiative->getName()); $initiative->getName());
$button_text = pht('Save Changes'); $button_text = pht('Save Changes');
$cancel_uri = '/'.$initiative->getMonogram(); $cancel_uri = '/'.$initiative->getMonogram();
$header_icon = 'fa-pencil';
} }
$e_name = true; $e_name = true;
@ -230,20 +231,26 @@ final class FundInitiativeEditController
'/'.$initiative->getMonogram()); '/'.$initiative->getMonogram());
$crumbs->addTextCrumb(pht('Edit')); $crumbs->addTextCrumb(pht('Edit'));
} }
$crumbs->setBorder(true);
$box = id(new PHUIObjectBoxView()) $box = id(new PHUIObjectBoxView())
->setValidationException($validation_exception) ->setValidationException($validation_exception)
->setHeaderText($title) ->setHeaderText(pht('Initiative'))
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
->appendChild($form); ->appendChild($form);
return $this->buildApplicationPage( $header = id(new PHUIHeaderView())
array( ->setHeader($title)
$crumbs, ->setHeaderIcon($header_icon);
$box,
), $view = id(new PHUITwoColumnView())
array( ->setHeader($header)
'title' => $title, ->setFooter($box);
));
return $this->newPage()
->setTitle($title)
->setCrumbs($crumbs)
->appendChild($view);
} }
} }