incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [05/22] git commit: [#2835] ticket:287 Use radiobuttons for searching app/project
Date Tue, 26 Mar 2013 21:02:39 GMT
[#2835] ticket:287 Use radiobuttons for searching app/project


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

Branch: refs/heads/master
Commit: aaa1e453a5c3533c316d0d37416d8a2459d042b3
Parents: 4ab5bda
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Tue Mar 5 11:59:28 2013 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Tue Mar 26 20:57:34 2013 +0000

----------------------------------------------------------------------
 .../allura/templates/widgets/search_results.html   |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/aaa1e453/Allura/allura/templates/widgets/search_results.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/widgets/search_results.html b/Allura/allura/templates/widgets/search_results.html
index d6811a6..bc1cfdc 100644
--- a/Allura/allura/templates/widgets/search_results.html
+++ b/Allura/allura/templates/widgets/search_results.html
@@ -11,12 +11,12 @@
       Help
     </a>
   </div>
-
-
-
   <div class="grid-19">
-    <input type="submit" value="Search App">
-    <input type="submit" name="project" value="Search Entire Project">
+    {% set search_project = request.GET['project'] == '1' %}
+    <input type="radio" name="project" value="0" id="search-app" {% if not search_project
%}checked{% endif %}>
+    <label for="search-app">Search {{c.app.config.options.mount_point or 'app'}}</label>
+    <input type="radio" name="project" value="1" id="search-project" {% if search_project
%}checked{% endif %}>
+    <label for="search-project">Search entire project</label>
   </div>
   <div class="grid-19">
     Search history? <input type="checkbox" name="history"{% if history %} checked="checked"{%
endif %}/>


Mime
View raw message