From 7a5ec015d9f0578f4825722f258ba22855e29bf0 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 8 Feb 2012 09:44:22 -0800 Subject: [PATCH] Split "Create Another Task" button into "Similar Task" and "Empty Task" Summary: Looping on this interface is pretty useful but you don't always want to keep the projects/owners. Test Plan: Clicked both buttons. Reviewers: btrahan Reviewed By: btrahan CC: anjali, aran, epriestley Differential Revision: https://secure.phabricator.com/D1593 --- .../taskdetail/ManiphestTaskDetailController.php | 13 +++++++++++-- webroot/rsrc/css/aphront/context-bar.css | 9 +++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/applications/maniphest/controller/taskdetail/ManiphestTaskDetailController.php b/src/applications/maniphest/controller/taskdetail/ManiphestTaskDetailController.php index 34d5873278..560472e574 100644 --- a/src/applications/maniphest/controller/taskdetail/ManiphestTaskDetailController.php +++ b/src/applications/maniphest/controller/taskdetail/ManiphestTaskDetailController.php @@ -1,7 +1,7 @@ '); } else if ($workflow == 'create') { $context_bar = new AphrontContextBarView(); + $context_bar->addButton(''); $context_bar->addButton( phutil_render_tag( 'a', @@ -232,7 +233,15 @@ class ManiphestTaskDetailController extends ManiphestController { 'href' => '/maniphest/task/create/?template='.$task->getID(), 'class' => 'green button', ), - 'Create Another Task')); + 'Similar Task')); + $context_bar->addButton( + phutil_render_tag( + 'a', + array( + 'href' => '/maniphest/task/create/', + 'class' => 'green button', + ), + 'Empty Task')); $context_bar->appendChild('New task created.'); } diff --git a/webroot/rsrc/css/aphront/context-bar.css b/webroot/rsrc/css/aphront/context-bar.css index d8f2692601..c9356ce08d 100644 --- a/webroot/rsrc/css/aphront/context-bar.css +++ b/webroot/rsrc/css/aphront/context-bar.css @@ -21,3 +21,12 @@ .aphront-contextbar-buttons { float: right; } + +.aphront-contextbar-buttons label { + font-weight: bold; + color: #666666; +} + +.aphront-contextbar-buttons a { + margin: 0 0 0 .5em; +}