image_upload/templates/upload.html

41 lines
1.0 KiB
HTML
Raw Normal View History

2024-11-16 09:47:07 +01:00
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Perma-Upload a picture</title>
2024-11-16 10:10:30 +01:00
<style media="screen">
body {
background-image: url({{ url_for('static', filename='content/glit_background.gif')}});
}
2024-11-16 10:32:31 +01:00
.box {
2024-11-16 10:10:30 +01:00
background: #f9f871;
margin: auto;
padding: 1em;
width: 30em;
min-height: 5em;
}
</style>
2024-11-16 09:47:07 +01:00
</head>
<body>
2024-11-16 10:32:31 +01:00
<form method="POST" enctype="multipart/form-data" id="uploadform" class="box">
2024-11-16 09:47:07 +01:00
{{ imageuploadform.csrf_token }}
<fieldset class="fileupload-field">
2024-11-16 10:10:30 +01:00
<legend>Upload an image here</legend>
2024-11-16 09:47:07 +01:00
{{ imageuploadform.image.label }}
{{ imageuploadform.image }}
{% for message in imageuploadform.image.errors %}
<div class="error">{{ message }}</div>
{% endfor %}
</fieldset>
{{ imageuploadform.submit }}
</form>
2024-11-16 10:32:31 +01:00
<div class="box">
<ol>
{% for uploaded_file in uploaded_files %}
<li><a href="{{uploaded_file}}">{{uploaded_file}}</a></li>
{% endfor %}
</ol>
</div>
2024-11-16 09:47:07 +01:00
</body>