Summary:
T937 suggests 'inset' could have its own view controller.
It has the following methods:
- setTitle for title
- setRightbutton if you have to place something (preferably a button)
on the right side of the form
- setDescription if you want to describe what it does
- setContent for the main content
- addDivAttributes REALLY not sure about this one but it had to be included
because of a single controller (see owners/controller/edit/PhabricatorOwnersEditController.php:238)
- appendChild works as usual if your form is complex but you still want to remove
->appendChild('<div class..') ->appendChild('</div>');
It might be an overkill so maybe some could be dropped:
- addDivAttributes() and just rewrite how PhabricatorOwnersEditController.php works
- setContent() and use appendChild for the main content?
Test Plan:
- Looked at the controllers in phabricator
- Changed the controller
- Opened the page in another tab
- If something didnd't look the same I fixed it.
Reviewers: epriestley
Reviewed By: epriestley
CC: aran, epriestley
Differential Revision: https://secure.phabricator.com/D1926
41 lines
2.0 KiB
PHP
41 lines
2.0 KiB
PHP
<?php
|
|
/**
|
|
* This file is automatically generated. Lint this module to rebuild it.
|
|
* @generated
|
|
*/
|
|
|
|
|
|
|
|
phutil_require_module('phabricator', 'aphront/response/404');
|
|
phutil_require_module('phabricator', 'aphront/response/redirect');
|
|
phutil_require_module('phabricator', 'applications/files/storage/file');
|
|
phutil_require_module('phabricator', 'applications/files/transform');
|
|
phutil_require_module('phabricator', 'applications/phid/handle/data');
|
|
phutil_require_module('phabricator', 'applications/project/constants/status');
|
|
phutil_require_module('phabricator', 'applications/project/constants/transaction');
|
|
phutil_require_module('phabricator', 'applications/project/controller/base');
|
|
phutil_require_module('phabricator', 'applications/project/editor/project');
|
|
phutil_require_module('phabricator', 'applications/project/storage/affiliation');
|
|
phutil_require_module('phabricator', 'applications/project/storage/profile');
|
|
phutil_require_module('phabricator', 'applications/project/storage/project');
|
|
phutil_require_module('phabricator', 'applications/project/storage/transaction');
|
|
phutil_require_module('phabricator', 'infrastructure/celerity/api');
|
|
phutil_require_module('phabricator', 'infrastructure/javelin/api');
|
|
phutil_require_module('phabricator', 'infrastructure/javelin/markup');
|
|
phutil_require_module('phabricator', 'view/control/tokenizer');
|
|
phutil_require_module('phabricator', 'view/form/base');
|
|
phutil_require_module('phabricator', 'view/form/control/file');
|
|
phutil_require_module('phabricator', 'view/form/control/select');
|
|
phutil_require_module('phabricator', 'view/form/control/submit');
|
|
phutil_require_module('phabricator', 'view/form/control/text');
|
|
phutil_require_module('phabricator', 'view/form/control/textarea');
|
|
phutil_require_module('phabricator', 'view/form/control/tokenizer');
|
|
phutil_require_module('phabricator', 'view/form/error');
|
|
phutil_require_module('phabricator', 'view/form/inset');
|
|
phutil_require_module('phabricator', 'view/layout/panel');
|
|
|
|
phutil_require_module('phutil', 'utils');
|
|
|
|
|
|
phutil_require_source('PhabricatorProjectProfileEditController.php');
|