changes
This commit is contained in:
14
plugins/media/templates/media/list.html
Normal file
14
plugins/media/templates/media/list.html
Normal file
@ -0,0 +1,14 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
<h2>All Uploaded Media</h2>
|
||||
<ul>
|
||||
{% for image in images %}
|
||||
<li>
|
||||
<img src="{{ url_for('media.media_file', filename=image.file_url) }}" alt="{{ image.caption }}" width="200"><br>
|
||||
{{ image.caption or "No caption" }}
|
||||
{% if image.plant_id %}<br>Plant ID: {{ image.plant_id }}{% endif %}
|
||||
{% if image.growlog_id %}<br>GrowLog ID: {{ image.growlog_id }}{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
12
plugins/media/templates/media/upload.html
Normal file
12
plugins/media/templates/media/upload.html
Normal file
@ -0,0 +1,12 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
<h2>Upload Media</h2>
|
||||
<form method="POST" enctype="multipart/form-data">
|
||||
{{ form.hidden_tag() }}
|
||||
<p>{{ form.image.label }}<br>{{ form.image() }}</p>
|
||||
<p>{{ form.caption.label }}<br>{{ form.caption(size=40) }}</p>
|
||||
<p>{{ form.plant_id.label }}<br>{{ form.plant_id() }}</p>
|
||||
<p>{{ form.growlog_id.label }}<br>{{ form.growlog_id() }}</p>
|
||||
<p>{{ form.submit() }}</p>
|
||||
</form>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user