Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/MolesManager/static/templates/cedaSearch.html@8211
Revision 8211,
1.4 KB
checked in by gparton, 9 years ago
(diff) |
Adding in Graham's amendments to ceda Obs views and js, plus search page content
|
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 id="search_obs" type="submit"></button> |
---|
39 | </div> <!-- End of div myForm --> |
---|
40 | </div> <!-- End of div claro --> |
---|
41 | |
---|
42 | <div class="corner-content-1col-bottom"></div> |
---|
43 | |
---|
44 | {% endblock %} |
---|
Note: See
TracBrowser
for help on using the repository browser.