src/hdalab/templates/renkan_edit.html
author rougeronj
Fri, 09 Jan 2015 11:51:40 +0100
changeset 423 be82c14a0ad1
parent 420 9788eced982a
child 424 33a1260273bc
permissions -rw-r--r--
Split the help popup in antoher html - Hide the help and the login at the begining so we don't see them while the page is loading - Minor css update
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
288
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
     1
{% extends "base.html" %}
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
     2
{% load static %}
336
aec074085a81 link to change renkan shape to circle
cavaliet
parents: 324
diff changeset
     3
{% load i18n %}
288
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
     4
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
     5
{% block title %}{{block.super}} > {{datasheet.title}}{% endblock %}
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
     6
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
     7
{% block css_import %}
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
     8
{{block.super}}
308
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
     9
        <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/ui-lightness/jquery-ui-1.10.4.min.css' %}" />
311
6c16170f947f clean some log and css
cavaliet
parents: 310
diff changeset
    10
        <link rel="stylesheet" type="text/css" href="{% static 'renkanmanager/lib/renkan/css/renkan.css' %}" />
288
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    11
        <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/additionnal_renkan.css' %}" />
337
46cd7ba5bbec enhance onbeforeunload and prepare for help text
cavaliet
parents: 336
diff changeset
    12
        <link rel="stylesheet" type="text/css" href="{% static 'hdalab/lib/bjqs.css' %}" />
288
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    13
{% endblock %}
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    14
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    15
{% block js_import %}
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    16
{{block.super}}
337
46cd7ba5bbec enhance onbeforeunload and prepare for help text
cavaliet
parents: 336
diff changeset
    17
        <script src="{% static 'hdalab/lib/bjqs-1.3.min.js' %}"></script>
413
07ea964d33cd Update path to new lib folders of renkan manager
rougeronj
parents: 412
diff changeset
    18
	    <script src="{% static 'renkanmanager/lib/jquery-ui/jquery-ui.js' %}"></script>
07ea964d33cd Update path to new lib folders of renkan manager
rougeronj
parents: 412
diff changeset
    19
		<script src="{% static 'renkanmanager/lib/jquery-mousewheel/jquery.mousewheel.js' %}"></script>
07ea964d33cd Update path to new lib folders of renkan manager
rougeronj
parents: 412
diff changeset
    20
        <script src="{% static 'renkanmanager/lib/underscore/underscore.js' %}"></script>
07ea964d33cd Update path to new lib folders of renkan manager
rougeronj
parents: 412
diff changeset
    21
        <script src="{% static 'renkanmanager/lib/backbone/backbone.js' %}"></script>
07ea964d33cd Update path to new lib folders of renkan manager
rougeronj
parents: 412
diff changeset
    22
        <script src="{% static 'renkanmanager/lib/backbone-relational/backbone-relational.js' %}"></script>
07ea964d33cd Update path to new lib folders of renkan manager
rougeronj
parents: 412
diff changeset
    23
        <script src="{% static 'renkanmanager/lib/paper/paper-full.js' %}"></script>
288
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    24
        <script type="text/javascript">
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    25
            var require = {
299
8e00641076e7 remove renkan management to an other django app (see renkan hg repo)
cavaliet
parents: 298
diff changeset
    26
                baseUrl: "{% static 'renkanmanager/lib/' %}"
288
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    27
            };
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    28
        </script>
413
07ea964d33cd Update path to new lib folders of renkan manager
rougeronj
parents: 412
diff changeset
    29
        <script src="{% static 'renkanmanager/lib/requirejs/require.js' %}"></script>
411
5e3f4a5f0900 Update ref to renkan.js + raise RENKANS_PER_PAGE from 3 to 8
rougeronj
parents: 409
diff changeset
    30
        <script src="{% static 'renkanmanager/lib/renkan/js/renkan.js' %}"></script>
323
67cff4e39ad8 search in notice json, and renkan search bin for notices.
cavaliet
parents: 311
diff changeset
    31
        <script src="{% static 'hdalab/js/renkan-manual-save.js' %}"></script>
67cff4e39ad8 search in notice json, and renkan search bin for notices.
cavaliet
parents: 311
diff changeset
    32
        <script src="{% static 'hdalab/js/hdalab-renkan-bins.js' %}"></script>
288
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    33
        <script type="text/javascript">
308
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
    34
            var io_options = {}, dialog=false;
