From 521c866952798209eb432cc8f39434b04eeb56bf Mon Sep 17 00:00:00 2001 From: Cezary Czaplewski Date: Wed, 11 Apr 2018 14:01:52 +0200 Subject: [PATCH] restart for lazyuser details1 --- django_simple/todo/templates/details1.html | 25 +++++++++++++++++++++++-- django_simple/todo/urls.py | 1 + django_simple/todo/views.py | 14 ++++++++++++-- 3 files changed, 36 insertions(+), 4 deletions(-) diff --git a/django_simple/todo/templates/details1.html b/django_simple/todo/templates/details1.html index e375b92..9bb24f7 100644 --- a/django_simple/todo/templates/details1.html +++ b/django_simple/todo/templates/details1.html @@ -43,6 +43,18 @@ Created {{ task.created_date }}
{% if task.done %} + {% if task.type == "md" or task.type == "remd" %} +
+ {% csrf_token %} + + +
+ {% endif %} {% else %} {% if task.running > 0 %} {{ task.md_nstep}}
  • +
    total steps (with restarts)
    +
    {{ task.md_total_steps}}
    +
  • +
  • ntwe
    {{ task.md_ntwe}}
  • @@ -251,6 +267,10 @@ Created {{ task.created_date }}
    {{ task.md_nstep}}
  • +
    total steps (with restarts)
    +
    {{ task.md_total_steps}}
    +
  • +
  • ntwe
    {{ task.md_ntwe}}
  • @@ -416,7 +436,8 @@ Created {{ task.created_date }}
    Movie
    -