summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html7
-rw-r--r--templates/cavebase.html6
-rw-r--r--templates/editcave.html (renamed from templates/editcave2.html)0
-rw-r--r--templates/editfile.html98
-rw-r--r--templates/expowebbase.html41
-rw-r--r--templates/notablepersons.html (renamed from templates/personindex.html)0
-rw-r--r--templates/personForm.html6
-rw-r--r--templates/plainbase.html8
-rw-r--r--templates/qm.html1
-rw-r--r--templates/subcave.html59
10 files changed, 6 insertions, 220 deletions
diff --git a/templates/base.html b/templates/base.html
index ccc6982..20d6af5 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -44,7 +44,7 @@
<a href="/handbook/computing/todo-data.html">tasks to do </a> |
<a id="cavesLink" href="{% url "caveindex" %}">caves</a> |
<a id="folklink" href="/folk">expoers</a> |
- <a id="caversLink" href="{% url "personindex" %}">survey lengths</a> |
+ <a id="caversLink" href="{% url "notablepersons" %}">survey lengths</a> |
<a href="{% url "stats" %}">statistics</a> |
<a href="{% url "expedition" 2018 %}">Expo2018</a> |
<a href="{% url "expedition" 2019 %}">Expo2019</a> |
@@ -65,10 +65,7 @@
<div id="related">
{% block related %}
-<script language="javascript">
- $('#related').remove()
- /*This is a hack to stop a line appearing because of the empty div border*/
-</script>
+
{% endblock %}
</div>
{% block content %}
diff --git a/templates/cavebase.html b/templates/cavebase.html
index 81fc979..e68b99b 100644
--- a/templates/cavebase.html
+++ b/templates/cavebase.html
@@ -10,11 +10,7 @@
<link rel="stylesheet" type="text/css" href="{{ settings.JSLIB_URL }}jquery-ui/css/smoothness/jquery-ui.css" />
<script src="{{ settings.JSLIB_URL }}jquery/jquery.min.js" type="text/javascript"></script>
<script src="{{ settings.JSLIB_URL }}jquery-ui/jquery-ui.min.js" type="text/javascript"></script>
-<script type="text/javascript">
- $(function() {
- $( "#tabs" ).tabs();
- });
-</script>
+
{% block extraheaders %}{% endblock %}
</head>
<body>
diff --git a/templates/editcave2.html b/templates/editcave.html
index a80a22b..a80a22b 100644
--- a/templates/editcave2.html
+++ b/templates/editcave.html
diff --git a/templates/editfile.html b/templates/editfile.html
deleted file mode 100644
index b3b53ed..0000000
--- a/templates/editfile.html
+++ /dev/null
@@ -1,98 +0,0 @@
-{% extends "base.html" %}
-{% load csrffaker %}
-{% block title %}File{% endblock %}
-{% block head %}
-<script>
- $(function() {
- $("#id_date").datepicker({dateFormat: "yy-mm-dd"});
- $("#id_cave").change(function() {
- $('#id_entrance').load('{% url "get_entrances" caveslug="" %}' + this.value);
- });
- $("#id_cave").change(function() {
- $('#id_qm').load('{% url "get_qms" caveslug="" %}' + this.value);
- });
- $("#id_expedition").change(function() {
- $('#id_logbookentry').load('{% url "get_logbook_entries" expeditionslug="" %}' + this.value);
- });
- $("#id_expedition").change(function() {
- $('#id_person').load('{% url "get_people" expeditionslug="" %}' + this.value);
- });
- });
-
-</script>
-
-<link rel="stylesheet" href="{{ settings.JSLIB_URL }}jquery-ui/css/lightness/jquery-ui.css" type="text/css" media="all" />
-<script src="{{ settings.JSLIB_URL }}jquery-ui/jquery-ui.min.js" type="text/javascript"></script>
-<script src="{{ settings.MEDIA_URL }}js/jquery.formset.min.js" type="text/javascript"></script>
-<!--<script src="{{ settings.TINY_MCE_MEDIA_URL }}tiny_mce.js" type="text/javascript"></script>
--->
-{{ fileForm.media }}
-{% endblock %}
-{% block content %}
-
-<form action="" method="post">{% csrf_token %}
- {{ fileForm.non_field_errors }}
- <div class="fieldWrapper">
- {{ fileForm.title.errors }}
- <label for="id_title">Title:</label>
- {{ fileForm.title }}
- </div>
- <div class="fieldWrapper">
- {{ fileForm.slug.errors }}
- <label for="id_slug">Slug:</label>
- {{ fileForm.slug }}
- </div>
- <div class="fieldWrapper">
- {{ fileForm.date.errors }}
- <label for="id_date">Date:</label>
- {{ fileForm.date }}
- </div>
- <div class="fieldWrapper" id="lon_utm">
- {{ fileForm.lon_utm.errors }}
- <label for="id_lon_utm">Longitude:</label>
- {{ fileForm.lon_utm }}
- </div>
- <div class="fieldWrapper" id="lat_utm">
- {{ fileForm.lat_utm.errors }}
- <label for="id_lat_utm">Latitude:</label>
- {{ fileForm.lat_utm }}
- </div>
- <div class="fieldWrapper" id="cave">
- {{ fileForm.cave.errors }}
- <label for="id_cave">Cave:</label>
- {{ fileForm.cave }}
- </div>
- <div class="fieldWrapper" id="entrance">
- {{ fileForm.entrance.errors }}
- <label for="id_entrance">Entrance:</label>
- {{ fileForm.entrance }}
- </div>
- <div class="fieldWrapper" id="qm">
- {{ fileForm.qm.errors }}
- <label for="id_cavem">QM:</label>
- {{ fileForm.qm }}
- </div>
- <div class="fieldWrapper" id="expedition">
- {{ fileForm.expedition.errors }}
- <label for="id_expediton">Expedition:</label>
- {{ fileForm.expedition }}
- </div>
- <div class="fieldWrapper" id="logbookentry">
- {{ fileForm.logbookentry.errors }}
- <label for="id_logbookentry">Logbook Entry:</label>
- {{ fileForm.logbookentry }}
- </div>
- <div class="fieldWrapper" id="person">
- {{ fileForm.person.errors }}
- <label for="id_expediton">Person:</label>
- {{ fileForm.person }}
- </div>
- <div class="fieldWrapper">
- {{ fileForm.html.errors }}
- <label for="id_date">Content:</label>
- {{ fileForm.html }}
- </div>
- <p><input type="submit" value="Submit Trip Report" /></p>
-</form>
-
-{% endblock %}
diff --git a/templates/expowebbase.html b/templates/expowebbase.html
deleted file mode 100644
index 097c4e0..0000000
--- a/templates/expowebbase.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<!-- expowebbase.html - this text visible because this template has been included -->
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<title>{% block title %}{% endblock %}
-</title>
-<link rel="stylesheet" type="text/css" href="../css/main2.css" />
-</head>
-<body>
-<div id="mainmenu">
-<ul>
-<li><a href="/index.htm">Expo website home</a></li>
-<li><a href="/intro.html">Introduction</a></li>
-<li><a href="/infodx.htm">Main index</a></li>
-<li><a href="/caves">Cave index</a></li>
-{% if cavepage %}
-<ul>
-<li><a href="{% url "survexcaveslist" %}">All Survex</a></li>
-<li><a href="{% url "allwallets" %}">Scans</a></li>
-<li><a href="{% url "dwgdata" %}">Drawings</a></li>
-<li><a href="{% url "survexcavessingle" "caves-1623/290/290.svx" %}">290</a></li>
-<li><a href="{% url "survexcavessingle" "caves-1623/291/291.svx" %}">291</a></li>
-<li><a href="{% url "survexcavessingle" "caves-1626/359/359.svx" %}">359</a></li>
-<li><a href="{% url "survexcavessingle" "caves-1623/258/258.svx" %}">258</a></li>
-<li><a href="{% url "survexcavessingle" "caves-1623/264/264.svx" %}">264</a></li>
-<li><a href="{% url "expedition" 2018 %}">Expo2018</a></li>
-<li><a href="{% url "expedition" 2019 %}">Expo2019</a></li>
-<li><a href="/admin">Django admin</a></li>
-</ul>
-{% endif %}
-<li><a href="/handbook/index.htm">Expedition handbook</a></li>
-<li><a href="/pubs.htm">Published reports</a></li>
-<li><a href="/areas.htm">Area description</a></li>
-<li><a href="/">CUCC website</a></li>
-</ul>
-</div>
-{% block content %}{% endblock %}
-</body>
-</html>
-
diff --git a/templates/personindex.html b/templates/notablepersons.html
index 5338bd7..5338bd7 100644
--- a/templates/personindex.html
+++ b/templates/notablepersons.html
diff --git a/templates/personForm.html b/templates/personForm.html
deleted file mode 100644
index 4577239..0000000
--- a/templates/personForm.html
+++ /dev/null
@@ -1,6 +0,0 @@
-{% extends "base.html" %}
-{% block content %}
-
-{{ form }}
-
-{% endblock %} \ No newline at end of file
diff --git a/templates/plainbase.html b/templates/plainbase.html
index afeb8f9..5b209cf 100644
--- a/templates/plainbase.html
+++ b/templates/plainbase.html
@@ -1,4 +1,6 @@
{% autoescape off %}
+<!-- svxfile.html - this text visible because this template has been included -->
+<!-- This is ONLY used by templates/prospecting.html -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
@@ -7,11 +9,7 @@
<link rel="stylesheet" type="text/css" href="{{ settings.JSLIB_URL }}jquery-ui/css/smoothness/jquery-ui.css" />
<script src="{{ settings.JSLIB_URL }}jquery/jquery.min.js" type="text/javascript"></script>
<script src="{{ settings.JSLIB_URL }}jquery-ui/jquery-ui.min.js" type="text/javascript"></script>
-<script type="text/javascript">
- $(function() {
- $( "#tabs" ).tabs();
- });
-</script>
+
{% block extrahead %}{% endblock %}
</head>
<body {% block bodyattrs %}{% endblock %}>
diff --git a/templates/qm.html b/templates/qm.html
index 86ec2b5..58f040a 100644
--- a/templates/qm.html
+++ b/templates/qm.html
@@ -23,7 +23,6 @@
<h2>Related items</h2>
Parent cave: {{qm.found_by.cave|link}}
-(to do: add parent survey and parent subcave)
{% block content %}
<h3>Location</h3>
diff --git a/templates/subcave.html b/templates/subcave.html
deleted file mode 100644
index 28023b1..0000000
--- a/templates/subcave.html
+++ /dev/null
@@ -1,59 +0,0 @@
-{% extends "cavebase.html" %}
-
-{% load mptt_tags %}
-{% block title %} Subcave {{subcave}} {% endblock title %}
-{% block editLink %}<a href={{subcave.get_admin_url}}>Edit subcave {{subcave|wiki_to_html_short}}</a>{% endblock %}
-
-{% block contentheader %}
- {{subcave.title}}
-{% endblock contentheader %}
-
-
-
-{% block content %}
-{% block related %}
-
- <h2>Related places</h2>
-
- <h3>Parent</h3>
-
- <ul>
- {% if subcave.parent %}
- <li><a href="{{subcave.parent.get_absolute_url}}">{{subcave.parent}}</a></li>
- {% else %}
- <li><a href="{{subcave.cave.get_absolute_url}}">{{subcave.cave}}</a></li>
- {% endif %}
- </ul>
-
- <h3>Connected subareas</h3>
-
- <ul>
- {% for sibling in subcave.adjoining.all%}
- <li><a href="{{sibling.get_absolute_url}}">{{silbling}}</a></li>
- {% endfor %}
- </ul>
-
- <h3>Children</h3>
-
- <ul>
- {% for child in subcave.children.all %}
- <li><a href="{{child.get_absolute_url}}">{{child}}</a></li>
- {% endfor %}
- </ul>
-
-
-{% endblock %}
-
-ok here comes the drilldown<br />
-{% drilldown_tree_for_node subcave as drilldown %}
-{% for each in drilldown %}
-{{ each }}>
-{% endfor %}
-
-
-<h2>{{subcave}}</h2>
-<p>
- {{subcave.description}}
-</p>
-
-{% endblock content %} \ No newline at end of file