Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% extends 'layout.html' %}
- {%block body %}
- <br></br>
- <div class="jumbotron text-center">
- <h1>Welcome to the KanbanApp</h1>
- <p class='lead'>Organize your tasks now!</p>
- </div>
- <p align="center">Do you have any task pending? </p>
- <div>
- <form action='/add' method ='POST'>
- <input type='text' name = 'todoitem'>
- <input type='submit' value='add item'>
- </form>
- </div>
- <div>
- <h1>Incomplete Items</h1>
- <div class="column" style="background-color:#f47641;">
- <ul>
- {% for todo in incomplete %}
- <li style='font-size: 30 pt'>{{todo.text}}<a href="{{url_for('asinprogress', id=todo.id)}}"><button type="button" class="btn"><i class="fa fa-spinner fa-spin"></i></button></a></li>
- {% endfor %}
- </ul>
- </div>
- <h1>In Progress</h1>
- <div class="column" style="background-color:#f4d941;">
- <ul>
- {% for todo in inprogress %}
- <li style='font-size: 30 pt'>{{todo.text}}<a href="{{url_for('ascomplete', id=todo.id)}}"><button type="button" class="btn"><i class="fa fa-close"></i></button></a></li>
- {% endfor %}
- </ul>
- </div>
- </div>
- <h1>Complete</h1>
- <div class="column" style="background-color: #a1f442;">
- {% for todo in complete %}
- <li style='font-size: 30 pt'>{{todo.text}}<a href="{{url_for('delete', id=todo.id)}}"><button type="button" action='/delete/<id>' id=todo.id class="btn"><i class="fa fa-close"></i></button></a></li>
- <input type="submit" name="{{todo.id}}" value='DELETE'>
- {% endfor %}
- </div>
- {%endblock%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement