2009-01-17 07:11:01 +00:00
{% extends "base.html" %}
{% load wiki_markup %}
{% block title %}CUCC Virtual Survey Binder: {{ current_expedition }}{{ current_survey }}{%endblock%}
{% block javascript %}
2009-01-16 19:50:23 +00:00
2009-01-15 06:25:09 +00:00
< script language = "javascript" >
2009-01-17 07:11:01 +00:00
blankColor = "rgb(153, 153, 153)"
highlightedColor = "rgb(125, 125, 125)"
chosenColor = "rgb(102, 102, 102)"
2009-01-15 06:25:09 +00:00
mnuItmLst=document.getElementsByClassName("menuBarItem")
function highlight(div){
for (var i = 0, divIter; divIter = mnuItmLst[i]; i++) {
if (divIter.style.backgroundColor!="rgb(102, 102, 102)"){
2009-01-17 07:11:01 +00:00
divIter.style.backgroundColor=blankColor;
2009-01-15 06:25:09 +00:00
}
}
if (div.style.backgroundColor!="rgb(102, 102, 102)"){
div.style.backgroundColor="#B0B0B0";
}
}
function unhighlight(div){
2009-01-17 07:11:01 +00:00
if (div.style.backgroundColor!=blankColor){
div.style.backgroundColor=blankColor;
2009-01-16 02:19:09 +00:00
}
2009-01-15 06:25:09 +00:00
}
function choose(div){
for (var i = 0, divIter; divIter = mnuItmLst[i]; i++) {
document.getElementById(divIter.id+"Content").style.display="none";
}
document.getElementById(div.id+"Content").style.display="block";
for (var i = 0, divIter; divIter = mnuItmLst[i]; i++) {
2009-01-17 07:11:01 +00:00
document.getElementById(divIter.id).style.backgroundColor=blankColor;
2009-01-15 06:25:09 +00:00
}
2009-01-17 07:11:01 +00:00
div.style.backgroundColor=chosenColor;
document.getElementById(progressTableContent).style.display="none";
2009-01-15 06:25:09 +00:00
}
2009-01-17 07:11:01 +00:00
function redirectSurvey(){
2009-01-17 08:11:45 +00:00
window.location = "{{ settings.URL_ROOT }}survey/" + document.getElementById("expeditionChooser").value + "%23" + document.getElementById("surveyChooser").value;
2009-01-16 19:50:23 +00:00
document.getElementById("progressTableContent").style.display='hidden'
}
function redirectYear(){
2009-01-17 08:11:45 +00:00
window.location = "{{ settings.URL_ROOT }}survey/" + document.getElementById("expeditionChooser").value + "%23"
2009-01-15 06:25:09 +00:00
}
< / script >
2009-01-17 07:11:01 +00:00
{% endblock %}
2009-01-15 06:25:09 +00:00
< body class = "twoColHybLtHdr" >
2009-01-17 07:11:01 +00:00
{% block currentLocation %}
CUCC Expo virtual survey binder:
{% if current_survey %}
{{current_survey}}
{% else %}
{{current_year }}
{% endif %}
{% endblock %}
{% block nav %}
2009-01-15 06:25:09 +00:00
< div id = "sidebar1" >
2009-01-15 23:21:55 +00:00
< br / >
2009-01-16 19:50:23 +00:00
< select id = "expeditionChooser" onchange = "redirectYear()" >
2009-01-17 07:11:01 +00:00
{% for expedition in expeditions.reverse %}
< option label = "{{ expedition }}" value = "{{ expedition }}"
2009-01-16 19:50:23 +00:00
{% ifequal expedition current_expedition %}
2009-01-15 23:21:55 +00:00
selected
{% endifequal %} >
2009-01-17 07:11:01 +00:00
2009-01-16 19:50:23 +00:00
{{ expedition }}
2009-01-17 07:11:01 +00:00
2009-01-16 19:50:23 +00:00
< / option >
2009-01-15 23:21:55 +00:00
2009-01-17 07:11:01 +00:00
2009-01-16 19:50:23 +00:00
{% endfor %}
2009-01-17 07:11:01 +00:00
< / select >
2009-01-16 19:50:23 +00:00
< select id = "surveyChooser" onchange = "redirectSurvey()" >
2009-01-17 07:11:01 +00:00
< option label = "show all" value = "" > {% for survey in current_expedition.survey_set.all %}
< option label = "{{ survey }}" value = "{{ survey.wallet_number }}"
2009-01-16 19:50:23 +00:00
{% ifequal survey current_survey %}
selected
{% endifequal %} >
2009-01-17 07:11:01 +00:00
{{ survey }} < / option >
2009-01-15 23:21:55 +00:00
2009-01-15 06:25:09 +00:00
{% endfor %}
2009-01-17 07:11:01 +00:00
< option label = "add" value = "add" >
2009-01-15 23:21:55 +00:00
< / select >
< div id = "status" >
< div id = "notes" class = "menuBarItem" onmouseover = "highlight(this)" onmouseout = "unhighlight(this)" onclick = "choose(this)" > {% if notes %}✓ {% endif %}
scanned notes < / div >
< div id = "survexFile" class = "menuBarItem" onmouseover = "highlight(this)" onmouseout = "unhighlight(this)" onclick = "choose(this)" > {% if current_survey.survex_file %}✓ {% endif %}
survex file < / div >
< div id = "printedCentreline" class = "menuBarItem" onmouseover = "highlight(this)" onmouseout = "unhighlight(this)" onclick = "choose(this)" > {% if current_survey.centreline_printed_on %}✓ {% endif %}
printed centreline < / div >
< div id = "scannedPassageSketch" class = "menuBarItem" onmouseover = "highlight(this)" onmouseout = "unhighlight(this)" onclick = "choose(this)" > {% if planSketches %}✓ {% endif %}
scanned passage sketch < / div >
2009-01-15 06:25:09 +00:00
< div id = "tunnelXMLfile" class = "menuBarItem" onmouseover = "highlight(this)" onmouseout = "unhighlight(this)" onclick = "choose(this)" > tunnel xml file< / div >
< div id = "mainSketchIntegration" class = "menuBarItem" onmouseover = "highlight(this)" onmouseout = "unhighlight(this)" onclick = "choose(this)" > add to main sketch< / div >
< / div >
2009-01-17 07:11:01 +00:00
< / div >
{% endblock %}
2009-01-16 19:50:23 +00:00
2009-01-17 07:11:01 +00:00
{% block content %}
< div id = "mainContent" >
< div id = "progressTableContent" class = "behind" style = "display:block;" >
< table >
< tr >
< th > < / th >
{% for survey in current_expedition.survey_set.all %}
< th > {{ survey.wallet_number }} < / th >
{% endfor %} < / tr >
< tr >
< td > Notes < / td >
{% for survey in current_expedition.survey_set.all %}
< td > {% if survey.notes %}
✓
{% endif %} < / td >
{% endfor %} < / tr >
< tr >
< td > Survex file < / td >
{% for survey in current_expedition.survey_set.all %}
< td > {% if survey.survex_file %}
✓
{% endif %} < / td >
{% endfor %} < / tr >
< tr >
< td > Plans < / td >
{% for survey in current_expedition.survey_set.all %}
< td > {% if survey.plans %}
✓
{% endif %} < / td >
{% endfor %} < / tr >
< tr >
< td > Elevations < / td >
{% for survey in current_expedition.survey_set.all %}
< td > {% if survey.elevations %}
✓
{% endif %} < / td >
{% endfor %} < / tr >
< / table >
2009-01-16 19:50:23 +00:00
< / div >
2009-01-17 07:11:01 +00:00
< div id = "notesContent" class = "behind" >
< h3 > Scanned notes for {{ current_survey }}.< / h3 >
{% for noteItem in notes %}
< div class = "figure" >
< p > < img src = "{{ noteItem.correctURL }}" class = "thumbnail" >
< p > File at: < a href = "{{ noteItem.correctURL }}" > {{ noteItem.file.name }} < / a > < br / >
Scanned by: {{ noteItem.scanned_by }} < br / >
On: {{ noteItem.scanned_on }} < br / >
< / p >
< / p >
< / div >
{% endfor %}
< 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 > (to be improved) < / div >
2009-01-15 23:21:55 +00:00
< / div >
< div id = "survexFileContent" class = "behind" > survex file editor, keeping file in original structure < br / >
who entered by < / div >
< div id = "printedCentrelineContent" class = "behind" > centreline < / div >
< div id = "scannedPassageSketchContent" class = "behind" >
2009-01-17 07:11:01 +00:00
< h3 > Scanned plan sketch files for {{ current_survey }}.< / h3 >
{% for sketchItem in planSketches %}
< div class = "figure" >
< p > < img src = "{{ sketchItem.correctURL }}" class = "thumbnail" / >
< p > File at: < a href = "{{ sketchItem.correctUrl }}" > {{ sketchItem.file.name }} < / a > < br / >
Scanned by: {{ sketchItem.scanned_by }} < br / >
On: {{ sketchItem.scanned_on }} < br / >
< / p >
< / p >
< / div >
{% endfor %}
< 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 > (to be improved) < / div >
< / div >
2009-01-15 23:21:55 +00:00
< div id = "tunnelXMLfileContent" class = "behind" > link to tunnel xml file. potentially instance of tunnel applet... < / div >
< div id = "mainSketchIntegrationContent" class = "behind" > link to main sketch file < / div >
<!-- end #mainContent -->
< / div >
< br class = "clearfloat" / >
< / div >
2009-01-17 07:11:01 +00:00
{% endblock %}