288
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    35
            function startRenkan(){
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    36
                var _renkan = new Rkns.Renkan({
308
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
    37
                    manual_save: true,
412
436f3ec9d840 prevent from editing color (todo: hide color field) + pass user name to Renkan
rougeronj
parents: 411
diff changeset
    38
                	user_color_editable: false,
417
fd847122d85d Close #28 - add and show_user_color to false to hide the color picker
rougeronj
parents: 415
diff changeset
    39
                	show_user_color: false,
412
436f3ec9d840 prevent from editing color (todo: hide color field) + pass user name to Renkan
rougeronj
parents: 411
diff changeset
    40
                	{% if user.is_authenticated %}
415
bf2db1849560 Add user if user_if is given in the template
rougeronj
parents: 413
diff changeset
    41
                	user_id:"{{ user.id }}",
bf2db1849560 Add user if user_if is given in the template
rougeronj
parents: 413
diff changeset
    42
                	user_name:"{{ user }}",
412
436f3ec9d840 prevent from editing color (todo: hide color field) + pass user name to Renkan
rougeronj
parents: 411
diff changeset
    43
                	{% endif %}
299
8e00641076e7 remove renkan management to an other django app (see renkan hg repo)
cavaliet
parents: 298
diff changeset
    44
                    static_url : "{% static 'renkanmanager/lib/renkan/' %}",
288
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    45
                    search: [
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    46
                        {
324
573043a98b44 tags search bin
cavaliet
parents: 323
diff changeset
    47
                            type: "HdaTags",
573043a98b44 tags search bin
cavaliet
parents: 323
diff changeset
    48
                            lang: "{{LANGUAGE_CODE}}",
573043a98b44 tags search bin
cavaliet
parents: 323
diff changeset
    49
                            image: "http://dbpedia.org/statics/dbpedia_logo.png",
573043a98b44 tags search bin
cavaliet
parents: 323
diff changeset
    50
                            url: "{% url 'tag_search' %}"
573043a98b44 tags search bin
cavaliet
parents: 323
diff changeset
    51
                        },
573043a98b44 tags search bin
cavaliet
parents: 323
diff changeset
    52
                        {
323
67cff4e39ad8 search in notice json, and renkan search bin for notices.
cavaliet
parents: 311
diff changeset
    53
                            type: "HdaNotices",
67cff4e39ad8 search in notice json, and renkan search bin for notices.
cavaliet
parents: 311
diff changeset
    54
                            lang: "{{LANGUAGE_CODE}}",
67cff4e39ad8 search in notice json, and renkan search bin for notices.
cavaliet
parents: 311
diff changeset
    55
                            image: "http://digital-impulse.com/wp-content/plugins/smilies-themer/digicons/IronMan.png",
67cff4e39ad8 search in notice json, and renkan search bin for notices.
cavaliet
parents: 311
diff changeset
    56
                            url: "{% url 'searchajax' %}"
288
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    57
                        },
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    58
                        {
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    59
                            type: "Wikipedia",
323
67cff4e39ad8 search in notice json, and renkan search bin for notices.
cavaliet
parents: 311
diff changeset
    60
                            lang: "{{LANGUAGE_CODE}}"
288
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    61
                        }
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    62
                    ],
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    63
                    bins: [
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    64
                        {
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    65
                            type: "ResourceList",
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    66
                            title: "Ressources",
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    67
                            list: [
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    68
								{
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    69
								    url: "http://www.histoiredesarts.culture.fr/",
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    70
								    title: "Histoire des arts",
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    71
								    description: "Portail Histoire des arts sur culture.fr",
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    72
								    image: "http://www.culture.fr/extension/culture_fr/design/culture/images/favicon.ico"
323
67cff4e39ad8 search in notice json, and renkan search bin for notices.
cavaliet
parents: 311
diff changeset
    73
								}
288
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    74
                            ]
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    75
                        }
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    76
                    ],
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    77
                    /*property_files: [ "data/properties.json" ],
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    78
                       node_fill_color: false*/
323
67cff4e39ad8 search in notice json, and renkan search bin for notices.
cavaliet
parents: 311
diff changeset
    79
                    language: "{{LANGUAGE_CODE}}"
288
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
    80
                });
308
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
    81
                
412
436f3ec9d840 prevent from editing color (todo: hide color field) + pass user name to Renkan
rougeronj
parents: 411
diff changeset
    82
                //_create_user_//
436f3ec9d840 prevent from editing color (todo: hide color field) + pass user name to Renkan
rougeronj
parents: 411
diff changeset
    83
                
436f3ec9d840 prevent from editing color (todo: hide color field) + pass user name to Renkan
rougeronj
parents: 411
diff changeset
    84
                //_____________//
310
05c9f6551fde ajax login and save
cavaliet
parents: 308
diff changeset
    85
                io_options = { url: "{% url 'renkan_get_put' %}" + window.location.search, user_authenticated: {% if user.is_authenticated %}true{% else %}false{% endif %} };
308
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
    86
                Rkns.jsonIOSaveOnClick(_renkan, io_options);
412
436f3ec9d840 prevent from editing color (todo: hide color field) + pass user name to Renkan
rougeronj
parents: 411
diff changeset
    87
                
308
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
    88
            };
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
    89
            
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
    90
            $(function() {
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
    91
                var form;
365
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
    92
308
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
    93
                dialog = $( "#dialog-form" ).dialog({
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
    94
                    autoOpen: false,
385
b9fa11411e13 update login popup in renkan edit page
rougeronj
parents: 371
diff changeset
    95
                    height: 398,
b9fa11411e13 update login popup in renkan edit page
rougeronj
parents: 371
diff changeset
    96
                    width: 520,
b9fa11411e13 update login popup in renkan edit page
rougeronj
parents: 371
diff changeset
    97
                    modal: true,
b9fa11411e13 update login popup in renkan edit page
rougeronj
parents: 371
diff changeset
    98
                    create: function (event, ui) {
b9fa11411e13 update login popup in renkan edit page
rougeronj
parents: 371
diff changeset
    99
                    	$("#login-popup-close").click(function(){
b9fa11411e13 update login popup in renkan edit page
rougeronj
parents: 371
diff changeset
   100
			    			dialog.dialog("close");
b9fa11411e13 update login popup in renkan edit page
rougeronj
parents: 371
diff changeset
   101
			            });
b9fa11411e13 update login popup in renkan edit page
rougeronj
parents: 371
diff changeset
   102
                    }
365
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   103
                });            
308
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   104
                
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   105
                function manageLoginForm(e, form){
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   106
                    e.preventDefault();
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   107
                    f = $(form);
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   108
                    $.ajax({
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   109
                        type: f.attr("method"),
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   110
                        url: f.attr("action"),
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   111
                        data: f.serialize(),
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   112
                        success: function(data, textStatus, jqXHR) {
310
05c9f6551fde ajax login and save
cavaliet
parents: 308
diff changeset
   113
                            var d = $(data);
05c9f6551fde ajax login and save
cavaliet
parents: 308
diff changeset
   114
                            if($(".ok",d).length==1){
423
be82c14a0ad1 Split the help popup in antoher html -
rougeronj
parents: 420
diff changeset
   115
                            	console.log("ok");
310
05c9f6551fde ajax login and save
cavaliet
parents: 308
diff changeset
   116
                                $("#dialog-form").html($(".ok",d)[0]);
05c9f6551fde ajax login and save
cavaliet
parents: 308
diff changeset
   117
                                $(".hello-user").remove();
05c9f6551fde ajax login and save
cavaliet
parents: 308
diff changeset
   118
                                $("#nav").append($(".username",d).children());
05c9f6551fde ajax login and save
cavaliet
parents: 308
diff changeset
   119
                                io_options.user_authenticated = true;
05c9f6551fde ajax login and save
cavaliet
parents: 308
diff changeset
   120
                                $(".Rk-Save-Button").addClass("Rk-Save-Online");
05c9f6551fde ajax login and save
cavaliet
parents: 308
diff changeset
   121
                                dialog.dialog( "close" );
05c9f6551fde ajax login and save
cavaliet
parents: 308
diff changeset
   122
                                $(".Rk-Save-Button").click();
05c9f6551fde ajax login and save
cavaliet
parents: 308
diff changeset
   123
                                return true;
05c9f6551fde ajax login and save
cavaliet
parents: 308
diff changeset
   124
                            }
308
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   125
                            $("#dialog-form").html(data);
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   126
                            // in case, login failed, we reassign the behaviour
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   127
                            form = dialog.find( "form" ).on( "submit", function( event ) {
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   128
                                manageLoginForm(event, this);
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   129
                            });
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   130
                        }
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   131
                    });
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   132
                }
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   133
                
365
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   134
			    form = dialog.find( "form" ).on( "submit", function( event ) {
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   135
			        manageLoginForm(event, this);
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   136
			    });
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   137
			    
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   138
			  //help dialog init
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   139
			    var help_dialog = $( "#help-container" ).dialog({
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   140
			        autoOpen: false,
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   141
			        height: 330,
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   142
			        width: 880,
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   143
			        resizable: false,
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   144
			        draggable: false,
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   145
			        create: function (event, ui) {
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   146
			        	var help_slideshow = $('#help-slideshow').bjqs({
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   147
					    	responsive:false,
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   148
					    	height: 320,
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   149
					        width: 870,
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   150
					    	animtype: 'slide',
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   151
					    	showcontrols: true,
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   152
					    	centercontrols: false,
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   153
					     nexttext: "",
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   154
					     showmarkers : false,
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   155
					     automatic: false
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   156
					    });
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   157
			        	
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   158
			        	$("#toggle-help").click(function(){
371
c70c34166758 Shrink help icon + Prevent the icon to disappear (with the text "circular view") when renkan is modified
rougeronj
parents: 366
diff changeset
   159
			        		if (help_dialog.dialog("isOpen")){
c70c34166758 Shrink help icon + Prevent the icon to disappear (with the text "circular view") when renkan is modified
rougeronj
parents: 366
diff changeset
   160
			        			help_dialog.dialog("close");	
c70c34166758 Shrink help icon + Prevent the icon to disappear (with the text "circular view") when renkan is modified
rougeronj
parents: 366
diff changeset
   161
			        		}
c70c34166758 Shrink help icon + Prevent the icon to disappear (with the text "circular view") when renkan is modified
rougeronj
parents: 366
diff changeset
   162
			        		else{
c70c34166758 Shrink help icon + Prevent the icon to disappear (with the text "circular view") when renkan is modified
rougeronj
parents: 366
diff changeset
   163
			        			help_dialog.dialog("open");
c70c34166758 Shrink help icon + Prevent the icon to disappear (with the text "circular view") when renkan is modified
rougeronj
parents: 366
diff changeset
   164
			        		}
365
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   165
			            });
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   166
			    		$(".img-close").click(function(){
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   167
			    			help_dialog.dialog("close");
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   168
			            });
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   169
			    	}
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   170
			    });
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   171
        	});
