mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-25 23:35:25 +00:00
Adding QM JSON export
This commit is contained in:
5
templates/core/QMs_json_list.html
Normal file
5
templates/core/QMs_json_list.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends "baseapi.html" %}
|
||||
{% block content %}{
|
||||
{% for qm in object_list %}{% if not forloop.last %}"{{qm.number}}":
|
||||
["{{qm.expoyear}}","{{qm.cave}}","{{qm.blockname}}","QM{{qm.number}}","{{qm.grade}}","{{qm.get_absolute_url}}"],{% endif %}{% if forloop.last %}"{{qm.number}}": ["{{qm.expoyear}}","{{qm.cave}}","{{qm.blockname}}","QM{{qm.number}}","{{qm.grade}}","{{qm.get_absolute_url}}"]{% endif %}
|
||||
{% endfor %} }{% endblock %}
|
||||
@@ -53,6 +53,17 @@
|
||||
{{qm.block.date}} <a href="/survexfile/{{qm.block.survexfile.path}}.svx">{{qm.block}}.svx</a>
|
||||
{% endif %}
|
||||
|
||||
{% if qm.ticked %}
|
||||
<h3>Ticked</h3>
|
||||
This QM is TICKED
|
||||
{% endif %}
|
||||
|
||||
{% if qm.resolution_station_name %}
|
||||
<h3>resolution_station_name</h3>
|
||||
{{qm.resolution_station_name}}
|
||||
|
||||
{% endif %}
|
||||
|
||||
<h3>Location</h3>
|
||||
{% if qm.block %}
|
||||
Survex block: {{qm.blockname}}
|
||||
|
||||
Reference in New Issue
Block a user