description of input and changelog updated
[django_unres.git] / django_simple / todo / templates / details1.html
index c5c1273..c6111e1 100644 (file)
@@ -77,6 +77,13 @@ Created {{ task.created_date  }}
                        </li>           
 
                        <li class="list-group-item task-item">
+                           <div class="col-md-4"> secondary structure
+                           restraints </div>
+                           <div class="col-md-8">{{ task.md_2d}}</div>
+                       </li>           
+
+
+                       <li class="list-group-item task-item">
                            <div class="col-md-6"> SSBOND </div>
                            <div class="col-md-6">{{ task.ssbond}}</div>
                        </li>           
@@ -610,12 +617,12 @@ Regular user cannot use this link.
 <script src="/static/jquery.min.js"></script>
 
 <script>
-$('.majorpoints').click(function(){
-    $(this).find('.hiders').toggle();
-    if($(this).find('.majorpointslegend').text()=='Show input parameters'){
-        $(this).find('.majorpointslegend').text('Hide input parameters');
+$('.majorpointslegend').click(function(){
+    $(this.parentNode).find('.hiders').toggle();
+    if($(this.parentNode).find('.majorpointslegend').text()=='Show input parameters'){
+        $(this.parentNode).find('.majorpointslegend').text('Hide input parameters');
     }else{
-        $(this).find('.majorpointslegend').text('Show input parameters');
+        $(this.parentNode).find('.majorpointslegend').text('Show input parameters');
     }    
 });
 </script>
@@ -640,5 +647,28 @@ function showDivs(n) {
 }
 </script>
        
+{% if not task.done %}
+<script>
+function worker() {
+  $.ajax({
+    data:{csrfmiddlewaretoken: '{{ csrf_token }}'},
+    url: "/refresh_done1/{{task.id}}/", 
+    type:"post",
+    success: function(data) {
+      document.location.reload();
+    },
+    complete: function() {
+      // Schedule the next request when the current one's complete
+      setTimeout(worker, 30000);
+    }
+  });
+};
+$(document).ready(function() {
+  // run the first time; all subsequent calls will take care of themselves
+  setTimeout(worker, 30000);
+});
+</script>
+{% endif %} 
+
        
 {% endblock %}