Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
commit 9eef762bf0e9c5aa28c564fdce7ebb122610a90c Author: Bohuslav Kabrda bkabrda@redhat.com Date: Fri Feb 1 14:05:18 2013 +0100
Enable searching from the displayed field
coprs_frontend/coprs/static/copr.css | 12 ++++++++++++ coprs_frontend/coprs/templates/layout.html | 5 ++++- 2 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/coprs_frontend/coprs/static/copr.css b/coprs_frontend/coprs/static/copr.css index c5c6f3b..c147a30 100644 --- a/coprs_frontend/coprs/static/copr.css +++ b/coprs_frontend/coprs/static/copr.css @@ -58,15 +58,18 @@ div.login, div.login a { font-weight: bold; text-decoration: none; line-height: 250%; + text-align: right;
position: relative; float: right; + margin-left: 0.3em; }
div.login .text { font-weight: normal; }
+ div.page, div.menu-inner { width: 780px; margin-left: auto; @@ -226,6 +229,15 @@ input.rounded { -webkit-border-radius: 10px; }
+input.fulltext-submit { + color: white; + font-weight: bold; + background-color: #3d69a8; + border-radius: 10px; + -moz-border-radius: 10px; + -webkit-border-radius: 10px; +} + p.form-error { color: red; } diff --git a/coprs_frontend/coprs/templates/layout.html b/coprs_frontend/coprs/templates/layout.html index 458b731..6312d49 100644 --- a/coprs_frontend/coprs/templates/layout.html +++ b/coprs_frontend/coprs/templates/layout.html @@ -16,7 +16,10 @@ {% else %} <div><a href="{{ url_for('misc.login') }}">log in</a></div> {% endif %} - <input class="rounded" type="text" name="search_text"> + <form method="get" action="{{ url_for('coprs_ns.coprs_fulltext_search') }}"> + <input class="rounded" type="text" name="fulltext"> + <input class="fulltext-submit" type="submit" value="search"> + </form> </div> </div> </div>
copr-devel@lists.fedorahosted.org