diff options
author | Rad <radost.waszkiewicz@gmail.com> | 2019-02-28 12:36:49 +0000 |
---|---|---|
committer | Rad <radost.waszkiewicz@gmail.com> | 2019-02-28 12:36:49 +0000 |
commit | 6b59e3a68908b2ee3b05e4734a8f72d10a349c34 (patch) | |
tree | 93e75e8f0994bbd1c2aed1c6d91f243d524e081c /templates/millenialcaves.html | |
parent | ce268ec306946e4f4aadd8ee358a28e79f22b9b3 (diff) | |
download | troggle-6b59e3a68908b2ee3b05e4734a8f72d10a349c34.tar.gz troggle-6b59e3a68908b2ee3b05e4734a8f72d10a349c34.tar.bz2 troggle-6b59e3a68908b2ee3b05e4734a8f72d10a349c34.zip |
rebuild descriptions database, some visuals
Diffstat (limited to 'templates/millenialcaves.html')
-rw-r--r-- | templates/millenialcaves.html | 136 |
1 files changed, 41 insertions, 95 deletions
diff --git a/templates/millenialcaves.html b/templates/millenialcaves.html index 8e8c5c6..73372f8 100644 --- a/templates/millenialcaves.html +++ b/templates/millenialcaves.html @@ -8,116 +8,62 @@ <body> -<table> -<tr> -<th>Cave</th> -<th>Components</th> -<th>aaa</th> -<th>bbb</th> -</tr> - - -{% for subdircave, cavefiles, subsurvdirs in subdircaves %} -<tr> - <td><b><a href="{% url "svx" cavefiles.0.0 %}">{{cavefiles.0.1}}</a></b></td> - <td> - root: {% for cavepath, cavename in cavefiles.1 %} - <a href="{% url "svx" cavepath %}">{{cavename}}</a> - {% endfor %} - <br> - {% for primarycavefile, subcavefiles in subsurvdirs %} - {{ primarycavefile.1 }}: - {% for cavepath, cavename in subcavefiles %} - <a href="{% url "svx" cavepath %}">{{cavename}}</a> - {% endfor %} - <br> - {% endfor %} - </td> -</tr> -{% endfor %} - -{% for primarycavefile, subcavefiles in multifilecaves %} -<tr> - <td> - <a href="{% url "survexcavessingle" primarycavefile.1 %}">{{primarycavefile.1}}</a> - </td> - <td> - {% for cavepath, cavename in subcavefiles %} - <a href="{% url "svx" cavepath %}">{{cavename}}</a> - {% endfor %} - </td> -</tr> -{% endfor %} - - -</table> +<h2>Caves of loserplateau (locations acording to all.3d)</h2> +<span style="font-size:70%"> +Name contains:<br> +<div id="inputf"><input type="text" name="CaveName" id="CaveName" style="width:100%"></div><br> +Depth between (min, max) in meters (0 disables filter):<br> +<div id="inputf"><input type="number" name="CaveDepthMin" id="CaveDepthMin" style="width:45%"> - <input type="number" name="CaveDepthMax" id="CaveDepthMax" style="width:45%"></div><br> +Length between (min, max) in meters (0 disables filter):<br> +<div id="inputf"><input type="number" name="CaveLengthMin" id="CaveLengthMin" style="width:45%"> - <input type="number" name="CaveLengthMax" id="CaveLengthMax" style="width:45%"></div><br> +Last visit after (date in YYYY.MM.DD format works best):<br> +<div id="inputf"><input type="text" name="VisitDate" id="VisitDate" style="width:100%"></div><br> +Last visited by (single word or regular expression, search is not case sensitive):<br> +(e.g. <span id="mono">/da.e/</span> matches both Dave and Dane, <span id="mono">/w..k|ol{2}y/</span> matches either Wook and Olly)<br> +<div id="inputf"><input type="text" name="Visitor" id="Visitor" style="width:100%"></div><br> +Hide incomplete entries:<br> +<div id="inputf"><input type="checkbox" name="Incomplete" id="Incomplete" style="width:100%"></div><br><br> +<button onclick="filterTable('caves_table')">Filter</button><br> +<button onclick="filterTableReset('caves_table')">Reset filters</button><br> +Click on column headers to sort/reverse sort<br><br><br> +</span> -======================= OLD STUFF ============================== -<td><a href="{% url "svx" cavefiles.0.0 %}">{{cavefiles.0.1}}</a></td> -<p><a href="#cdir">caves with subdirectories</a> | <a href="#cmult">caves with multiple files</a> | <a href="#csing">caves with single files</a></p> -<h3><a href="/survexfile/all.svx">Link to all.svx for processing</a></h3> - -<h2 id="cdir">Caves with subdirectories</h2> - -{% for subdircave, cavefiles, subsurvdirs in subdircaves %} -<h3>{{cavefiles.0.1}} - <a href="{% url "survexcavessingle" cavefiles.0.1 %}">dates and explorers</a></h3> -<table> +<table id="caves_table"> <tr> - <td><b><a href="{% url "svx" cavefiles.0.0 %}">{{cavefiles.0.1}}</a></b></td> - <td> - {% for cavepath, cavename in cavefiles.1 %} - <a href="{% url "svx" cavepath %}">{{cavename}}</a> - {% endfor %} - </td> +<th onclick="sortTable(0,'caves_table',0)">Cave survex id</th> +<th onclick="sortTable(1,'caves_table',0)">Cave name</th> +<th onclick="sortTable(2,'caves_table',1)">Cave depth</th> +<th onclick="sortTable(3,'caves_table',1)">Cave length</th> +<th onclick="sortTable(4,'caves_table',0)">Last leg date</th> +<th onclick="sortTable(5,'caves_table',0)">Cave location (UTM)</th> +<th onclick="sortTable(6,'caves_table',0)">Cave location (lat/lon)</th> +<th onclick="sortTable(7,'caves_table',1)">Top camp distance [m]</th> </tr> -{% for primarycavefile, subcavefiles in subsurvdirs %} +{% for cave in caves %} <tr> - <td><a href="{% url "svx" primarycavefile.0 %}">{{primarycavefile.1}}</a></td> - <td> - {% for cavepath, cavename in subcavefiles %} - <a href="{% url "svx" cavepath %}">{{cavename}}</a> - {% endfor %} - </td> -</tr> -{% endfor %} -</table> - -{% endfor %} - - -<h2 id="cmult">Caves of multiple files</h2> -<table> -<tr><th>Dates and explorers</th><th>Survex files</th></tr> -{% for primarycavefile, subcavefiles in multifilecaves %} -<tr> - <td> - <a href="{% url "survexcavessingle" primarycavefile.1 %}">{{primarycavefile.1}}</a> - </td> - <td> - <a href="{% url "svx" primarycavefile.0 %}">{{primarycavefile.1}}</a> - - {% for cavepath, cavename in subcavefiles %} - <a href="{% url "svx" cavepath %}">{{cavename}}</a> - {% endfor %} - </td> + <td><a href={{cave.description}}>{{ cave.name }}</a></td> + <td>{{ cave.title }}</td> + <td>{{ cave.total_depth }}</td> + <td>{{ cave.total_length }}</td> + <td>{{ cave.date }}</td> + <td>33U {{ cave.entrance }}</td> + <td>{{ cave.lat_lon_entrance }}</td> + <td>{{ cave.top_camp_distance}}</td> </tr> {% endfor %} + </table> -<h2 id="csing">Caves of one file</h2> -<p> -{% for cavepath, cavename in onefilecaves %} - <a href="{% url "svx" cavepath %}">{{cavename}}</a> -{% endfor %} -</p> -<body> +<script type="text/javascript" src="{{ settings.MEDIA_URL }}/scripts/TableSort.js"></script> + +</body> -<script type="text/javascript" src="scripts/TableSort.js"></script> </html> |