Show uploaded files in bulletin editor

This commit is contained in:
Yingtong Li 2020-01-04 16:49:58 +11:00
parent 984ed2432d
commit 8ef85addd0
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -73,7 +73,12 @@
</div>
<div class="ui inline grid field">
<label class="three wide column">Image</label>
<input class="eleven wide column" type="file" name="image" value="{{ item.image or '' }}">
<div class="eleven wide column">
{% if item.image %}
<a href="{{ MEDIA_URL }}{{ item.image.name }}">{{ item.image.name.split('/')[-1] }}</a>
{% endif %}
<input type="file" name="image">
</div>
</div>
<div class="ui divider"></div>
<div class="ui inline grid field">