Display an upload form (upload is not yet ready)

This commit is contained in:
Julien Duponchelle committed 2015-02-23 11:28:33 +01:00
1 parent 210aa6f12a
commit f7cd09d5fb
30 files changed
+234 -100

No files matched your search

+16 -20
View File
@@ -1,20 +1,16 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Upload Form for GNS3 server {{version}}</title>
</head>
<body>
<p><h1>Select & Upload (v{{version}})</h1></p>
<form enctype="multipart/form-data" action="/upload" method="post">
File: <input type="file" name="file" />
<br />
<br />
<input type="submit" value="upload" />
</form>
{%if items%}
<h3>Files on {{host}}</h3>
{%for item in items%}
<p>{{path}}/{{item}}</a></p>
{%end%}
{%end%}
</body>
{% extends "layout.html" %}
{% block body %}
<h1>Select & Upload an image for GNS3</h1>
<form enctype="multipart/form-data" action="/upload" method="post">
File: <input type="file" name="file" />
<br />
<br />
<input type="submit" value="Upload" />
</form>
{%if items%}
<h3>Files on {{host}}</h3>
{%for item in items%}
<p>{{path}}/{{item}}</a></p>
{%endfor%}
{%endif%}
{% endblock %}