26 lines
823 B
HTML
26 lines
823 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<h1>Upload Image</h1>
|
|
<form method="POST" action="/image" enctype="multipart/form-data">
|
|
<input type="file" name="image">
|
|
<input type="submit" value="Upload">
|
|
</form>
|
|
|
|
{% if filename %}
|
|
<br><br>
|
|
<img style="border: 1px solid blueviolet;"
|
|
src="{{ url_for('uploaded_file', filename=filename) }}" alt="Uploaded Image">
|
|
|
|
<form method="POST" action="/image-print">
|
|
{% if cut %}
|
|
<input type="checkbox" name="cut" value="cut" checked>
|
|
{%else %}
|
|
<input type="checkbox" name="cut" value="cut">
|
|
{%endif%}
|
|
<label for="cut"> Cut paper after printing </label><br>
|
|
|
|
<input type="submit" value="Print" style="font-size: 2em; padding: 20px 40px;">
|
|
{% endif %}
|
|
{% endblock %}
|
|
|