accordion on test template
This commit is contained in:
parent
d35de79f05
commit
6724355aa0
|
@ -1 +1,9 @@
|
||||||
# Create your views here.
|
# Create your views here.
|
||||||
|
from django.shortcuts import render_to_response
|
||||||
|
from django.template import RequestContext
|
||||||
|
|
||||||
|
def edit_gallery(request):
|
||||||
|
context = RequestContext(request, {})
|
||||||
|
return render_to_response("mediagallery/upload.html", context)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
(function($) {
|
(function($) {
|
||||||
|
|
||||||
var ItfFileUpload = function(file, Q) {
|
ItfFileUpload = function(file, Q) {
|
||||||
this.file = file;
|
this.file = file;
|
||||||
this.Q = Q;
|
this.Q = Q;
|
||||||
|
|
||||||
|
@ -41,8 +41,8 @@ ItfFileUpload.prototype.showProgress = function() {
|
||||||
this.$elem.find(".fileProgress").show();
|
this.$elem.find(".fileProgress").show();
|
||||||
};
|
};
|
||||||
|
|
||||||
ItfFileUpload.prototype.doProgress = function() {
|
ItfFileUpload.prototype.doProgress = function(progress) {
|
||||||
|
console.log(progress);
|
||||||
};
|
};
|
||||||
|
|
||||||
ItfFileUpload.prototype.getLi = function() {
|
ItfFileUpload.prototype.getLi = function() {
|
||||||
|
@ -55,7 +55,7 @@ ItfFileUpload.prototype.getLi = function() {
|
||||||
return $li;
|
return $li;
|
||||||
};
|
};
|
||||||
|
|
||||||
var ItfUploadQueue = function(options, $elem) {
|
ItfUploadQueue = function(options, $elem) {
|
||||||
var that = this;
|
var that = this;
|
||||||
this.files = [];
|
this.files = [];
|
||||||
this.isUploading = false;
|
this.isUploading = false;
|
||||||
|
@ -79,7 +79,7 @@ ItfUploadQueue.prototype.addFile = function(f) {
|
||||||
ItfUploadQueue.prototype.getData = function(f) {
|
ItfUploadQueue.prototype.getData = function(f) {
|
||||||
var that = this;
|
var that = this;
|
||||||
return {
|
return {
|
||||||
'name' f.name,
|
'name': f.name,
|
||||||
'id': that.options.id
|
'id': that.options.id
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,14 @@
|
||||||
<link rel="stylesheet" href="/static/css/modules/tabsinnerright.css" type="text/css" />
|
<link rel="stylesheet" href="/static/css/modules/tabsinnerright.css" type="text/css" />
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(function() {
|
||||||
|
$('.toggleLink').click(function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
$(this).next().slideToggle();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<ul class="tabsInnerRight">
|
<ul class="tabsInnerRight">
|
||||||
<li><a href="#about">About</a></li>
|
<li><a href="#about">About</a></li>
|
||||||
<li><a href="#productions">Productions</a></li>
|
<li><a href="#productions">Productions</a></li>
|
||||||
|
@ -41,6 +50,11 @@
|
||||||
|
|
||||||
<a href="" class="toggleLink">Performance License: Derivative Works allowed</a>
|
<a href="" class="toggleLink">Performance License: Derivative Works allowed</a>
|
||||||
|
|
||||||
|
<div class="toggleDiv">
|
||||||
|
<p>Some license information. </p>
|
||||||
|
<a href="" class="block">Read legal version</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
<a href="">Download</a>
|
<a href="">Download</a>
|
||||||
|
|
|
@ -45,6 +45,7 @@ urlpatterns = patterns('',
|
||||||
(r'^test_template/(?P<template_name>[a-zA-Z].*?)$', 'insidepages.views.test_template'),
|
(r'^test_template/(?P<template_name>[a-zA-Z].*?)$', 'insidepages.views.test_template'),
|
||||||
|
|
||||||
(r'edit_profile', 'itfprofiles.views.edit_profile'),
|
(r'edit_profile', 'itfprofiles.views.edit_profile'),
|
||||||
|
(r'^mediagallery/upload', 'mediagallery.views.edit_gallery'),
|
||||||
(r'^autocomplete/(?P<ctype_id>\d+)', 'app.views.autocomplete'),
|
(r'^autocomplete/(?P<ctype_id>\d+)', 'app.views.autocomplete'),
|
||||||
(r'^popup_form/(?P<ctype_id>\d+)', 'app.views.popup_form'),
|
(r'^popup_form/(?P<ctype_id>\d+)', 'app.views.popup_form'),
|
||||||
# (r'^autocompletes/itfprofiles/$', 'itfprofiles.views.autocomplete'),
|
# (r'^autocompletes/itfprofiles/$', 'itfprofiles.views.autocomplete'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user