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

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

Regression bug. Did not append Observation to ObservationCollection?.member

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>This search function is designed for the new CEDA metadata database and is under development.</p>
12                  <p>External users are <b>strongly</b> advised to make use of the search function at the top of this page to search the existing CEDA Metadata catalogue or the NERC Data Discovery Service.</p>
13</div> <!-- End of div stuff -->
14<div class="grid_12 claro fillWhite">
15        <script type="text/javascript">
16                require(['dijit/form/Form', 'dijit/form/TextBox']);
17        </script>
18
19        <input type="hidden" name="coSearchTerm" id="coSearchTerm" value="{{ coSearchTerm }}" />
20
21        <div data-dojo-type="dijit.form.Form" id="searchForm" data-dojo-id="searchForm" encType="multipart/form-data" action="." method="POST">
22       
23            <script type="dojo/method" data-dojo-event="onSubmit">
24                if(this.validate()){
25                    //return confirm('Form is valid, press OK to submit');
26                }else{
27                    alert('Form contains invalid data.  Please correct first');
28                    return false;
29                }
30                return true;
31            </script>
32       
33                {% csrf_token %}
34       
35                <div class="fieldWrapper">
36                        <label for="id_obj_id">SearchTerm</label>
37                        <input type="text" name="searchTerm" value= "" data-dojo-type="dijit.form.TextBox" data-dojo-props="trim:true, propercase:true" id="coSearchTerm"/>
38                </div> <!-- End of div fieldWrapper -->
39                <button data-dojo-type="dijit.form.Button" id="search_obs" type="submit" name="submitButton" value="Submit">Search</button>
40                <button data-dojo-type="dijit.form.Button" type="reset">Reset</button>
41
42               
43               
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.