source: mauRepo/MolesManager/trunk/src/MolesManager/static/templates/cedaSearch.html @ 8273

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

amendment to search page, addition of martian map

Line 
1{% extends "base.html" %}
2        {% block extra_head %}
3       
4        {% endblock %}
5
6{% block title %} CEDA Search Page {% endblock %}
7   
8{% block main %}
9<div class="grid_12">
10          <h5>Search</h5>
11          <p>Use the search function below to locate your CEDA Observation record</p>
12</div> <!-- End of div stuff -->
13<div class="grid_12 claro fillWhite">
14        <script type="text/javascript">
15                require(['dijit/form/Form', 'dijit/form/TextBox']);
16        </script>
17
18        <input type="hidden" name="coSearchTerm" id="coSearchTerm" value="{{ coSearchTerm }}" />
19
20        <div data-dojo-type="dijit.form.Form" id="searchForm" data-dojo-id="searchForm" encType="multipart/form-data" action="." method="POST">
21       
22            <script type="dojo/method" data-dojo-event="onSubmit">
23                if(this.validate()){
24                    return confirm('Form is valid, press OK to submit');
25                }else{
26                    alert('Form contains invalid data.  Please correct first');
27                    return false;
28                }
29                return true;
30            </script>
31       
32                {% csrf_token %}
33       
34                <div class="fieldWrapper">
35                        <label for="id_obj_id">SearchTerm</label>
36                        <input type="text" name="searchTerm" value= "" data-dojo-type="dijit.form.TextBox" data-dojo-props="trim:true, propercase:true" id="coSearchTerm"/>
37                </div> <!-- End of div fieldWrapper -->
38                <button data-dojo-type="dijit.form.Button" id="search_obs" type="submit" name="submitButton" value="Submit">Search</button>
39                <button data-dojo-type="dijit.form.Button" type="reset">Reset</button>
40
41               
42               
43        </div> <!-- End of div myForm -->
44</div> <!-- End of div claro -->
45
46<div class="corner-content-1col-bottom"></div> 
47
48{% endblock %}
Note: See TracBrowser for help on using the repository browser.