@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.

Convert Slowvote Edit page to new UI

Summary: Minor, updates Slowvote editing page to new UI/header

Test Plan: Create a poll, edit a poll

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+16 -15
+16 -15
src/applications/slowvote/controller/PhabricatorSlowvoteEditController.php
··· 136 136 } 137 137 } 138 138 139 - $instructions = 140 - phutil_tag( 141 - 'p', 142 - array( 143 - 'class' => 'aphront-form-instructions', 144 - ), 145 - pht('Resolve issues and build consensus through '. 146 - 'protracted deliberation.')); 147 - 148 139 $form = id(new AphrontFormView()) 149 140 ->setUser($viewer) 150 - ->appendChild($instructions) 151 141 ->appendChild( 152 - id(new AphrontFormTextAreaControl()) 153 - ->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_SHORT) 142 + id(new AphrontFormTextControl()) 154 143 ->setLabel(pht('Question')) 155 144 ->setName('question') 156 145 ->setValue($v_question) ··· 218 207 $title = pht('Create Slowvote'); 219 208 $button = pht('Create'); 220 209 $cancel_uri = $this->getApplicationURI(); 210 + $header_icon = 'fa-plus-square'; 221 211 } else { 222 - $title = pht('Edit %s', 'V'.$poll->getID()); 212 + $title = pht('Edit Poll: %s', $poll->getQuestion()); 223 213 $button = pht('Save Changes'); 224 214 $cancel_uri = '/V'.$poll->getID(); 215 + $header_icon = 'fa-pencil'; 225 216 } 226 217 227 218 $policies = id(new PhabricatorPolicyQuery()) ··· 259 250 260 251 $crumbs = $this->buildApplicationCrumbs(); 261 252 $crumbs->addTextCrumb($title); 253 + $crumbs->setBorder(true); 262 254 263 255 $form_box = id(new PHUIObjectBoxView()) 264 - ->setHeaderText($title) 256 + ->setHeaderText(pht('Poll')) 265 257 ->setFormErrors($errors) 258 + ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) 266 259 ->setForm($form); 267 260 261 + $header = id(new PHUIHeaderView()) 262 + ->setHeader($title) 263 + ->setHeaderIcon($header_icon); 264 + 265 + $view = id(new PHUITwoColumnView()) 266 + ->setHeader($header) 267 + ->setFooter($form_box); 268 + 268 269 return $this->newPage() 269 270 ->setTitle($title) 270 271 ->setCrumbs($crumbs) 271 272 ->appendChild( 272 273 array( 273 - $form_box, 274 + $view, 274 275 )); 275 276 } 276 277