@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 Countdown edit page for new UI

Summary: Modernizes Countdown edit page

Test Plan: New countdown, edit countdown

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

authored by

Chad Little and committed by
chad
a22d37f4 25c41013

+17 -5
+17 -5
src/applications/countdown/controller/PhabricatorCountdownEditController.php
··· 8 8 $id = $request->getURIData('id'); 9 9 10 10 if ($id) { 11 - $page_title = pht('Edit Countdown'); 12 11 $countdown = id(new PhabricatorCountdownQuery()) 13 12 ->setViewer($viewer) 14 13 ->withIDs(array($id)) ··· 28 27 $countdown->getPHID(), 29 28 PhabricatorProjectObjectHasProjectEdgeType::EDGECONST); 30 29 $v_projects = array_reverse($v_projects); 30 + $title = pht('Edit Countdown: %s', $countdown->getTitle()); 31 31 } else { 32 - $page_title = pht('Create Countdown'); 32 + $title = pht('Create Countdown'); 33 33 $countdown = PhabricatorCountdown::initializeNewCountdown($viewer); 34 34 $date_value = AphrontFormDateControlValue::newFromEpoch( 35 35 $viewer, PhabricatorTime::getNow()); ··· 116 116 } 117 117 118 118 $crumbs = $this->buildApplicationCrumbs(); 119 + $crumbs->setBorder(true); 119 120 120 121 $cancel_uri = '/countdown/'; 121 122 if ($countdown->getID()) { ··· 123 124 $crumbs->addTextCrumb('C'.$countdown->getID(), $cancel_uri); 124 125 $crumbs->addTextCrumb(pht('Edit')); 125 126 $submit_label = pht('Save Changes'); 127 + $header_icon = 'fa-pencil'; 126 128 } else { 127 129 $crumbs->addTextCrumb(pht('Create Countdown')); 128 130 $submit_label = pht('Create Countdown'); 131 + $header_icon = 'fa-plus-square'; 129 132 } 130 133 131 134 $policies = id(new PhabricatorPolicyQuery()) ··· 180 183 ->setValue($submit_label)); 181 184 182 185 $form_box = id(new PHUIObjectBoxView()) 183 - ->setHeaderText($page_title) 186 + ->setHeaderText(pht('Countdown')) 184 187 ->setFormErrors($errors) 188 + ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) 185 189 ->setForm($form); 186 190 191 + $header = id(new PHUIHeaderView()) 192 + ->setHeader($title) 193 + ->setHeaderIcon($header_icon); 194 + 195 + $view = id(new PHUITwoColumnView()) 196 + ->setHeader($header) 197 + ->setFooter($form_box); 198 + 187 199 return $this->newPage() 188 - ->setTitle($page_title) 200 + ->setTitle($title) 189 201 ->setCrumbs($crumbs) 190 202 ->appendChild( 191 203 array( 192 - $form_box, 204 + $view, 193 205 )); 194 206 } 195 207