accordion on test template

This commit is contained in:
Sanj 2012-11-04 11:49:03 +05:30
parent d35de79f05
commit 6724355aa0
4 changed files with 28 additions and 5 deletions

View File

@ -1 +1,9 @@
# 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)

View File

@ -1,6 +1,6 @@
(function($) {
var ItfFileUpload = function(file, Q) {
ItfFileUpload = function(file, Q) {
this.file = file;
this.Q = Q;
@ -41,8 +41,8 @@ ItfFileUpload.prototype.showProgress = function() {
this.$elem.find(".fileProgress").show();
};
ItfFileUpload.prototype.doProgress = function() {
ItfFileUpload.prototype.doProgress = function(progress) {
console.log(progress);
};
ItfFileUpload.prototype.getLi = function() {
@ -55,7 +55,7 @@ ItfFileUpload.prototype.getLi = function() {
return $li;
};
var ItfUploadQueue = function(options, $elem) {
ItfUploadQueue = function(options, $elem) {
var that = this;
this.files = [];
this.isUploading = false;
@ -79,7 +79,7 @@ ItfUploadQueue.prototype.addFile = function(f) {
ItfUploadQueue.prototype.getData = function(f) {
var that = this;
return {
'name' f.name,
'name': f.name,
'id': that.options.id
}
};

View File

@ -1,5 +1,14 @@
<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">
<li><a href="#about">About</a></li>
<li><a href="#productions">Productions</a></li>
@ -41,6 +50,11 @@
<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>
<a href="">Download</a>

View File

@ -45,6 +45,7 @@ urlpatterns = patterns('',
(r'^test_template/(?P<template_name>[a-zA-Z].*?)$', 'insidepages.views.test_template'),
(r'edit_profile', 'itfprofiles.views.edit_profile'),
(r'^mediagallery/upload', 'mediagallery.views.edit_gallery'),
(r'^autocomplete/(?P<ctype_id>\d+)', 'app.views.autocomplete'),
(r'^popup_form/(?P<ctype_id>\d+)', 'app.views.popup_form'),
# (r'^autocompletes/itfprofiles/$', 'itfprofiles.views.autocomplete'),