forked from Decentrala/taskmanager
- dodati folderi layouts, includes, pages - dodate base layout koji koriste ostale stranice - dodat header.html i footer.html i includes koji koriste ostale stranice - sav html refaktorisan tako da koristi base.html layout i header i footer iz includes
22 lines
471 B
HTML
22 lines
471 B
HTML
{% extends "layouts/base.html" %}
|
|
{% block content %}
|
|
<main class="container page page-index">
|
|
<section>
|
|
<div class="btn">
|
|
<a href="/addtask">Add new task</a>
|
|
</div>
|
|
<div class="tasks-wrap">
|
|
<h1>Tasks</h1>
|
|
{% for task in tasks %}
|
|
<div class="task">
|
|
<a href="/projects/{{task.id}}">
|
|
<div>{{task.id}}.</div>
|
|
<div>{{task.name}}</div>
|
|
</a>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</section>
|
|
</main>
|
|
{% endblock content %}
|