prevent from editing color (todo: hide color field) + pass user name to Renkan
authorrougeronj
Thu, 18 Dec 2014 17:01:00 +0100
changeset 412 436f3ec9d840
parent 411 5e3f4a5f0900
child 413 07ea964d33cd
prevent from editing color (todo: hide color field) + pass user name to Renkan
src/hdalab/templates/renkan_edit.html
--- a/src/hdalab/templates/renkan_edit.html	Thu Dec 18 12:01:02 2014 +0100
+++ b/src/hdalab/templates/renkan_edit.html	Thu Dec 18 17:01:00 2014 +0100
@@ -36,6 +36,10 @@
             function startRenkan(){
                 var _renkan = new Rkns.Renkan({
                     manual_save: true,
+                	user_color_editable: false,
+                	{% if user.is_authenticated %}
+                	user_id:"{{ user }}",
+                	{% endif %}
                     static_url : "{% static 'renkanmanager/lib/renkan/' %}",
                     search: [
                         {
@@ -74,8 +78,12 @@
                     language: "{{LANGUAGE_CODE}}"
                 });
                 
+                //_create_user_//
+                
+                //_____________//
                 io_options = { url: "{% url 'renkan_get_put' %}" + window.location.search, user_authenticated: {% if user.is_authenticated %}true{% else %}false{% endif %} };
                 Rkns.jsonIOSaveOnClick(_renkan, io_options);
+                
             };
             
             $(function() {