oops, forgot to add upload template
This commit is contained in:
parent
5767b63238
commit
32fafa238d
45
itf/templates/mediagallery/upload.html
Normal file
45
itf/templates/mediagallery/upload.html
Normal file
|
@ -0,0 +1,45 @@
|
|||
|
||||
{% extends 'noel/base.html' %}
|
||||
|
||||
{% load thumbnail %}
|
||||
{% block extra_head %}
|
||||
<script src="/static/js/upload/chunkupload.js"></script>
|
||||
<script src="/static/js/upload/itfUpload.js"></script>
|
||||
<script>
|
||||
$(function() {
|
||||
$('#uploadImages').uploadQueue({'addURL': '/mediagallery/upload/', 'id': {{ gallery.id }} });
|
||||
//var itfQ = ItfUploadQueue({'addURL': '/mediagallery/upload/'}, $('#uploadImages'));
|
||||
});
|
||||
|
||||
</script>
|
||||
<style>
|
||||
#uploadImages {
|
||||
min-width: 400px;
|
||||
min-height: 300px;
|
||||
background: #f00;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<input class="galleryTitle" value="{{ gallery.title }}" />
|
||||
|
||||
<div id="uploadImages">
|
||||
<input type="file" id="uploadImageFiles" multiple />
|
||||
|
||||
<div id="photosContainer">
|
||||
{% for photo in photos %}
|
||||
<div class="photoContainer">
|
||||
{% if photo.image %}
|
||||
{% thumbnail photo.image "100x100" crop="center" as thumb %}
|
||||
<img src="{{ thumb.url }}" />
|
||||
{% endthumbnail %}
|
||||
{% endif %}
|
||||
<input class="photoTitle" value="{{ photo.title }}" />
|
||||
<input type="hidden" class="photoId" value="{{ photo.id }}" />
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
Loading…
Reference in New Issue
Block a user