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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user