--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/hdalab/templates/renkan_view.html Fri Jul 18 13:29:53 2014 +0200
@@ -0,0 +1,63 @@
+{% extends "base.html" %}
+{% load static %}
+
+{% block title %}{{block.super}} > {{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 'hdalab/lib/renkan/css/renkan.css' %}" />
+ <style type="text/css">
+ .rnk-wrapper, .rnk-container{
+ width: 100%;
+ }
+ .rnk-container{
+ height: 100%;
+ width: 100%;
+ }
+ .rnk-wrapper{
+ height: 100%;
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+ }
+ </style>
+{% endblock %}
+
+{% block js_import %}
+{{block.super}}
+ <script src="{% static 'hdalab/lib/jquery.mousewheel.min.js' %}"></script>
+ <script src="{% static 'hdalab/lib/underscore-min.js' %}"></script>
+ <script src="{% static 'hdalab/lib/backbone.js' %}"></script>
+ <script src="{% static 'hdalab/lib/backbone-relational.js' %}"></script>
+ <script src="{% static 'hdalab/lib/paper.js' %}"></script>
+ <script type="text/javascript">
+ var require = {
+ baseUrl: "{% static 'hdalab/lib/' %}"
+ };
+ </script>
+ <script src="{% static 'hdalab/lib/require.js' %}"></script>
+ <script src="{% static 'hdalab/lib/renkan/renkan.js' %}"></script>
+ <script type="text/javascript">
+
+ function startRenkan(){
+ var _renkan = new Rkns.Renkan({
+ static_url : "{% static 'hdalab/lib/renkan/' %}",
+ editor_mode: false,
+ show_bins: false,
+ language: "fr"
+ });
+ 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 %}
\ No newline at end of file