308
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   172
            
288
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
   173
        </script>
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
   174
{% endblock %}
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
   175
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
   176
{% block main_content %}
407
3f64001a8e1f Split css of help Popup in new file + add dropdown to choose circle or line shape
rougeronj
parents: 385
diff changeset
   177
<div class="all-title">
3f64001a8e1f Split css of help Popup in new file + add dropdown to choose circle or line shape
rougeronj
parents: 385
diff changeset
   178
	<h1><strong>RENKAN</strong></h1>
3f64001a8e1f Split css of help Popup in new file + add dropdown to choose circle or line shape
rougeronj
parents: 385
diff changeset
   179
	<div class="renkan_help">
409
ee7d77197432 Improves dropdown and add icons
rougeronj
parents: 407
diff changeset
   180
		<ul>
407
3f64001a8e1f Split css of help Popup in new file + add dropdown to choose circle or line shape
rougeronj
parents: 385
diff changeset
   181
			<li>
409
ee7d77197432 Improves dropdown and add icons
rougeronj
parents: 407
diff changeset
   182
				{% trans 'Changer de disposition' %}
ee7d77197432 Improves dropdown and add icons
rougeronj
parents: 407
diff changeset
   183
				<p> {% trans '(Indisponible si modification du RENKAN)' %}</p>
