blob: 6fc89fbfc66b58448d3c0ee6516778b8eca117b1 [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001[define category_css]css/ph_detail.css[end]
2[include "../framework/header.ezt" "hidetabs"]
3
4<form action="advsearch.do" method="POST" style="margin:6px;margin-top:12px;" autocomplete="false">
5
6[# Note: No need for UI element permission checking here. ]
7
8<table cellspacing="0" cellpadding="4" border="0" class="advquery">
9 <tr class="focus"><td width="25%"><b>&nbsp;Find issues</b></td>
10 <td>Search within</td>
11 <td>
12 <select name="can" style="width:100%">
13 [include "issue-can-widget.ezt" "advsearch"]
14 </select>
15 </td>
16 <td width="25%" align="center" rowspan="3">
17 <input type="submit" name="btn" value="Search" style="font-size:120%">
18 </td>
19 </tr>
20 <tr class="focus"><td width="25%"></td>
21 <td>with <b>all</b> of the words</td><td><input type="text" size="25" name="words" value=""></td>
22 </tr>
23 <tr class="focus"><td></td>
24 <td><b>without</b> the words</td><td><input type="text" size="25" name="without" value=""></td>
25 </tr>
26 <tr><td>&nbsp;</td><td></td><td></td><td></td></tr>
27 [# TODO(jrobbins): allow commas ]
28 <tr><td><b>Restrict search to</b></td><td>Labels</td><td><input type="text" name="labels" id="labelsearch" size="25" value="" placeholder="All the labels" autocomplete="off"></td><td class="eg">e.g., FrontEnd Priority:High</td></tr>
29 <tr><td rowspan="5"><br>
30 <table cellspacing="0" cellpadding="0" border="0"><tr><td>
31 <div class="tip">
32 <b>Tip:</b> Search results can be<br>refined by clicking on
33 the<br>result table headings.<br> <a href="searchtips">More
34 Search Tips</a>
35 </div>
36 </td></tr></table>
37 </td>
38 [# TODO(jrobbins): allow commas ]
39 <td>Statuses</td><td><input type="text" name="statuses" id="statussearch" size="25" value="" placeholder="Any status" autocomplete="off"></td><td class="eg">e.g., Started</td></tr>
40 <tr><td>Components</td><td><input type="text" size="25" name="components" id="componentsearch" value="" placeholder="Any component" autocomplete="off"></td><td class="eg"></td></tr>
41 <tr><td>Reporters</td><td><input type="text" size="25" name="reporters" id="memberreportersearch" value="" placeholder="Any reporter" autocomplete="off"></td><td class="eg"></td></tr>
42 [# TODO(jrobbins): allow commas ]
43 <tr><td>Owners</td><td><input type="text" size="25" name="owners" id="ownersearch" value="" placeholder="Any owner" autocomplete="off"></td><td class="eg">e.g., user@example.com</td></tr>
44 <tr><td>Cc</td><td><input type="text" size="25" name="cc" id="memberccsearch" value="" placeholder="Any cc" autocomplete="off"></td><td class="eg"></td></tr>
45 <tr><td></td><td>Comment by</td><td><input type="text" size="25" name="commentby" id="membercommentbysearch" value="" placeholder="Any commenter"></td><td class="eg"></td></tr>
46 [# TODO(jrobbins): implement search by star counts
47 <tr><td></td><td>Starred by</td>
48 <td>
49 <select name="starcount" style="width:100%">
50 <option value="-1" selected="selected">Any number of users</option>
51 <option value="0">Exactly zero users</option>
52 <option value="1">1 or more users</option>
53 <option value="2">2 or more users</option>
54 <option value="3">3 or more users</option>
55 <option value="4">4 or more users</option>
56 <option value="5">5 or more users</option>
57 </select></td>
58 <td class="eg"></td>
59 </tr>
60 ]
61 [# TODO(jrobbins) search by dates? ]
62 <tr><td></td><td>&nbsp;</td><td></td><td class="eg"></td></tr>
63</table>
64</form>
65
66<script type="text/javascript" nonce="[nonce]">
67runOnLoad(function() {
68 var _idsToAddDefaultListeners = [[]
69 "labelsearch", "statussearch", "componentsearch", "memberreportersearch",
70 "ownersearch", "memberccsearch", "membercommentbysearch"];
71 for (var i = 0; i < _idsToAddDefaultListeners.length; i++) {
72 var id = _idsToAddDefaultListeners[[]i];
73 if ($(id)) {
74 $(id).addEventListener("focus", function(event) {
75 _acof(event);
76 });
77 }
78 }
79});
80</script>
81
82[include "../framework/footer.ezt"]