2009-05-13 05:31:44 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load wiki_markup %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block title %}CUCC Virtual Survey Binder: {{ current_expedition }}{{ current_survey }}{%endblock%}
|
2009-05-13 05:40:35 +01:00
|
|
|
{% block head %}
|
|
|
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{ settings.MEDIA_URL }}css/nav.css" />
|
2009-05-13 06:19:45 +01:00
|
|
|
|
2009-05-13 05:28:14 +01:00
|
|
|
<script language="javascript">
|
2009-05-13 05:31:44 +01:00
|
|
|
blankColor = "rgb(153, 153, 153)"
|
|
|
|
highlightedColor = "rgb(125, 125, 125)"
|
2009-05-13 05:40:35 +01:00
|
|
|
chosenColor = "rgb(255, 255, 255)"
|
2009-05-19 06:32:42 +01:00
|
|
|
|
|
|
|
$(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";
|
|
|
|
}
|
2009-05-13 05:28:14 +01:00
|
|
|
</script>
|
2009-05-19 06:32:42 +01:00
|
|
|
|
2009-05-13 05:31:44 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
2009-05-13 05:33:29 +01:00
|
|
|
<div id="currentLocation">
|
2009-05-13 05:31:44 +01:00
|
|
|
CUCC Expo virtual survey binder:
|
|
|
|
{% if current_survey %}
|
|
|
|
{{current_survey}}
|
|
|
|
{% else %}
|
2009-05-22 06:43:25 +01:00
|
|
|
{{current_expedition}}
|
2009-05-13 05:31:44 +01:00
|
|
|
{% endif %}
|
2009-05-13 05:33:29 +01:00
|
|
|
</div>
|
2009-05-13 05:31:44 +01:00
|
|
|
|
|
|
|
{% block nav %}
|
2009-05-13 05:28:57 +01:00
|
|
|
<br />
|
2009-05-13 05:40:35 +01:00
|
|
|
|
|
|
|
<h3>Choose a year</h3>
|
2009-05-13 05:42:01 +01:00
|
|
|
<center>
|
2009-05-13 05:40:35 +01:00
|
|
|
<select id="expeditionChooser" class="centre" onChange="redirectYear()">
|
2009-05-13 05:31:44 +01:00
|
|
|
|
2009-05-22 06:49:13 +01:00
|
|
|
<option value=""/>
|
2009-05-13 05:52:15 +01:00
|
|
|
{% for expedition in expeditions %}
|
2009-05-13 05:40:35 +01:00
|
|
|
<option label="{{ expedition }}" value="{{ expedition }}" {% ifequal expedition current_expedition %}selected{% endifequal %}>
|
2009-05-13 05:28:57 +01:00
|
|
|
|
2009-05-13 05:40:35 +01:00
|
|
|
{{ expedition }}
|
2009-05-13 05:31:44 +01:00
|
|
|
|
2009-05-13 05:40:35 +01:00
|
|
|
</option>
|
2009-05-13 05:31:21 +01:00
|
|
|
{% endfor %}
|
|
|
|
|
2009-05-13 05:31:44 +01:00
|
|
|
</select>
|
2009-05-13 05:42:01 +01:00
|
|
|
</center>
|
2009-05-13 05:40:35 +01:00
|
|
|
|
2009-05-13 05:42:01 +01:00
|
|
|
<div>
|
|
|
|
<!-- <h4>Click to toggle:</h4>-->
|
2009-05-19 06:32:42 +01:00
|
|
|
<div id="progressTable" class="menuBarItem"> {% if current_expedition.survey_set.all %}✓{% endif %}
|
2009-05-13 05:42:01 +01:00
|
|
|
survey progress table </div>
|
|
|
|
</div>
|
2009-05-22 06:43:25 +01:00
|
|
|
{% if current_expedition %}
|
2009-05-13 05:52:15 +01:00
|
|
|
<h3>Choose a wallet number </h3>
|
|
|
|
<center>
|
|
|
|
<select id="surveyChooser" class="centre" onChange="redirectSurvey()">
|
2009-05-13 05:42:01 +01:00
|
|
|
<option label="show all" value="">
|
2009-05-22 06:49:13 +01:00
|
|
|
|
2009-05-13 05:42:01 +01:00
|
|
|
</option>
|
2009-05-22 06:49:13 +01:00
|
|
|
{% for survey in current_expedition.survey_set.all %}
|
|
|
|
|
2009-05-13 05:31:44 +01:00
|
|
|
<option label="{{ survey }}" value="{{ survey.wallet_number }}"
|
2009-05-13 05:31:21 +01:00
|
|
|
{% ifequal survey current_survey %}
|
|
|
|
selected
|
2009-05-13 05:42:01 +01:00
|
|
|
{% endifequal %}>
|
2009-05-13 05:52:15 +01:00
|
|
|
{{ survey }}
|
2009-05-13 05:42:01 +01:00
|
|
|
</option>
|
2009-05-13 05:31:44 +01:00
|
|
|
|
2009-05-13 05:28:14 +01:00
|
|
|
{% endfor %}
|
2009-05-13 05:31:44 +01:00
|
|
|
|
|
|
|
<option label="add" value="add">
|
2009-05-13 05:28:57 +01:00
|
|
|
</select>
|
2009-05-13 05:42:01 +01:00
|
|
|
|
|
|
|
</center>
|
|
|
|
<!-- <h4>Click to toggle:</h4>-->
|
|
|
|
<div id="surveyWalletNav">
|
2009-05-19 06:32:42 +01:00
|
|
|
<div id="notes" class="menuBarItem" "> {% if notes %}✓{% endif %}
|
2009-05-13 05:28:57 +01:00
|
|
|
scanned notes </div>
|
2009-05-19 06:32:42 +01:00
|
|
|
<div id="survexFile" class="menuBarItem" "> {% if current_survey.survex_file %}✓{% endif %}
|
2009-05-13 05:28:57 +01:00
|
|
|
survex file </div>
|
2009-05-19 06:32:42 +01:00
|
|
|
<div id="printedCentreline" class="menuBarItem" "> {% if current_survey.centreline_printed_on %}✓{% endif %}
|
2009-05-13 05:28:57 +01:00
|
|
|
printed centreline </div>
|
2009-05-19 06:32:42 +01:00
|
|
|
<div id="scannedPassageSketch" class="menuBarItem" "> {% if planSketches %}✓{% endif %}
|
2009-05-13 05:28:57 +01:00
|
|
|
scanned passage sketch </div>
|
2009-05-19 06:32:42 +01:00
|
|
|
<div id="tunnelXMLfile" class="menuBarItem" ">tunnel xml file</div>
|
|
|
|
<div id="mainSketchIntegration" class="menuBarItem" ">add to main sketch</div>
|
2009-05-13 05:28:14 +01:00
|
|
|
</div>
|
2009-05-13 05:31:44 +01:00
|
|
|
</div>
|
2009-05-21 19:47:19 +01:00
|
|
|
{% endif %}
|
2009-05-13 05:40:35 +01:00
|
|
|
{% endblock %}
|
2009-05-13 05:31:21 +01:00
|
|
|
|
2009-05-21 19:47:19 +01:00
|
|
|
|
2009-05-13 05:31:44 +01:00
|
|
|
{% block content %}
|
|
|
|
<div id="mainContent">
|
2009-05-13 05:40:35 +01:00
|
|
|
|
2009-05-13 05:42:01 +01:00
|
|
|
<div id="progressTableContent" class="behind" style="overflow:auto">
|
2009-05-13 05:40:35 +01:00
|
|
|
<h3>Survey progress table for {{ current_expedition }}</h3>
|
|
|
|
{% if current_expedition.survey_set.all %} <!-- if there are any surveys in the expedition, make the table -->
|
|
|
|
<table class="centre">
|
2009-05-13 05:31:44 +01:00
|
|
|
<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-05-13 05:40:35 +01:00
|
|
|
{% else %}
|
2009-05-13 05:42:01 +01:00
|
|
|
<center>[ There are no surveys in the database for this year. Put link in to add one. ]</center>
|
2009-05-13 05:40:35 +01:00
|
|
|
{% endif %}
|
2009-05-13 05:31:21 +01:00
|
|
|
</div>
|
2009-05-13 06:23:57 +01:00
|
|
|
<div id="notesContent" class="behind" style="overflow: auto">
|
2009-05-13 05:31:44 +01:00
|
|
|
<h3>Scanned notes for {{ current_survey }}.</h3>
|
|
|
|
{% for noteItem in notes %}
|
|
|
|
<div class="figure">
|
2009-05-13 06:23:57 +01:00
|
|
|
<p> <img src="{{ noteItem.thumbnail_image.url }}" class="thumbnail">
|
2009-05-13 05:31:44 +01:00
|
|
|
<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 %}
|
2009-05-22 06:43:25 +01:00
|
|
|
<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>
|
2009-05-13 05:28:57 +01:00
|
|
|
</div>
|
2009-05-13 05:52:15 +01:00
|
|
|
<br class="clearfloat" />
|
2009-05-13 05:28:57 +01:00
|
|
|
<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-05-13 05:31:44 +01:00
|
|
|
<h3>Scanned plan sketch files for {{ current_survey }}.</h3>
|
|
|
|
{% for sketchItem in planSketches %}
|
|
|
|
<div class="figure">
|
2009-05-13 06:23:57 +01:00
|
|
|
<p> <img src="{{ sketchItem.thumbnail_image.url }}" class="thumbnail" />
|
|
|
|
<p> File at: <a href="{{ sketchItem.correctURL }}"> {{ sketchItem.file.name }} </a> <br />
|
2009-05-13 05:31:44 +01:00
|
|
|
Scanned by: {{ sketchItem.scanned_by }} <br />
|
|
|
|
On: {{ sketchItem.scanned_on }} <br />
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2009-05-22 06:43:25 +01:00
|
|
|
<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 sketch. </a> </div>
|
2009-05-13 05:31:44 +01:00
|
|
|
</div>
|
2009-05-13 05:28:57 +01: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" />
|
2009-05-13 05:42:01 +01:00
|
|
|
|
2009-05-13 05:33:29 +01:00
|
|
|
{% endblock %}
|