diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-19 06:32:42 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-19 06:32:42 +0100 |
commit | 9c1e978da28228cd14d4f2a0ff3ac08ea73240ed (patch) | |
tree | a28940ce2f740f4f75ac9ebf7d6599da199f41c0 /templates/survey.html | |
parent | e9eb00f65dfb18e4b6c26e72c130854bd0cd318d (diff) | |
download | troggle-9c1e978da28228cd14d4f2a0ff3ac08ea73240ed.tar.gz troggle-9c1e978da28228cd14d4f2a0ff3ac08ea73240ed.tar.bz2 troggle-9c1e978da28228cd14d4f2a0ff3ac08ea73240ed.zip |
[svn]
Diffstat (limited to 'templates/survey.html')
-rw-r--r-- | templates/survey.html | 37 |
1 files changed, 28 insertions, 9 deletions
diff --git a/templates/survey.html b/templates/survey.html index 9d677e5..290cd97 100644 --- a/templates/survey.html +++ b/templates/survey.html @@ -11,8 +11,27 @@ blankColor = "rgb(153, 153, 153)"
highlightedColor = "rgb(125, 125, 125)"
chosenColor = "rgb(255, 255, 255)"
-
+
+ $(document).ready(function() {
+ $(".menuBarItem").click(function() {
+ $("#"+this.id+"Content").toggle();
+ if ($(this).hasClass('on')){
+ $(this).removeClass('on');}
+ else {
+ $(this).addClass('on');
+ }
+ });
+ });
+
+ function redirectSurvey(){
+ window.location = "{% url survey %}" + '/' + document.getElementById("expeditionChooser").value + "%23" + document.getElementById("surveyChooser").value;
+ }
+
+ function redirectYear(){
+ window.location = "{% url survey %}" + '/' + document.getElementById("expeditionChooser").value + "%23";
+ }
</script>
+
{% endblock %}
<div id="currentLocation">
@@ -45,7 +64,7 @@ <div>
<!-- <h4>Click to toggle:</h4>-->
- <div id="progressTable" class="menuBarItem" > {% if current_expedition.survey_set.all %}✓{% endif %}
+ <div id="progressTable" class="menuBarItem"> {% if current_expedition.survey_set.all %}✓{% endif %}
survey progress table </div>
</div>
@@ -70,16 +89,16 @@ </center>
<!-- <h4>Click to toggle:</h4>-->
<div id="surveyWalletNav">
- <div id="notes" class="menuBarItem" > {% if notes %}✓{% endif %}
+ <div id="notes" class="menuBarItem" "> {% if notes %}✓{% endif %}
scanned notes </div>
- <div id="survexFile" class="menuBarItem" > {% if current_survey.survex_file %}✓{% endif %}
+ <div id="survexFile" class="menuBarItem" "> {% if current_survey.survex_file %}✓{% endif %}
survex file </div>
- <div id="printedCentreline" class="menuBarItem" > {% if current_survey.centreline_printed_on %}✓{% endif %}
+ <div id="printedCentreline" class="menuBarItem" "> {% if current_survey.centreline_printed_on %}✓{% endif %}
printed centreline </div>
- <div id="scannedPassageSketch" class="menuBarItem" > {% if planSketches %}✓{% endif %}
+ <div id="scannedPassageSketch" class="menuBarItem" "> {% if planSketches %}✓{% endif %}
scanned passage sketch </div>
- <div id="tunnelXMLfile" class="menuBarItem" >tunnel xml file</div>
- <div id="mainSketchIntegration" class="menuBarItem" >add to main sketch</div>
+ <div id="tunnelXMLfile" class="menuBarItem" ">tunnel xml file</div>
+ <div id="mainSketchIntegration" class="menuBarItem" ">add to main sketch</div>
</div>
</div>
{% endblock %}
@@ -141,7 +160,7 @@ </p>
</div>
{% endfor %}
- <div class="figure"> <a href="{{ settings.URL_ROOT }}admin/expo/scannedimage/add/" target="_blank"> <img src="{{ settings.URL_ROOT }}{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_addlink.gif" /> Add a new scanned notes page. </a> </div>
+ <div class="figure"> <a href="{{ settings.URL_ROOT }}admin/expo/scannedimage/add/"> <img src="{{ settings.URL_ROOT }}{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_addlink.gif" /> Add a new scanned notes page. </a> </div>
</div>
<br class="clearfloat" />
<div id="survexFileContent" class="behind"> survex file editor, keeping file in original structure <br />
|