1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 10:22:42 +01:00
phorge-phorge/src/applications/project
Hafsteinn Baldvinsson fffc1e51d0 Inset view controller for inset elements of forms.
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
2012-03-15 17:10:38 -07:00
..
constants Simplify Project status field 2012-02-07 14:59:38 -08:00
controller Inset view controller for inset elements of forms. 2012-03-15 17:10:38 -07:00
editor/project Simplify Project status field 2012-02-07 14:59:38 -08:00
exception/namecollison Provide wiki pages for projects 2011-12-20 14:03:12 -08:00
query/project Change All Search Boxes into Jump Navs 2012-03-05 19:52:26 -08:00
storage Add "final" to (almost) everything else 2012-03-13 16:21:04 -07:00