Skip to content

Commit 39f459a

Browse files
author
Johannes Gijsbers
committed
Add a text search box in the upper-right corner.
1 parent 7c31842 commit 39f459a

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

templates/classic/html/page.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,19 @@
1818
<tr>
1919
<td class="page-header-left">&nbsp;</td>
2020
<td class="page-header-top">
21-
<h2><span metal:define-slot="body_title">body title</span></h2>
21+
<div id="body-title">
22+
<h2><span metal:define-slot="body_title">body title</span></h2>
23+
</div>
24+
<div id="searchbox">
25+
<form method="GET" action="issue">
26+
<input type="hidden" name="@columns"
27+
value="id,activity,title,creator,assignedto,status"/>
28+
<input type="hidden" name="@sort" value="activity"/>
29+
<input type="hidden" name="@group" value="priority"/>
30+
<input id="search-text" name="@search_text" size="10"/>
31+
<input type="submit" id="submit" name="submit" value="Search"/>
32+
</form>
33+
</div>
2234
</td>
2335
</tr>
2436

templates/classic/html/style.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,30 @@ td.sidebar {
4141
.index-controls {
4242
display: none;
4343
}
44+
#searchbox {
45+
display: none;
46+
}
4447
}
4548

4649
td.page-header-top {
4750
padding: 5px;
4851
border-bottom: 1px solid #444;
4952
}
5053

54+
div#body-title {
55+
float: left;
56+
}
57+
58+
59+
div#searchbox {
60+
float: right;
61+
padding-top: 1em;
62+
}
63+
64+
div#searchbox input#search-text {
65+
width: 10em;
66+
}
67+
5168
form {
5269
margin: 0;
5370
}

0 commit comments

Comments
 (0)