| author | durandn |
| Fri, 13 May 2016 13:12:14 +0200 | |
| changeset 69 | 0abec1f6a66f |
| parent 64 | 8745c7bcf096 |
| child 70 | 97e57904f11d |
| permissions | -rw-r--r-- |
| 1 | 1 |
{% extends "base.html" %} |
2 |
{% load staticfiles %} |
|
3 |
{% block js_import %} |
|
4 |
{{block.super}} |
|
5 |
<script src="{% static 'renkanmanager/lib/jquery-mousewheel/jquery.mousewheel.js' %}"></script> |
|
6 |
<script src="{% static 'renkanmanager/lib/lodash/lodash.js' %}"></script> |
|
7 |
<script src="{% static 'renkanmanager/lib/backbone/backbone.js' %}"></script> |
|
8 |
<script src="{% static 'renkanmanager/lib/backbone-relational/backbone-relational.js' %}"></script> |
|
9 |
<script src="{% static 'renkanmanager/lib/paper/paper-full.js' %}"></script> |
|
10 |
<script type="text/javascript"> |
|
11 |
var require = { |
|
12 |
baseUrl: "{% static 'renkanmanager/lib/' %}" |
|
13 |
}; |
|
14 |
</script> |
|
15 |
<script src="{% static 'renkanmanager/lib/requirejs/require.js' %}"></script> |
|
16 |
<script src="{% static 'renkanmanager/lib/renkan/js/renkan.js' %}"></script> |
|
|
69
0abec1f6a66f
Implemented client-side error notice for renkan in metaeducation
durandn
parents:
64
diff
changeset
|
17 |
<script src="{% static 'metaeducation/js/mtdc-save.js' %}"></script> |
| 1 | 18 |
<script type="text/javascript"> |
19 |
||
20 |
function startRenkan(){ |
|
21 |
var _renkan = new Rkns.Renkan({ |
|
22 |
static_url : "{% static 'renkanmanager/lib/renkan/' %}", |
|
23 |
editor_mode: false, |
|
24 |
show_bins: false, |
|
25 |
language: "{{LANGUAGE_CODE}}", |
|
26 |
user_authenticated: true, |
|
27 |
user_id: "{{ user.id }}", |
|
28 |
user_name: "{{ user.username }}", |
|
|
64
8745c7bcf096
removed some unecessary buttons at the top of the renkan editor (via config options)
durandn
parents:
24
diff
changeset
|
29 |
url_parameters: false, |
|
8745c7bcf096
removed some unecessary buttons at the top of the renkan editor (via config options)
durandn
parents:
24
diff
changeset
|
30 |
update_url: false, |
|
8745c7bcf096
removed some unecessary buttons at the top of the renkan editor (via config options)
durandn
parents:
24
diff
changeset
|
31 |
user_color_editable: false, |
|
8745c7bcf096
removed some unecessary buttons at the top of the renkan editor (via config options)
durandn
parents:
24
diff
changeset
|
32 |
show_user_color: false, |
|
8745c7bcf096
removed some unecessary buttons at the top of the renkan editor (via config options)
durandn
parents:
24
diff
changeset
|
33 |
show_search_field: true, |
|
8745c7bcf096
removed some unecessary buttons at the top of the renkan editor (via config options)
durandn
parents:
24
diff
changeset
|
34 |
show_user_list: false, |
|
8745c7bcf096
removed some unecessary buttons at the top of the renkan editor (via config options)
durandn
parents:
24
diff
changeset
|
35 |
user_name_editable: false, |
| 1 | 36 |
user_color_editable: false, |
37 |
show_user_color: false, |
|
|
64
8745c7bcf096
removed some unecessary buttons at the top of the renkan editor (via config options)
durandn
parents:
24
diff
changeset
|
38 |
show_save_button: true, |
|
8745c7bcf096
removed some unecessary buttons at the top of the renkan editor (via config options)
durandn
parents:
24
diff
changeset
|
39 |
show_export_button: false, |
|
8745c7bcf096
removed some unecessary buttons at the top of the renkan editor (via config options)
durandn
parents:
24
diff
changeset
|
40 |
show_open_button: false, |
|
8745c7bcf096
removed some unecessary buttons at the top of the renkan editor (via config options)
durandn
parents:
24
diff
changeset
|
41 |
show_addnode_button: true, |
|
8745c7bcf096
removed some unecessary buttons at the top of the renkan editor (via config options)
durandn
parents:
24
diff
changeset
|
42 |
show_addedge_button: true, |
|
8745c7bcf096
removed some unecessary buttons at the top of the renkan editor (via config options)
durandn
parents:
24
diff
changeset
|
43 |
show_bookmarklet: false, |
|
8745c7bcf096
removed some unecessary buttons at the top of the renkan editor (via config options)
durandn
parents:
24
diff
changeset
|
44 |
show_fullscreen_button: false, |
|
8745c7bcf096
removed some unecessary buttons at the top of the renkan editor (via config options)
durandn
parents:
24
diff
changeset
|
45 |
home_button_url: false, |
|
8745c7bcf096
removed some unecessary buttons at the top of the renkan editor (via config options)
durandn
parents:
24
diff
changeset
|
46 |
popup_editor: false, |
| 1 | 47 |
}); |
|
69
0abec1f6a66f
Implemented client-side error notice for renkan in metaeducation
durandn
parents:
64
diff
changeset
|
48 |
Rkns.mtdcJsonIO(_renkan, { |
|
24
98c29b9a1ff8
forgot to namespace renkan api url in front_view template
durandn
parents:
1
diff
changeset
|
49 |
url: "{% url 'v1.0:renkan_detail' renkan_guid=renkan_guid %}?content_only=true" |
| 1 | 50 |
}); |
51 |
}; |
|
52 |
</script> |
|
53 |
{% endblock js_import %} |
|
54 |
{% block css_import %} |
|
55 |
<link rel="stylesheet" href="{% static 'renkanmanager/lib/renkan/css/renkan.css' %}" /> |
|
|
69
0abec1f6a66f
Implemented client-side error notice for renkan in metaeducation
durandn
parents:
64
diff
changeset
|
56 |
<link rel="stylesheet" href="{% static 'metaeducation/css/style.css' %}" /> |
| 1 | 57 |
{% endblock css_import %} |
58 |
{% block navbar %} |
|
59 |
{% endblock navbar %} |
|
60 |
{% block main_content %} |
|
61 |
<div id="renkan"></div> |
|
|
69
0abec1f6a66f
Implemented client-side error notice for renkan in metaeducation
durandn
parents:
64
diff
changeset
|
62 |
<div id="renkanErrorModal" class="errorModal"> |
|
0abec1f6a66f
Implemented client-side error notice for renkan in metaeducation
durandn
parents:
64
diff
changeset
|
63 |
<div class="errorModal-cnt"> |
|
0abec1f6a66f
Implemented client-side error notice for renkan in metaeducation
durandn
parents:
64
diff
changeset
|
64 |
<div class="errorModal-header"> |
|
0abec1f6a66f
Implemented client-side error notice for renkan in metaeducation
durandn
parents:
64
diff
changeset
|
65 |
<h2>Le serveur Renkan a renvoyé une erreur.</h2> |
|
0abec1f6a66f
Implemented client-side error notice for renkan in metaeducation
durandn
parents:
64
diff
changeset
|
66 |
</div> |
|
0abec1f6a66f
Implemented client-side error notice for renkan in metaeducation
durandn
parents:
64
diff
changeset
|
67 |
<div class="errorModal-body"> |
|
0abec1f6a66f
Implemented client-side error notice for renkan in metaeducation
durandn
parents:
64
diff
changeset
|
68 |
<p class="errorMsg"></p> |
|
0abec1f6a66f
Implemented client-side error notice for renkan in metaeducation
durandn
parents:
64
diff
changeset
|
69 |
</div> |
|
0abec1f6a66f
Implemented client-side error notice for renkan in metaeducation
durandn
parents:
64
diff
changeset
|
70 |
<div class="errorModal-footer"> |
|
0abec1f6a66f
Implemented client-side error notice for renkan in metaeducation
durandn
parents:
64
diff
changeset
|
71 |
<h4 id="renkanErrorReload">Recharger la page</h4> |
|
0abec1f6a66f
Implemented client-side error notice for renkan in metaeducation
durandn
parents:
64
diff
changeset
|
72 |
</div> |
|
0abec1f6a66f
Implemented client-side error notice for renkan in metaeducation
durandn
parents:
64
diff
changeset
|
73 |
</div> |
|
0abec1f6a66f
Implemented client-side error notice for renkan in metaeducation
durandn
parents:
64
diff
changeset
|
74 |
</div> |
| 1 | 75 |
{% endblock main_content %} |