{% extends "base.html" %}
{% load static %}

{% block title %}{{block.super}} &gt; {{datasheet.title}}{% endblock %}

{% block css_import %}
{{block.super}}
        <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/additionnal_renkan.css' %}" />
        <link rel="stylesheet" type="text/css" href="{% static 'renkanmanager/lib/renkan/css/renkan.css' %}" />
{% endblock %}

{% block js_import %}
{{block.super}}
        <script src="{% static 'renkanmanager/lib/jquery-mousewheel/jquery.mousewheel.js' %}"></script>
        <script src="{% static 'renkanmanager/lib/lodash/lodash.js' %}"></script>
        <script src="{% static 'renkanmanager/lib/backbone/backbone.js' %}"></script>
        <script src="{% static 'renkanmanager/lib/backbone-relational/backbone-relational.js' %}"></script>
        <script src="{% static 'renkanmanager/lib/paper/paper-full.js' %}"></script>
        <script type="text/javascript">
            var require = {
                baseUrl: "{% static 'renkanmanager/lib/' %}"
            };
        </script>
        <script src="{% static 'renkanmanager/lib/requirejs/require.js' %}"></script>
        <script src="{% static 'renkanmanager/lib/renkan/js/renkan.js' %}"></script>
        <script type="text/javascript">

            function startRenkan(){
                var _renkan = new Rkns.Renkan({
                    static_url : "{% static 'renkanmanager/lib/renkan/' %}",
                    editor_mode: false,
                    show_bins: false,
                    show_export_button: false,
                    show_user_list: false,
                    show_node_editor_description_richtext: false,
                    language: "{{ LANGUAGE_CODE }}",
                    default_view: false,
                    save_view: true,
                    hide_nodes: false,
                    default_index_view: 0,
                    url_parameters: false,
                    update_url: false,                    
                });
                Rkns.jsonIO(_renkan, {
                    url: "{% url 'renkan_get_put' %}" + window.location.search
                });
            };
        </script>
{% endblock %}

{% block main_content %}
<div class="rnk-wrapper">
  <div class="rnk-container">
    <div id="renkan"></div>
  </div>
</div>
{% endblock %}
