added basic pages + task import
This commit is contained in:
38
templates/projects.html
Normal file
38
templates/projects.html
Normal file
@ -0,0 +1,38 @@
|
||||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
{% block title %}Projects{% endblock %}
|
||||
{% block head %}
|
||||
<link rel="stylesheet" href="{% static "projects.css" %}">
|
||||
<script src="{% static "projects.js" %}"></script>
|
||||
{% endblock %}
|
||||
{% block footer %}{% endblock %}
|
||||
{% block main %}
|
||||
<table class="projects">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Project</th>
|
||||
<th>Parent</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for project in projects %}
|
||||
<tr data-id="{{ project.id }}">
|
||||
<td>{{ project.name }}</td>
|
||||
<td>
|
||||
<select class="parent-sel">
|
||||
<option value=""></option>
|
||||
{% for parent in parents %}
|
||||
<option value="{{ parent.id }}" {% if project.parent.id == parent.id %}selected{% endif %}>{{ parent.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<button class="see">See</button>
|
||||
<button class="delete">Delete</button>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user