Changeset 8091 for mauRepo/MolesManager/trunk/src/MolesManager/static/templates/cedaObservation.html
- Timestamp:
- 21/02/12 08:22:21 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mauRepo/MolesManager/trunk/src/MolesManager/static/templates/cedaObservation.html
r8090 r8091 11 11 <p>Use the search function below to locate your CEDA Observation record</p> 12 12 13 <div >13 <div class="claro"> 14 14 <script type="text/javascript"> 15 require(['dijit/form/ TextBox', 'ceda/cedaObservation']);15 require(['dijit/form/Form', 'dijit/form/TextBox', 'ceda/cedaObservation']); 16 16 </script> 17 17 18 18 <input type="hidden" name="coObs" id="coObs_id" value="{{ coObs }}" /> 19 19 20 <form action="." method="post"> 20 <div data-dojo-type="dijit.form.Form" id="myForm" data-dojo-id="myForm" 21 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 21 33 {% csrf_token %} 22 34 … … 27 39 data-dojo-props="trim:true, propercase:true" id="obs_id"/> 28 40 </div> 29 <input type="submit" value="Submit" /> 41 <button id="search_obs" type="submit"></button> 42 </div> 30 43 31 </div> 32 <div = id"upper_grid"> 44 <div id = "upper_grid"> 33 45 34 46 <h4>Search Results</h4> 35 47 <div class="grid_2 alpha cedaObs"> 36 </div>37 48 <div class="grid_8 "> 38 49 39 50 <div class="grid_8 alpha cedaObs"> 40 51 <div id="cedaObs.title" > 41 <label for="id_title">Title</label> {{ coObs.identifier }}<br />52 <label for="id_title">Title</label> <div id="title_id"></div> <br /> 42 53 </div> 43 54 <div id="cedaObs.Citation"> 44 <label for="id_citation">Citation</label> {{ coObs.citation }}<br />55 <label for="id_citation">Citation</label> <div id="citation_id"></div> <br /> 45 56 </div> 46 57 47 58 <div id="cedaObs.keywords"> 48 <label for="id_keywords">Keywords</label> <br /> 49 {% for word in coObs.keywords %} 50 {{ word }} | 51 {% endfor %} 59 <label for="id_keywords">Keywords</label> 60 <div id="keywords_id"></div> <br /> 52 61 </div> <!-- end cedaObs keywords --> 53 62 </div> … … 57 66 <div class="grid_8 alpha cedaObs"> 58 67 59 <label for="id_description">Description</label> <br />60 <p>{{ coObs.description }}</p>68 <label for="id_description">Description</label> 69 <div id="description_id"></div> <br /> 61 70 </div> 62 71 </div> 63 72 </div> 64 73 </div class="grid_2"> 65 74 <label for="id_geographicExtent">Geographic Extent</label> {{ coObs.geographicExtent }} <br /> 66 <label for="id_resolution">Resolution</label> {{ coObs.resolution }} <br /> 67 75 <label for="id_resolution">Resolution</label> {{ coObs.resolution }} <br /> 68 76 </div> 69 77 70 78 71 79 <div id="lower_tab1" class="grid_7 alpha cedaObs "> 72 <label for="id_dataLineage">dataLineage</label> <input type="text" name="dataLineage" value= "" 73 data-dojo-type="dijit.form.TextBox" 74 data-dojo-props="trim:true, propercase:true" id="records_dataLineage"/> <br /> 80 <label for="id_dataLineage">dataLineage</label> 81 <div id="records_dataLineage"></div> <br /> <br /> 75 82 <label for="id_relatedParty">relatedParty</label><br /> 76 83 <ol>{% for par in coObs.relatedParty %}
Note: See TracChangeset
for help on using the changeset viewer.