autorefresh in js details1.html every 30sec
[django_unres.git] / django_simple / todo / templates / index.html
index 22a4db2..1aa90da 100644 (file)
@@ -1,8 +1,25 @@
 {% extends "base.html" %}
-
+{% load i18n lazysignup_tags %}
 {% block content %}
+
        <ul class="list-group">
 
+<li class="list-group-item new-task-item task-item">
+
+<div class="col-xs-3 form-group">
+<form action="/refresh_done/" method="post">
+{% csrf_token %}
+<input type="submit" class="btn" value="Refresh" name="refreshbtn">
+</form>
+</div>
+
+<div class="col-xs-10 form-group">
+<h6 style="text-align:right;float:right;">
+{{ variable }} </h6>
+</div>
+</li>
+
+              {% if not user|is_lazy_user %}
                <li class="list-group-item new-task-item task-item">
                        <form action="/add/" method="post">
                                {% csrf_token %}
@@ -18,7 +35,7 @@
                                </div>
                        </form>
                </li>
-
+                {% endif %}
                 <li class="list-group-item task-item">
                 <div class="col-xs-1">
                      done
                {% endfor %}            
        </ul>
 
-<form action="/refresh_done/" method="post">
-{% csrf_token %}
-<input type="submit" class="btn" value="Refresh" name="refreshbtn">
-</form>
-<h6 style="text-align:right;float:right;">
-{{ variable }} </h6>
 
 {% endblock %}
\ No newline at end of file