src/hdalab/templates/renkan_edit.html
changeset 323 67cff4e39ad8
parent 311 6c16170f947f
child 324 573043a98b44
equal deleted inserted replaced
322:4c72bc520e19 323:67cff4e39ad8
    23                 baseUrl: "{% static 'renkanmanager/lib/' %}"
    23                 baseUrl: "{% static 'renkanmanager/lib/' %}"
    24             };
    24             };
    25         </script>
    25         </script>
    26         <script src="{% static 'renkanmanager/lib/require.js' %}"></script>
    26         <script src="{% static 'renkanmanager/lib/require.js' %}"></script>
    27         <script src="{% static 'renkanmanager/lib/renkan/renkan.js' %}"></script>
    27         <script src="{% static 'renkanmanager/lib/renkan/renkan.js' %}"></script>
    28         <script src="{% static 'hdalab/js/renkan-manual-save.js ' %}"></script>
    28         <script src="{% static 'hdalab/js/renkan-manual-save.js' %}"></script>
       
    29         <script src="{% static 'hdalab/js/hdalab-renkan-bins.js' %}"></script>
    29         <script type="text/javascript">
    30         <script type="text/javascript">
    30             var io_options = {}, dialog=false;
    31             var io_options = {}, dialog=false;
    31             function startRenkan(){
    32             function startRenkan(){
    32                 var _renkan = new Rkns.Renkan({
    33                 var _renkan = new Rkns.Renkan({
    33                     manual_save: true,
    34                     manual_save: true,
    34                     static_url : "{% static 'renkanmanager/lib/renkan/' %}",
    35                     static_url : "{% static 'renkanmanager/lib/renkan/' %}",
    35                     search: [
    36                     search: [
    36                         {
    37                         {
    37                             type: "Ldt"
    38                             type: "HdaNotices",
       
    39                             lang: "{{LANGUAGE_CODE}}",
       
    40                             image: "http://digital-impulse.com/wp-content/plugins/smilies-themer/digicons/IronMan.png",
       
    41                             url: "{% url 'searchajax' %}"
    38                         },
    42                         },
    39                         {
    43                         {
    40                             type: "Wikipedia",
    44                             type: "Wikipedia",
    41                             lang: "fr"
    45                             lang: "{{LANGUAGE_CODE}}"
    42                         },
       
    43                         {
       
    44                             type: "Wikipedia",
       
    45                             lang: "ja"
       
    46                         }
    46                         }
    47                     ],
    47                     ],
    48                     bins: [
    48                     bins: [
    49                         {
    49                         {
    50                             type: "ResourceList",
    50                             type: "ResourceList",
    53 								{
    53 								{
    54 								    url: "http://www.histoiredesarts.culture.fr/",
    54 								    url: "http://www.histoiredesarts.culture.fr/",
    55 								    title: "Histoire des arts",
    55 								    title: "Histoire des arts",
    56 								    description: "Portail Histoire des arts sur culture.fr",
    56 								    description: "Portail Histoire des arts sur culture.fr",
    57 								    image: "http://www.culture.fr/extension/culture_fr/design/culture/images/favicon.ico"
    57 								    image: "http://www.culture.fr/extension/culture_fr/design/culture/images/favicon.ico"
    58 								},
    58 								}
    59                                 {
       
    60                                     url: "http://www.google.com/",
       
    61                                     title: "Google",
       
    62                                     description: "Search engine",
       
    63                                     image: "http://www.google.fr/images/srpr/logo4w.png"
       
    64                                 },
       
    65                                 "Polemic Tweet http://www.polemictweet.com",
       
    66                                 "Twitter http://www.twitter.com/"
       
    67                             ]
    59                             ]
    68                         }
    60                         }
    69                     ],
    61                     ],
    70                     /*property_files: [ "data/properties.json" ],
    62                     /*property_files: [ "data/properties.json" ],
    71                        node_fill_color: false*/
    63                        node_fill_color: false*/
    72                     language: "fr"
    64                     language: "{{LANGUAGE_CODE}}"
    73                 });
    65                 });
    74                 
    66                 
    75                 io_options = { url: "{% url 'renkan_get_put' %}" + window.location.search, user_authenticated: {% if user.is_authenticated %}true{% else %}false{% endif %} };
    67                 io_options = { url: "{% url 'renkan_get_put' %}" + window.location.search, user_authenticated: {% if user.is_authenticated %}true{% else %}false{% endif %} };
    76                 Rkns.jsonIOSaveOnClick(_renkan, io_options);
    68                 Rkns.jsonIOSaveOnClick(_renkan, io_options);
    77             };
    69             };