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

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

committing changes to cedaObservation.js and associated views

Line 
1{% extends "base.html" %}
2        {% block extra_head %}
3       
4        {% endblock %}
5
6{% block title %} CEDA Observation Record {% 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', 'ceda/cedaObservation']);
16        </script>
17
18        <input type="hidden" name="coObs" id="coObs_id" value="{{ coObs }}" />
19
20        <div data-dojo-type="dijit.form.Form" id="myForm" data-dojo-id="myForm" 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">ID</label>
36                        <input type="text" name="obs_id" value= ""
37                        data-dojo-type="dijit.form.TextBox"
38                        data-dojo-props="trim:true, propercase:true" id="obs_id"/>
39                </div> <!-- End of div fieldWrapper -->
40                <button id="search_obs" type="submit"></button>
41        </div> <!-- End of div myForm -->
42</div> <!-- End of div claro -->
43
44<div class="corner-content-1col-bottom"></div> 
45
46{% endblock %}
Note: See TracBrowser for help on using the repository browser.