forked from expo/troggle
removing cruft, renaming badly named things
This commit is contained in:
@@ -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 %}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 %}
|
||||
@@ -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>
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
|
||||
{{ form }}
|
||||
|
||||
{% endblock %}
|
||||
@@ -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 %}>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 %}
|
||||
Reference in New Issue
Block a user