server/src/metaeducation/templates/renkan_view.html
author durandn
Fri, 13 May 2016 13:12:14 +0200
changeset 69 0abec1f6a66f
parent 64 8745c7bcf096
child 70 97e57904f11d
permissions -rw-r--r--
Implemented client-side error notice for renkan in metaeducation
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
     1
{% extends "base.html" %}
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
     2
{% load staticfiles %}
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
     3
{% block js_import %}
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
     4
  {{block.super}}
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
     5
  <script src="{% static 'renkanmanager/lib/jquery-mousewheel/jquery.mousewheel.js' %}"></script>
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
     6
  <script src="{% static 'renkanmanager/lib/lodash/lodash.js' %}"></script>
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
     7
  <script src="{% static 'renkanmanager/lib/backbone/backbone.js' %}"></script>
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
     8
  <script src="{% static 'renkanmanager/lib/backbone-relational/backbone-relational.js' %}"></script>
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
     9
  <script src="{% static 'renkanmanager/lib/paper/paper-full.js' %}"></script>
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    10
  <script type="text/javascript">
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    11
      var require = {
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    12
          baseUrl: "{% static 'renkanmanager/lib/' %}"
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    13
      };
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    14
  </script>
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    15
  <script src="{% static 'renkanmanager/lib/requirejs/require.js' %}"></script>
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    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
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    18
  <script type="text/javascript">
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    19
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    20
      function startRenkan(){
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    21
          var _renkan = new Rkns.Renkan({
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    22
              static_url : "{% static 'renkanmanager/lib/renkan/' %}",
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    23
              editor_mode: false,
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    24
              show_bins: false,
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    25
              language: "{{LANGUAGE_CODE}}",
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    26
              user_authenticated: true,
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    27
              user_id: "{{ user.id }}",       
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    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
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    36
              user_color_editable: false,
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    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
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    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
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    50
          });
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    51
      };
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    52
  </script>
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    53
{% endblock js_import %}
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    54
{% block css_import %}
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    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
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    57
{% endblock css_import %}
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    58
{% block navbar %}
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    59
{% endblock navbar %}
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    60
{% block main_content %}
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    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
5f50937893ac Commit work on metaeducation
durandn
parents:
diff changeset
    75
{% endblock main_content %}