mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2024-11-27 01:32:03 +00:00
[svn r8157]
This commit is contained in:
parent
7ef80e36a3
commit
73d73a8a41
@ -309,8 +309,8 @@ def get_scan_path(instance, filename):
|
||||
|
||||
class ScannedImage(models.Model):
|
||||
file = models.ImageField(storage=scansFileStorage, upload_to=get_scan_path)
|
||||
scannedBy = models.ForeignKey(Person,blank=True, null=True)
|
||||
scannedOn = models.DateField(null=True)
|
||||
scanned_by = models.ForeignKey(Person,blank=True, null=True)
|
||||
scanned_on = models.DateField(null=True)
|
||||
survey = models.ForeignKey('Survey')
|
||||
contents = models.CharField(max_length=20,choices=(('notes','notes'),('plan','plan_sketch'),('elevation','elevation_sketch')))
|
||||
number_in_wallet = models.IntegerField(null=True)
|
||||
@ -326,9 +326,6 @@ class ScannedImage(models.Model):
|
||||
|
||||
def __str__(self):
|
||||
return get_scan_path(self,'')
|
||||
|
||||
class admin():
|
||||
pass
|
||||
|
||||
class Survey(models.Model):
|
||||
expedition_year = models.ForeignKey('Expedition')
|
||||
|
@ -132,7 +132,9 @@ img.thumbnail {
|
||||
}
|
||||
|
||||
function unhighlight(div){
|
||||
// div.style.backgroundColor="#EBEBEB";
|
||||
if (div.style.backgroundColor=="#EBEBEB"){
|
||||
div.style.backgroundColor="#EBEBEB";
|
||||
}
|
||||
}
|
||||
|
||||
function choose(div){
|
||||
@ -191,15 +193,15 @@ img.thumbnail {
|
||||
</div>
|
||||
<div id="mainContent">
|
||||
<div id="notesContent" class="behind">
|
||||
There are {{ notes|length }} notes files for {{ current_survey }}.
|
||||
<h2>Scanned notes for {{ current_survey }}.</h2>
|
||||
|
||||
{% for noteItem in notes %}
|
||||
<div class="figure">
|
||||
<p>
|
||||
{{ noteItem.file.correctURL }} <img src="{{ noteItem.correctURL }}" class="thumbnail">
|
||||
<img src="{{ noteItem.correctURL }}" class="thumbnail">
|
||||
<p>
|
||||
File at:
|
||||
<a href="{{ noteItem.file.correctUrl }}">
|
||||
<a href="{{ noteItem.correctURL }}">
|
||||
{{ noteItem.file.name }}
|
||||
</a> <br />
|
||||
Scanned by: {{ noteItem.scanned_by }} <br />
|
||||
@ -220,15 +222,15 @@ img.thumbnail {
|
||||
who entered by </div>
|
||||
<div id="printedCentrelineContent" class="behind"> centreline </div>
|
||||
<div id="scannedPassageSketchContent" class="behind">
|
||||
There are {{ planSketches|length }} plan sketch files for {{ current_survey }}.
|
||||
<h2>Scanned plan sketch files for {{ current_survey }}.</h2>
|
||||
|
||||
{% for sketchItem in planSketches %}
|
||||
<div class="figure">
|
||||
<p>
|
||||
{{ sketchItem.file.correctURL }} <img src="{{ sketchItem.correctURL }}" class="thumbnail">
|
||||
<img src="{{ sketchItem.correctURL }}" class="thumbnail">
|
||||
<p>
|
||||
File at:
|
||||
<a href="{{ sketchItem.file.correctUrl }}">
|
||||
<a href="{{ sketchItem.correctUrl }}">
|
||||
{{ sketchItem.file.name }}
|
||||
</a> <br />
|
||||
Scanned by: {{ sketchItem.scanned_by }} <br />
|
||||
|
Loading…
Reference in New Issue
Block a user