1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-03 11:21:01 +01:00

A few Macro bugs

Summary: Consistent look for panels, test for mobile, forms consistency

Test Plan: test Macro on web and iOS sim

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5959
This commit is contained in:
Chad Little 2013-05-17 16:01:19 -07:00
parent 07ad4d154c
commit f2efda75b5
3 changed files with 6 additions and 9 deletions

View file

@ -156,6 +156,7 @@ final class PhabricatorMacroEditController
$form
->setEncType('multipart/form-data')
->setFlexible(true)
->appendChild(
id(new AphrontFormTextControl())
->setLabel(pht('Name'))
@ -219,7 +220,7 @@ final class PhabricatorMacroEditController
if ($macro->getID()) {
$title = pht('Edit Image Macro');
$crumb = pht('Edit');
$crumb = pht('Edit Macro');
$crumbs->addCrumb(
id(new PhabricatorCrumbView())
@ -227,7 +228,7 @@ final class PhabricatorMacroEditController
->setName(pht('Macro "%s"', $macro->getName())));
} else {
$title = pht('Create Image Macro');
$crumb = pht('Create');
$crumb = pht('Create Macro');
}
$crumbs->addCrumb(
@ -266,17 +267,11 @@ final class PhabricatorMacroEditController
$upload = array($upload_header, $upload_form);
}
$panel = new AphrontPanelView();
$panel->setHeader(pht('Create New Macro'));
$panel->setNoBackground();
$panel->appendChild($form);
$panel->setWidth(AphrontPanelView::WIDTH_FORM);
return $this->buildApplicationPage(
array(
$crumbs,
$error_view,
$panel,
$form,
$upload,
),
array(

View file

@ -67,6 +67,7 @@ final class PhabricatorMacroListController
$filter_form = id(new AphrontFormView())
->setMethod('GET')
->setUser($request->getUser())
->setNoShading(true)
->appendChild(
id(new AphrontFormTextControl())
->setName('name')

View file

@ -105,6 +105,7 @@ final class PhabricatorMacroViewController
),
array(
'title' => $title_short,
'device' => true,
));
}