Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(174)

Delta Between Two Patch Sets: MoinMoin/templates/search.html

Issue 109730047: Improved search GUI (Closed)
Left Patch Set: Added translation for get_acl_rights and added comments for newly defined functions Created 10 years, 10 months ago
Right Patch Set: Removed instances of advanced and removed allrev = false Created 10 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « MoinMoin/templates/base.html ('k') | MoinMoin/themes/__init__.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 {% extends theme("layout.html") %} 1 {% extends theme("layout.html") %}
2 {% import "forms.html" as forms %} 2 {% import "forms.html" as forms %}
3 {% import "utils.html" as utils %} 3 {% import "utils.html" as utils %}
4 4
5 {% set search_form = None %} {# layout will not show search form in header #} 5 {% set search_form = None %} {# layout will not show search form in header #}
6 6
7 {% block pagepath %} 7 {% block pagepath %}
8 {{ _("Search") }} 8 {{ _("Search") }}
9 {{ super() }} 9 {{ super() }}
10 {% endblock %} 10 {% endblock %}
11 11
12 {% block content %} 12 {% block content %}
13 <h1>{{_("Search")}}</h1>
13 {{ gen.form.open(medium_search_form, id='moin-long-searchform', method='get' , action=url_for('frontend.search', item_name=item_name)) }} 14 {{ gen.form.open(medium_search_form, id='moin-long-searchform', method='get' , action=url_for('frontend.search', item_name=item_name)) }}
14 <p> 15 <p>
15 {{ forms.render(medium_search_form['q']) }} 16 {{ forms.render(medium_search_form['q']) }}
16 {{ forms.render_submit(medium_search_form) }} 17 {{ forms.render_submit(medium_search_form) }}
17 </p> 18 </p>
18 <p> 19 <div class="moin-search-option-bar"><h4 style="display:inline-block">Sea rch Options</h4><span class="icon-chevron-down"></span></div>
19 <div class="moin-advanced-search"><h4 style="display:inline-block">Advan ced Search Options</h4><span class="icon-chevron-down"></span></div>
20 <div class="moin-searchoptions hidden"> 20 <div class="moin-searchoptions hidden">
21 <table> 21 <table>
22 <tr colspan="4"> 22 <tr colspan="4">
23 <th width="20%">Revisions</td> 23 <th width="20%">Revisions</td>
24 <th width="20%">Modified Time</td> 24 <th width="20%">Sort By Time</td>
25 <th width="60%" colspan="3">Item Types</td> 25 <th width="60%" colspan="3">Content Types</td>
26 </tr> 26 </tr>
27 <tr> 27 <tr>
28 <td width="20%" valign="top"> 28 <td>
29 <label><input type="radio" name="history" value="latest" checked="checked"> Latest Revisions</label><br> 29 <label id="moin-option"><input type="radio" name="histor y" value="latest" checked="checked"> Latest</label><br>
30 <label><input type="radio" name="history" value="all"> A ll Revisions</label><br> 30 <label id="moin-option"><input type="radio" name="histor y" value="all"> All</label><br>
31 </td> 31 </td>
32 <td width="20%" valign="top"> 32 <td>
33 <form> 33 <form>
34 <label><input type="radio" name="modified_time" valu e="default" checked="checked"> Default</label><br> 34 <label id="moin-option"><input type="radio" name="mo dified_time" value="default" checked="checked"> Default</label><br>
35 <label><input type="radio" name="modified_time" valu e="old"> Older Items</label><br> 35 <label id="moin-option"><input type="radio" name="mo dified_time" value="old"> Older First</label><br>
36 <label><input type="radio" name="modified_time" valu e="new"> Newer Items</label><br> 36 <label id="moin-option"><input type="radio" name="mo dified_time" value="new"> Newer First</label><br>
37 </form> 37 </form>
38 </td> 38 </td>
39 <form> 39 <form>
40 <td width="20%" valign="top"> 40 <td>
41 <label><input type="checkbox" name="itemtype" value= "markup"> Markup Text Items</label><br> 41 <label id="moin-option"><input type="checkbox" name= "itemtype" value="markup"> Markup Text</label><br>
42 <label><input type="checkbox" name="itemtype" value= "text"> Other Text Items</label><br> 42 <label id="moin-option"><input type="checkbox" name= "itemtype" value="text"> Other Text</label><br>
43 <label><input type="checkbox" name="itemtype" value= "image"> Image Items</label><br> 43 <label id="moin-option"><input type="checkbox" name= "itemtype" value="image"> Image</label><br>
44 </td> 44 </td>
45 <td width="20%" valign="top"> 45 <td>
46 <label><input type="checkbox" name="itemtype" value= "audio"> Audio Items</label><br> 46 <label id="moin-option"><input type="checkbox" name= "itemtype" value="audio"> Audio</label><br>
47 <label><input type="checkbox" name="itemtype" value= "video"> Video Items</label><br> 47 <label id="moin-option"><input type="checkbox" name= "itemtype" value="video"> Video</label><br>
48 <label><input type="checkbox" name="itemtype" value= "drawing"> Drawing Items</label><br> 48 <label id="moin-option"><input type="checkbox" name= "itemtype" value="drawing"> Drawing</label><br>
49 </td> 49 </td>
50 <td width="20%" valign="top"> 50 <td>
51 <label><input type="checkbox" name="itemtype" value= "other"> Other Items</label><br> 51 <label id="moin-option"><input type="checkbox" name= "itemtype" value="other"> Other</label><br>
52 <label><input type="checkbox" name="itemtype" value= "unknown"> Unknown Items</label><br> 52 <label id="moin-option"><input type="checkbox" name= "itemtype" value="unknown"> Unknown</label><br>
53 <label id="moin-option"><input type="checkbox" name= "itemtype" value="all" checked="checked"> All</label><br>
53 </td> 54 </td>
54 </form> 55 </form>
55 </tr> 56 </tr>
56 </table> 57 </table>
57 </div> 58 </div>
59 <p>
58 {{ forms.render_errors(medium_search_form) }} 60 {{ forms.render_errors(medium_search_form) }}
59 </p> 61 </p>
60 {{ gen.form.close() }} 62 {{ gen.form.close() }}
61 <div id="finalresults"> 63 <div id="finalresults">
62 {% include "ajaxsearch.html" %} 64 {% include "ajaxsearch.html" %}
63 </div> 65 </div>
64 {% endblock %} 66 {% endblock %}
65 67
66 {% block body_scripts %} 68 {% block body_scripts %}
67 <script src="{{ url_for('serve.files', name='jquery', filename='jquery.min.j s') }}"></script> 69 <script src="{{ url_for('serve.files', name='jquery', filename='jquery.min.j s') }}"></script>
68 <script src="{{ url_for('static', filename='js/search.js') }}"></script> 70 <script src="{{ url_for('static', filename='js/search.js') }}"></script>
69 {% endblock %} 71 {% endblock %}
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b