You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2014/08/20 09:10:48 UTC

[09/23] git commit: [#7278] ticket:612 Pull button to the right and make input field larger

[#7278] ticket:612 Pull button to the right and make input field larger


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/a678d631
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/a678d631
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/a678d631

Branch: refs/heads/je/42cc_7278
Commit: a678d631a466d5ed8ce13068d9c68d37e37e0727
Parents: 271a9c5
Author: Igor Bondarenko <je...@gmail.com>
Authored: Fri Aug 1 13:29:08 2014 +0300
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Tue Aug 19 12:31:50 2014 +0000

----------------------------------------------------------------------
 Allura/allura/lib/widgets/forms.py                      | 7 +++++--
 Allura/allura/templates/site_admin_search_projects.html | 2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/a678d631/Allura/allura/lib/widgets/forms.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/widgets/forms.py b/Allura/allura/lib/widgets/forms.py
index 75194ab..cbe9fa8 100644
--- a/Allura/allura/lib/widgets/forms.py
+++ b/Allura/allura/lib/widgets/forms.py
@@ -1100,9 +1100,12 @@ class SearchProjectsForm(ForgeForm):
                         ew.Option(py_value='name', label='full name'),
                         ew.Option(py_value='__custom__', label='custom query'),
                     ]),
-                ew.InputField(name='q', show_label=False),
+                ew.InputField(name='q', show_label=False, attrs={'style': 'width: 500px'}),
                 ew.SubmitButton(
                     show_label=False,
-                    attrs={'value': 'Search'},
+                    attrs={
+                        'value': 'Search',
+                        'style': 'float:none; margin-top:3px;',
+                    },
                     show_errors=False),
             ])]

http://git-wip-us.apache.org/repos/asf/allura/blob/a678d631/Allura/allura/templates/site_admin_search_projects.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/site_admin_search_projects.html b/Allura/allura/templates/site_admin_search_projects.html
index 2f1fdad..ecb89da 100644
--- a/Allura/allura/templates/site_admin_search_projects.html
+++ b/Allura/allura/templates/site_admin_search_projects.html
@@ -23,7 +23,7 @@
 
 {% block content %}
   <div class="grid-19">
-    {{ c.search_projects_form.display() }}
+    {{ c.search_projects_form.display(q=q, f=f) }}
   </div>
 
   {% if projects %}