now with the ability to post new tasks
This commit is contained in:
22
templates/newtask.html
Normal file
22
templates/newtask.html
Normal file
@@ -0,0 +1,22 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<span><h1>{% block title %} Create New Task {% endblock %}</h1></span>
|
||||
<form method="post">
|
||||
<p>
|
||||
<label for="title">Title:</label><br>
|
||||
<input type="text" id="title" name="title"><br>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="description">Description</label><br>
|
||||
<textarea id="description"
|
||||
name="description"
|
||||
cols="25"
|
||||
rows="5"> </textarea>
|
||||
</p>
|
||||
<p>
|
||||
<button type="submit">Add Task</button>
|
||||
</p>
|
||||
</form>
|
||||
{% endblock %}
|
@@ -1,7 +1,7 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<span><h1>{% block title %} Tasks {% endblock %}</h1></span> <br>
|
||||
<span><h1>{% block title %} Tasks {% endblock %}</h1></span> <a class="btn btn-primary" href="/task/new" role="button">New Task</a> <br> <br>
|
||||
<div>
|
||||
{% for task in tasks %}
|
||||
{% set createdTime = datetime.fromtimestamp(task.created_timestamp) %}
|
||||
|
Reference in New Issue
Block a user