Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15466941
D17305.id41616.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D17305.id41616.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -9,7 +9,7 @@
'names' => array(
'conpherence.pkg.css' => 'e25569a9',
'conpherence.pkg.js' => '6249a1cf',
- 'core.pkg.css' => '22581832',
+ 'core.pkg.css' => '022cdeed',
'core.pkg.js' => '1fa7c0c5',
'darkconsole.pkg.js' => 'e7393ebb',
'differential.pkg.css' => '4815647b',
@@ -134,7 +134,7 @@
'rsrc/css/phui/phui-basic-nav-view.css' => '3d4b207b',
'rsrc/css/phui/phui-big-info-view.css' => 'bd903741',
'rsrc/css/phui/phui-box.css' => '269cbc99',
- 'rsrc/css/phui/phui-button.css' => '00ddac15',
+ 'rsrc/css/phui/phui-button.css' => '7eaff361',
'rsrc/css/phui/phui-chart.css' => '6bf6f78e',
'rsrc/css/phui/phui-cms.css' => 'be43c8a8',
'rsrc/css/phui/phui-comment-form.css' => '48fbd65d',
@@ -841,7 +841,7 @@
'phui-basic-nav-view-css' => '3d4b207b',
'phui-big-info-view-css' => 'bd903741',
'phui-box-css' => '269cbc99',
- 'phui-button-css' => '00ddac15',
+ 'phui-button-css' => '7eaff361',
'phui-calendar-css' => '477acfaa',
'phui-calendar-day-css' => '572b1893',
'phui-calendar-list-css' => 'eb5c774b',
diff --git a/src/applications/search/controller/PhabricatorApplicationSearchController.php b/src/applications/search/controller/PhabricatorApplicationSearchController.php
--- a/src/applications/search/controller/PhabricatorApplicationSearchController.php
+++ b/src/applications/search/controller/PhabricatorApplicationSearchController.php
@@ -169,12 +169,15 @@
}
$submit = id(new AphrontFormSubmitControl())
- ->setValue(pht('Execute Query'));
+ ->setValue(pht('Search'));
if ($run_query && !$named_query && $user->isLoggedIn()) {
- $submit->addCancelButton(
- '/search/edit/'.$saved_query->getQueryKey().'/',
- pht('Save Custom Query...'));
+ $save_button = id(new PHUIButtonView())
+ ->setTag('a')
+ ->setHref('/search/edit/'.$saved_query->getQueryKey().'/')
+ ->setText(pht('Save Query'))
+ ->setIcon('fa-floppy-o');
+ $submit->addButton($save_button);
}
// TODO: A "Create Dashboard Panel" action goes here somewhere once
diff --git a/src/view/form/control/AphrontFormSubmitControl.php b/src/view/form/control/AphrontFormSubmitControl.php
--- a/src/view/form/control/AphrontFormSubmitControl.php
+++ b/src/view/form/control/AphrontFormSubmitControl.php
@@ -2,20 +2,23 @@
final class AphrontFormSubmitControl extends AphrontFormControl {
- private $cancelButton;
+ private $buttons = array();
public function addCancelButton($href, $label = null) {
if (!$label) {
$label = pht('Cancel');
}
+ $button = id(new PHUIButtonView())
+ ->setTag('a')
+ ->setHref($href)
+ ->setText($label)
+ ->setColor(PHUIButtonView::GREY);
+ $this->addButton($button);
+ return $this;
+ }
- $this->cancelButton = phutil_tag(
- 'a',
- array(
- 'href' => $href,
- 'class' => 'button grey',
- ),
- $label);
+ public function addButton(PHUIButtonView $button) {
+ $this->buttons[] = $button;
return $this;
}
@@ -38,7 +41,7 @@
return array(
$submit_button,
- $this->cancelButton,
+ $this->buttons,
);
}
diff --git a/webroot/rsrc/css/phui/phui-button.css b/webroot/rsrc/css/phui/phui-button.css
--- a/webroot/rsrc/css/phui/phui-button.css
+++ b/webroot/rsrc/css/phui/phui-button.css
@@ -47,6 +47,18 @@
border-radius: 3px;
}
+button .phui-icon-view,
+a.button .phui-icon-view,
+button.green .phui-icon-view,
+a.button.green .phui-icon-view {
+ color: white;
+}
+
+button.grey .phui-icon-view,
+a.button.grey .phui-icon-view {
+ color: {$darkbluetext};
+}
+
/* Buttons with images (full size only) */
button.icon,
a.icon,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 4, 11:02 AM (1 d, 9 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7637729
Default Alt Text
D17305.id41616.diff (3 KB)
Attached To
Mode
D17305: Add clearer saved search options in ApplicationSearch
Attached
Detach File
Event Timeline
Log In to Comment