source: mauRepo/MolesManager/trunk/src/MolesManager/static/templates/cedaSearchResults.html @ 8473

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/MolesManager/static/templates/cedaSearchResults.html@8473
Revision 8473, 1.1 KB checked in by gparton, 8 years ago (diff)

Updated search page to give something a little more meaningful in the results. Now has the title field as a link to the appropriate object with the description below.

Line 
1{% extends "base.html" %}
2        {% block extra_head %}
3       
4        {% endblock %}
5
6{% block title %} CEDA Search Results {% endblock %}
7   
8{% block main %}
9<div class="grid_12">
10          <h5>Search Results</h5>
11          <script type="text/javascript">
12                require(['dojox/grid/DataGrid']);
13          </script>
14        <script>
15/*
16        jquery tablesorter functionality
17                $(function() {
18                  $("#restab").tablesorter();
19                });
20*/
21        </script>
22</div> <!-- End of div stuff -->
23<div class="grid_12 claro fillWhite">
24       
25                {% csrf_token %}
26        <div id="searchResults">
27        <table id="restab" border="1">
28            <thead>
29                <tr>
30                    <th>Title</th>
31                </tr>
32            </thead>
33        <tbody> 
34        {% for location, description, title  in searchResults %}
35                <tr bgcolor="white">
36                        <td><a href="{{ location }}">{{ title }}</a></td>
37                </tr>
38                <tr bgcolor=#66CCFF>
39                        <td>{{ description }}</td>
40                </tr>   
41        {% endfor %}
42        </tbody>
43        </table>
44        </div> <!-- End of div myForm -->
45</div> <!-- End of div claro -->
46
47<div class="corner-content-1col-bottom"></div> 
48
49{% endblock %}
Note: See TracBrowser for help on using the repository browser.