2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-04-24 23:48:23 +01:00

dwg upload and django admin extra search

This commit is contained in:
Philip Sargent
2021-05-05 00:35:10 +01:00
parent 44b6770b6a
commit d374779c47
13 changed files with 333 additions and 239 deletions

View File

@@ -22,41 +22,48 @@
<p>Only drawings and drawing config files can be uploaded.
</div>
<div style = "max-width:70%; margin-left:20%; text-align: left" >
{% if refused %}
<p>
<b>Files refused: </b><br>
{% for f in refused %}
<em>{{f}}</em> <br>
{% endfor %}
</p>
{% endif %}
{% if filesaved %}
<p>
<b>Drawing(s) saved as <br>
<b>Drawing(s) saved as </b><br>
{% for f in actual_saved %}
<em>{{f}}</em> <br>
{% endfor %}
<br><br>Upload more?</b>
<br>Upload more?</b>
</p>
<br>
{% endif %}
{% if doesnotexist %}
<p>No folder of this name.<br>
It would be created if you upload a file.
{% else %}
<strong style="font-size: 110%;">Files:</strong><br>
{% for f in files %}
<a href="{{urlfile|urlencode}}/{{f|urlencode}}">{{f}}</a><br />
{% empty %}
<p>&lt;No files here&gt;
{% endfor %}
<hr><br>
{% if doesnotexist %}
<p>No folder of this name.<br>
It would be created if you upload a file.
{% else %}
<strong style="font-size: 110%;">Files:</strong><br>
{% for f in files %}
<a href="{{urlfile|urlencode}}/{{f|urlencode}}">{{f}}</a><br />
{% empty %}
<p>&lt;No files here&gt;
{% endfor %}
<p><strong style="font-size: 110%;">Directories:</strong><br>
{% if folder %}
<a href="{{urldir}}/..">[up]</a><br />
<p><strong style="font-size: 110%;">Directories:</strong><br>
{% if folder %}
<a href="{{urldir}}/..">[up]</a><br />
{% endif %}
{% for f in dirs %}
<a href="{{urldir}}/{{f}}">/{{f}}/</a><br />
{% empty %}
<p>&lt;No subdirectories&gt;
{% endfor %}
<p>Clicking on a filename only works if the drawing file has been imported into the system as part of a bulk-import
as we are matching it against a file recorded in the database.
{% endif %}
{% for f in dirs %}
<a href="{{urldir}}/{{f}}">/{{f}}/</a><br />
{% empty %}
<p>&lt;No subdirectories&gt;
{% endfor %}
<p>Clicking on a filename only works if the drawing file has been imported into the system as part of a bulk-import
as we are matching it against a file recorded in the database.
{% endif %}
</div>
{% endblock %}