diff options
author | Martin Green <martin.speleo@gmail.com> | 2011-07-11 00:50:07 +0100 |
---|---|---|
committer | Martin Green <martin.speleo@gmail.com> | 2011-07-11 00:50:07 +0100 |
commit | 5d8a5494cdb0409501b9182784a046e284d4d7b0 (patch) | |
tree | 515d77112c18c71ba8bc33f3f5b9fcb60af37c26 /templates/cave.html | |
parent | 65c55f0f21fe85a678d48842da10e0ea5c917ae5 (diff) | |
download | troggle-5d8a5494cdb0409501b9182784a046e284d4d7b0.tar.gz troggle-5d8a5494cdb0409501b9182784a046e284d4d7b0.tar.bz2 troggle-5d8a5494cdb0409501b9182784a046e284d4d7b0.zip |
Split up tags such that they use ajax
Diffstat (limited to 'templates/cave.html')
-rw-r--r-- | templates/cave.html | 93 |
1 files changed, 5 insertions, 88 deletions
diff --git a/templates/cave.html b/templates/cave.html index 12e83b4..d90f10b 100644 --- a/templates/cave.html +++ b/templates/cave.html @@ -29,96 +29,13 @@ <div id="tabs">
<ul>
- <li><a href="#entrances">Entrances</a></li>
- <li><a href="#cave">Cave</a></li>
- <li><a href="#logbook">Logbook</a></li>
- <li><a href="#qms">QMs</a></li>
+ <li><a href="/cave/description/{{cave.slug}}">Description</a></li>
+ <li><a href="/cave/entrance/{{cave.slug}}">Entrances</a></li>
+ <li><a href="/cave/logbook/{{cave.slug}}">Logbook</a></li>
+ <li><a href="/cave/qms/{{cave.slug}}">QMs</a></li>
</ul>
- <div id="entrances">
- <p>{% if cave.entrances %}
- <h2>Entrances</h2>
- {% for ent in cave.entrances %}
- <a href = "./{{ ent.entrance_letter|safe }}">{{ ent.entrance_letter|safe }}</a>
- {% if ent.entrance.marking %}
- Marking: {{ ent.entrance.marking_val|safe }}
- {% endif %}
- <br>
- {% endfor %}
-{% endif %}</p>
- </div>
- <div id="cave">
- <p>{% if cave.explorers %}
- <h2>Explorers</h2>
- {{ cave.explorers|safe }}
-{% endif %}
-{% if cave.underground_description %}
- <h2>Underground Description</h2>
- {{ cave.underground_description|safe }}
-{% endif %}
-{% if cave.equipment %}
- <h2>Equipment</h2>
- {{ cave.equipment|safe }}
-{% endif %}
-{% if cave.references %}
- <h2>References</h2>
- {{ cave.references|safe }}
-{% endif %}
-{% if cave.survey %}
- <h2>Survey</h2>
- {{ cave.survey|safe }}
-{% endif %}
-{% if cave.kataster_status %}
- <h2>Kataster_status</h2>
- {{ cave.kataster_status|safe }}
-{% endif %}
-{% if cave.underground_centre_line %}
- <h2>Underground Centre Line</h2>
- {{ cave.underground_centre_line|safe }}
-{% endif %}
-{% if cave.survex_file %}
- <h2>Survex File</h2>
- {{ cave.survex_file|safe }}
-{% endif %}
-{% if cave.notes %}
- <h2>Notes</h2>
- {{ cave.notes|safe }}
-{% endif %}</p>
- </div>
- <div id="logbook">
- <p>
-<table>
- {% for logbookentry in cave.logbookentry_set.all %}
- {% if logbookentry.title %}
- <tr>
- <td>{{logbookentry.date}}</td>
- <td><a href="{{ logbookentry.get_absolute_url }}">{{logbookentry.title|safe}}</a></td>
- </tr>
- {% endif %}
- {% endfor %}
- </table>
-</p>
- </div>
<div id="qms">
- <p>{% if cave.get_QMs %}
- <h2>Question marks</h2>
- <h3>Extant</h3>
- <ul id="cavelist">
- {% for QM in cave.get_QMs %}
- {% if QM.ticked_off_by %}
- {% else %}
- <li><a href="{{QM.get_absolute_url}}">{{QM}}</a></li>
- {% endif %}
- {% endfor %}
- </ul>
- <h3>Ticked off</h3>
- <ul>
- {% for QM in cave.get_QMs %}
- {% if QM.ticked_off_by %}
- <li><a href="{{QM.get_absolute_url}}">{{QM}}</a></li>
- {% endif %}
- {% endfor %}
- </ul>
-{% endif %}</p>
+
</div>
</div>
|