407
3f64001a8e1f Split css of help Popup in new file + add dropdown to choose circle or line shape
rougeronj
parents: 385
diff changeset
   184
				<ul>
420
9788eced982a Add horizontal line representation
rougeronj
parents: 417
diff changeset
   185
					{% if 'shape=vert' in switch_shape_url.current %}
9788eced982a Add horizontal line representation
rougeronj
parents: 417
diff changeset
   186
						<li id="graph-line"><a href="">&#10003&nbsp;{% trans 'See the graph in column' %}</a></li>
9788eced982a Add horizontal line representation
rougeronj
parents: 417
diff changeset
   187
						<li id="graph-lineH"><a href="{{ switch_shape_url.horiz }}">&nbsp;&nbsp;&nbsp;{% trans 'See the graph in line' %}</a></li>
9788eced982a Add horizontal line representation
rougeronj
parents: 417
diff changeset
   188
						<li id="graph-circle"><a href="{{ switch_shape_url.circle }}">&nbsp;&nbsp;&nbsp;{% trans 'See the graph in circle' %}</a></li>
9788eced982a Add horizontal line representation
rougeronj
parents: 417
diff changeset
   189
					{% elif 'shape=horiz' in switch_shape_url.current %}
9788eced982a Add horizontal line representation
rougeronj
parents: 417
diff changeset
   190
						<li id="graph-line"><a href="{{ switch_shape_url.vert }}">&nbsp;&nbsp;&nbsp;{% trans 'See the graph in column' %}</a></li>
