@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 Calendar Edit for new UI

Summary: Updates Calendar Edit UI with new header layout

Test Plan: New Event, Public, Recurring, Edit Event

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+24 -17
+24 -17
src/applications/calendar/controller/PhabricatorCalendarEventEditController.php
··· 69 69 $recurrence_end_date_value->setOptional(true); 70 70 71 71 $submit_label = pht('Create'); 72 - $page_title = pht('Create Event'); 72 + $title = pht('Create Event'); 73 + $header_icon = 'fa-plus-square'; 73 74 $redirect = 'created'; 74 75 $subscribers = array(); 75 76 $invitees = array($user_phid); ··· 121 122 ->setOptional(true); 122 123 123 124 $submit_label = pht('Update'); 124 - $page_title = pht('Update Event'); 125 + $title = pht('Edit Event: %s', $event->getName()); 126 + $header_icon = 'fa-pencil'; 125 127 126 128 $subscribers = PhabricatorSubscribersQuery::loadSubscribersForPHID( 127 129 $event->getPHID()); ··· 540 542 541 543 if ($request->isAjax()) { 542 544 return $this->newDialog() 543 - ->setTitle($page_title) 545 + ->setTitle($title) 544 546 ->setWidth(AphrontDialogView::WIDTH_FULL) 545 547 ->appendForm($form) 546 548 ->addCancelButton($cancel_uri) ··· 554 556 $form->appendChild($submit); 555 557 556 558 $form_box = id(new PHUIObjectBoxView()) 557 - ->setHeaderText($page_title) 559 + ->setHeaderText(pht('Event')) 560 + ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) 561 + ->setValidationException($validation_exception) 558 562 ->setForm($form); 559 563 560 564 $crumbs = $this->buildApplicationCrumbs(); 561 565 562 566 if (!$this->isCreate()) { 563 567 $crumbs->addTextCrumb('E'.$event->getId(), '/E'.$event->getId()); 568 + $crumb_title = pht('Edit Event'); 569 + } else { 570 + $crumb_title = pht('Create Event'); 564 571 } 565 572 566 - $crumbs->addTextCrumb($page_title); 573 + $crumbs->addTextCrumb($crumb_title); 574 + $crumbs->setBorder(true); 575 + 576 + $header = id(new PHUIHeaderView()) 577 + ->setHeader($title) 578 + ->setHeaderIcon($header_icon); 567 579 568 - $object_box = id(new PHUIObjectBoxView()) 569 - ->setHeaderText($page_title) 570 - ->setValidationException($validation_exception) 571 - ->appendChild($form); 580 + $view = id(new PHUITwoColumnView()) 581 + ->setHeader($header) 582 + ->setFooter($form_box); 572 583 573 - return $this->buildApplicationPage( 574 - array( 575 - $crumbs, 576 - $object_box, 577 - ), 578 - array( 579 - 'title' => $page_title, 580 - )); 584 + return $this->newPage() 585 + ->setTitle($title) 586 + ->setCrumbs($crumbs) 587 + ->appendChild($view); 581 588 } 582 589 583 590