mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 03:50:54 +01:00
Clean up Maniphest Batch Editor UI
Summary: Finishes up work on PHUIInsetForm, cleans up the UI a bit when editing multiple tasks Test Plan: Edit multiple tasks, apply some new projects, still works as expected. {F236044} Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D10881
This commit is contained in:
parent
15ab2141da
commit
385ae2a787
2 changed files with 8 additions and 10 deletions
|
@ -114,12 +114,9 @@ final class ManiphestBatchEditController extends ManiphestController {
|
|||
'name' => 'actions',
|
||||
'id' => 'batch-form-actions',
|
||||
)));
|
||||
$form->appendChild(
|
||||
phutil_tag('p', array(), pht('These tasks will be edited:')));
|
||||
$form->appendChild($list);
|
||||
$form->appendChild(
|
||||
id(new PHUIFormInsetView())
|
||||
->setTitle('Actions')
|
||||
->setTitle(pht('Actions'))
|
||||
->setRightButton(javelin_tag(
|
||||
'a',
|
||||
array(
|
||||
|
@ -146,18 +143,22 @@ final class ManiphestBatchEditController extends ManiphestController {
|
|||
$crumbs = $this->buildApplicationCrumbs();
|
||||
$crumbs->addTextCrumb($title);
|
||||
|
||||
$task_box = id(new PHUIObjectBoxView())
|
||||
->setHeaderText(pht('Selected Tasks'))
|
||||
->appendChild($list);
|
||||
|
||||
$form_box = id(new PHUIObjectBoxView())
|
||||
->setHeaderText(pht('Batch Edit Tasks'))
|
||||
->setHeaderText(pht('Batch Editor'))
|
||||
->setForm($form);
|
||||
|
||||
return $this->buildApplicationPage(
|
||||
array(
|
||||
$crumbs,
|
||||
$task_box,
|
||||
$form_box,
|
||||
),
|
||||
array(
|
||||
'title' => $title,
|
||||
'device' => false,
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
@ -69,6 +69,7 @@ final class PHUIFormInsetView extends AphrontView {
|
|||
'style' => 'float: right;',
|
||||
),
|
||||
$this->rightButton);
|
||||
$right_button = phutil_tag_div('grouped', $right_button);
|
||||
}
|
||||
|
||||
if ($this->description) {
|
||||
|
@ -76,10 +77,6 @@ final class PHUIFormInsetView extends AphrontView {
|
|||
'p',
|
||||
array(),
|
||||
$this->description);
|
||||
|
||||
if ($right_button) {
|
||||
$desc = hsprintf('%s<div style="clear: both;"></div>', $desc);
|
||||
}
|
||||
}
|
||||
|
||||
$div_attributes = $this->divAttributes;
|
||||
|
|
Loading…
Reference in a new issue