Show uploaded files in bulletin editor
This commit is contained in:
parent
984ed2432d
commit
8ef85addd0
@ -73,7 +73,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="ui inline grid field">
|
<div class="ui inline grid field">
|
||||||
<label class="three wide column">Image</label>
|
<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>
|
||||||
<div class="ui divider"></div>
|
<div class="ui divider"></div>
|
||||||
<div class="ui inline grid field">
|
<div class="ui inline grid field">
|
||||||
|
Loading…
Reference in New Issue
Block a user