Page MenuHomePhabricator

Convert specialcreatecollaborationhub to use ooui for consistency with other widgets
Closed, ResolvedPublic

Description

This is as simple as getting rid of

protected function alterForm( HTMLForm $form ) {
	$form->setDisplayFormat( 'div' );
	$form->setWrapperLegend( false );
}

and replacing it with:

protected function getDisplayFormat() {
	return 'ooui';
}

...unfortunately hide-if doesn't currently work in ooui (T141558), so the source field shows up even when there's no content import selected.

Event Timeline

Isarra created this task.Jul 28 2016, 7:37 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 28 2016, 7:37 PM

Change 302971 had a related patch set uploaded (by Isarra):
Refactor CollaborationHubContent etc to reflect Hubs as only mainpages

https://gerrit.wikimedia.org/r/302971

Isarra closed this task as Resolved.Aug 4 2016, 10:40 PM

It uses it. We should still keep an eye on T141558 since it kind of needs that, of course.

Change 302971 merged by jenkins-bot:
Refactor CollaborationHubContent etc to reflect Hubs as only mainpages

https://gerrit.wikimedia.org/r/302971