9788eced982a Add horizontal line representation
rougeronj
parents: 417
diff changeset
   191
						<li id="graph-lineH"><a href="">&#10003&nbsp;{% trans 'See the graph in line' %}</a></li>
9788eced982a Add horizontal line representation
rougeronj
parents: 417
diff changeset
   192
						<li id="graph-circle"><a href="{{ switch_shape_url.circle }}">&nbsp;&nbsp;&nbsp;{% trans 'See the graph in circle' %}</a></li>
407
3f64001a8e1f Split css of help Popup in new file + add dropdown to choose circle or line shape
rougeronj
parents: 385
diff changeset
   193
					{% else %}
420
9788eced982a Add horizontal line representation
rougeronj
parents: 417
diff changeset
   194
						<li id="graph-line"><a href="{{ switch_shape_url.vert }}">&nbsp;&nbsp;&nbsp;{% trans 'See the graph in column' %}</a></li>
9788eced982a Add horizontal line representation
rougeronj
parents: 417
diff changeset
   195
						<li id="graph-lineH"><a href="{{ switch_shape_url.horiz }}">&nbsp;&nbsp;&nbsp;{% trans 'See the graph in line' %}</a></li>
407
3f64001a8e1f Split css of help Popup in new file + add dropdown to choose circle or line shape
rougeronj
parents: 385
diff changeset
   196
						<li id="graph-circle"><a href="">&#10003&nbsp;{% trans 'See the graph in circle' %}</a></li>
3f64001a8e1f Split css of help Popup in new file + add dropdown to choose circle or line shape
rougeronj
parents: 385
diff changeset
   197
					{% endif %}
3f64001a8e1f Split css of help Popup in new file + add dropdown to choose circle or line shape
rougeronj
parents: 385
diff changeset
   198
				</ul>
3f64001a8e1f Split css of help Popup in new file + add dropdown to choose circle or line shape
rougeronj
parents: 385
diff changeset
   199
			</li>
3f64001a8e1f Split css of help Popup in new file + add dropdown to choose circle or line shape
rougeronj
parents: 385
diff changeset
   200
		</ul>
3f64001a8e1f Split css of help Popup in new file + add dropdown to choose circle or line shape
rougeronj
parents: 385
diff changeset
   201
		<a id="toggle-help" href="#"></a>
3f64001a8e1f Split css of help Popup in new file + add dropdown to choose circle or line shape
rougeronj
parents: 385
diff changeset
   202
	</div>
3f64001a8e1f Split css of help Popup in new file + add dropdown to choose circle or line shape
rougeronj
parents: 385
diff changeset
   203
</div>
308
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   204
<div id="dialog-form" title="Identification">
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   205
	{% include 'ajax_identification/ajax_login.html' %}
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   206
</div>
365
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   207
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   208
<div id="help-container" class="">
423
be82c14a0ad1 Split the help popup in antoher html -
rougeronj
parents: 420
diff changeset
   209
	{% include 'help_popup.html' %}
336
aec074085a81 link to change renkan shape to circle
cavaliet
parents: 324
diff changeset
   210
</div>
365
a2a04e7db680 Add help popup to html and css
rougeronj
parents: 338
diff changeset
   211
288
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
   212
<div class="rnk-wrapper">
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
   213
  <div class="rnk-container">
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
   214
    <div id="renkan"></div>
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
   215
  </div>
308
eab6629b5b31 ajax login first step
cavaliet
parents: 303
diff changeset
   216
</div>
288
0bb9c29cd41d renkan first step : link, views and get put for json
cavaliet
parents:
diff changeset
   217
{% endblock %}