diff --git a/core/views_caves.py b/core/views_caves.py index e3df0b3..2dcef5e 100644 --- a/core/views_caves.py +++ b/core/views_caves.py @@ -78,6 +78,7 @@ def caveDescription(request, slug): return render_with_context(request,'nonpublic.html', {'instance': cave}) else: return render_with_context(request,'cave_uground_description.html', {'cave': cave}) + def caveQMs(request, slug): cave = Cave.objects.get(caveslug__slug = slug) if cave.non_public and settings.PUBLIC_SITE and not request.user.is_authenticated(): diff --git a/templates/cave.html b/templates/cave.html index f38f66d..5bd77f6 100644 --- a/templates/cave.html +++ b/templates/cave.html @@ -1,5 +1,6 @@ {% extends "cavebase.html" %} +{% load wiki_markup %} {% block content %} {% block contentheader %} @@ -26,17 +27,117 @@ {% block related %} {% endblock %}{% endblock %} -
- -
+
+

{% if cave.entrances %} +

Entrances

+
    + {% for ent in cave.entrances %} +
  • + {{ ent.entrance_letter|safe }} + {% if ent.entrance.name %} + {{ ent.entrance.name|safe }} + {% endif %}Edit +
    + {% if ent.entrance.marking %} +
    Marking
    {{ ent.entrance.marking_val|safe }}
    + {% endif %} + {% if ent.entrance.marking_comment %} +
    Marking Comment
    {{ ent.entrance.marking_comment|safe }}
    + {% endif %} + {% if ent.entrance.findability %} +
    Findability
    {{ ent.entrance.findability_val|safe }}
    + {% endif %} + {% if ent.entrance.findability_comment %} +
    Findability Comment
    {{ ent.entrance.findability_comment|safe }}
    + {% endif %} + {% if ent.entrance.location_description %} +
    Location
    {{ ent.entrance.location_description|safe }}
    + {% endif %} + {% if ent.entrance.approach %} +
    Approach
    {{ ent.entrance.approach|safe }}
    + {% endif %} + {% if ent.entrance.map_description %} +
    Map
    {{ ent.entrance.map_description|safe }}
    + {% endif %} + {% if ent.entrance.underground_description %} +
    Underground
    {{ ent.entrance.underground_description|safe }}
    + {% endif %} + {% if ent.entrance.photo %} +
    Photo
    {{ ent.entrance.photo|safe }}
    + {% endif %} + {% if ent.entrance.entrance_description %} +
    Description
    {{ ent.entrance.entrance_description|safe }}
    + {% endif %} + {% if ent.entrance.explorers %} +
    Explorers
    {{ ent.entrance.explorers|safe }}
    + {% endif %} + {% if ent.entrance.northing %} +
    Location
    {{ ent.entrance.northing|safe }}, {{ ent.entrance.easting|safe }}, {{ ent.entrance.alt|safe }}m
    + {% endif %} + {% if ent.entrance.tag_station %} +
    Tag Location
    {{ ent.entrance.tag_station }} {{ ent.entrance.tag.y|safe }}, {{ ent.entrance.tag.x|safe }}, {{ ent.entrance.tag.z|safe }}m
    + {% endif %} + {% if ent.entrance.bearings %} +
    Bearings
    {{ ent.entrance.bearings|safe }}
    + {% endif %} + {% if ent.entrance.exact_station %} +
    Exact Station
    {{ ent.entrance.exact_station|safe }} {{ ent.entrance.exact_location.y|safe }}, {{ ent.entrance.exact_location.x|safe }}, {{ ent.entrance.exact_location.z|safe }}m
    + {% endif %} + {% if ent.entrance.other_station %} +
    Other Station
    {{ ent.entrance.other_station|safe }} + {% if ent.entrance.other_description %} + - {{ ent.entrance.other_description|safe }} + {% endif %} {{ ent.entrance.other_location.y|safe }}, {{ ent.entrance.other_location.x|safe }}, {{ ent.entrance.other_location.z|safe }}m +
    + {% endif %} +
    +
  • + {% endfor %} +
-
+{% endif %}

+New Entrance
+
-{% endblock %} +

{% if cave.explorers %} +

Explorers

+ {{ cave.explorers|safe }} +{% endif %} +{% if cave.underground_description %} +

Underground Description

+ {{ cave.underground_description|safe }} +{% endif %} +{% if cave.equipment %} +

Equipment

+ {{ cave.equipment|safe }} +{% endif %} +{% if cave.references %} +

References

+ {{ cave.references|safe }} +{% endif %} +{% if cave.survey %} +

Survey

+ {{ cave.survey|safe }} +{% endif %} +{% if cave.kataster_status %} +

Kataster_status

+ {{ cave.kataster_status|safe }} +{% endif %} +{% if cave.underground_centre_line %} +

Underground Centre Line

+ {{ cave.underground_centre_line|safe }} +{% endif %} +{% if cave.survex_file %} +

Survex File

+ {{ cave.survex_file|safe }} +{% endif %} +{% if cave.notes %} +

Notes

+ {{ cave.notes|safe }} +{% endif %}

+ +
+ +{% endblock content %}