3
|
1 |
{% extends "ldt/user/user_base.html" %} {# list of projects ldt #} {% |
|
2 |
load i18n %} {% block js_import %}{{ block.super }} |
|
3 |
<script type="text/javascript" |
|
4 |
src="{{ BASE_URL }}static/js/jquery.DOMwindow.js"></script> |
0
|
5 |
<script type="text/javascript"> |
|
6 |
$(document).ready(function(){ |
|
7 |
$('.ldt_link').nyroModal({ |
|
8 |
height:662, |
|
9 |
width:1022, |
|
10 |
type:'iframe', |
|
11 |
forceType:'iframe', |
|
12 |
padding:5, |
|
13 |
bgColor: 'rgb(239, 239, 239)', |
|
14 |
titleFromIframe: false, |
|
15 |
beforeHideContent: function(elts, settings, callback){ |
|
16 |
try { |
|
17 |
var res = $('#ldtInitSwf',$('#nyroModalIframe').contents()); |
|
18 |
if(res.length > 0) |
|
19 |
{ |
|
20 |
var swfobj = res.get(0); |
|
21 |
if(swfobj && swfobj.forceSave != undefined) |
|
22 |
swfobj.forceSave(); |
|
23 |
} |
|
24 |
} |
|
25 |
catch(err) |
|
26 |
{ |
|
27 |
// do nothing |
|
28 |
} |
|
29 |
callback(); |
|
30 |
} |
|
31 |
}); |
|
32 |
$('.create_ldt_link').nyroModal({ |
|
33 |
height:662, |
|
34 |
width:1022, |
|
35 |
type:'ajax', |
|
36 |
padding:5, |
|
37 |
bgColor: 'rgb(239, 239, 239)', |
|
38 |
}); |
|
39 |
}); |
|
40 |
</script> |
3
|
41 |
{% endblock %} {% block css_import %} {{ block.super }} |
|
42 |
<link rel="stylesheet" type="text/css" |
|
43 |
href="{{ BASE_URL }}static/ldt/css/ldt.css" /> |
|
44 |
{% endblock %} {% block breadcrumb %} |
|
45 |
<li></li> |
|
46 |
<li><a href="{% url ldt.userpanel.views.space %}">{% trans |
|
47 |
"Space" %}</a></li> |
|
48 |
<li>{% trans "Ldt Project" %}</li> |
|
49 |
{% endblock %} {% block content_title %}{% trans "Ldt Project" %}{% |
|
50 |
endblock %} {% block iricontent %} |
|
51 |
<div id='ldtlist'><a |
|
52 |
href="{% url ldt.ldt.views.create_ldt_view %}" class="create_ldt_link">{% |
|
53 |
trans 'Create new project'%}</a> |
|
54 |
<table> |
|
55 |
<caption>{% trans "Project" %}</caption> |
|
56 |
<thead> |
|
57 |
<tr> |
|
58 |
<th width="170">{% trans "title" %}</th> |
|
59 |
<th width="20">{% trans " published" %}</th> |
|
60 |
</tr> |
|
61 |
</thead> |
|
62 |
<tbody> |
|
63 |
{% for ldt in ldtProjects %} |
|
64 |
<tr> |
|
65 |
<th><a href="{% url ldt.ldt.views.indexProject ldt.ldt_id %}" |
|
66 |
class="ldt_link">{{ ldt.title }}</a></th> |
|
67 |
{% ifequal ldt.state 2%} |
|
68 |
<td><a href="{% url ldt.ldt.views.unpublish ldt.ldt_id%}"><img |
|
69 |
alt="True" src="{{BASE_URL}}static/admin/img/admin/icon-yes.gif" /></td> |
|
70 |
{% else %} |
|
71 |
<td><a href="{% url ldt.ldt.views.publish ldt.ldt_id %}"><img |
|
72 |
alt="False" src="{{BASE_URL}}static/admin/img/admin/icon-no.gif" /></td> |
|
73 |
{% endifequal %} |
|
74 |
</tr> |
|
75 |
{% endfor %} |
|
76 |
</tbody> |
|
77 |
</table> |
0
|
78 |
</div> |
|
79 |
{% endblock %} |
|
80 |
|