diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/cave_debug.html | 36 | ||||
-rw-r--r-- | templates/editcave.html | 2 |
2 files changed, 37 insertions, 1 deletions
diff --git a/templates/cave_debug.html b/templates/cave_debug.html new file mode 100644 index 0000000..be0ce20 --- /dev/null +++ b/templates/cave_debug.html @@ -0,0 +1,36 @@ +{% extends "base.html" %} +{% block title %}DEBUG page +<!-- cave_debug.html - this text visible because this template has been included --> +{% endblock %} + +{% block content %} + +<h2 id="cmult">Entrances</h2> +<table> +<tr><th>ent</th> +<th>cached_primary_slug</th> +<th>N slugs</th> +<th>slugs</th> +</tr> +{% for ent in ents %} +<tr> + <td> + {{ent}} + </td> + <td> + {{ent.cached_primary_slug}} + </td> + <td> + {{ent.entranceslug_set.all|length }} + </td> + <td> + {% for s in ent.entranceslug_set.all %} + {{s.slug}}, + {% endfor %} + </td> + +{% endfor %} +</table> + + +{% endblock %} diff --git a/templates/editcave.html b/templates/editcave.html index 75033b3..640412a 100644 --- a/templates/editcave.html +++ b/templates/editcave.html @@ -8,7 +8,7 @@ {% include 'html_editor_pop_ups.html' %} <h2>{{message}}</h2> <form action="" method="post">{% csrf_token %} - <table>{{ form }}<!--1-->{{caveAndEntranceFormSet}}<!--2--></table> + <table>{{ form }}<!-- begin caveAndEntranceFormSet-->{{caveAndEntranceFormSet}}<!--end caveAndEntranceFormSet--></table> <p><input type="submit" value="Submit" /></p> </form> |