Skip to content
Snippets Groups Projects
Commit d5a912cf authored by Nico Vermaas's avatar Nico Vermaas
Browse files

add task details page

parent c1f512ef
No related branches found
No related tags found
3 merge requests!73Master,!54Master,!47add task details page
...@@ -36,14 +36,20 @@ ...@@ -36,14 +36,20 @@
<!-- Header --> <!-- Header -->
<li><a class="navbar-brand" href="{% url 'homepage' %}"> <li><a class="navbar-brand" href="{% url 'homepage' %}">
<img src="{% static 'taskdatabase/ldvlogo_small.png' %}" height="30" alt=""> <img src="{% static 'taskdatabase/ldvlogo_small.png' %}" height="30" alt="">
ATDB-LDV</a> ATDB-LDV Dashboard</a>
</li> </li>
<li><a class="nav-link" href="{% url 'homepage' %}">Tasks</a></li> <li><a class="nav-link" href="{% url 'homepage' %}">Tasks</a></li>
<li><a class="nav-link" href="{% url 'task-details' 0 0 %}">Details</a></li>
<li><a class="nav-link" href="{% url 'tables2' %}">Query</a></li> <li><a class="nav-link" href="{% url 'tables2' %}">Query</a></li>
<li><a class="nav-link" href="{% url 'diagram' %}">State Diagram</a></li> <li><a class="nav-link" href="{% url 'diagram' %}">State Diagram</a></li>
<li><a class="nav-link" href="{% url 'admin:index' %}">Admin</a></li> {% if user.is_staff %}
<li><a class="nav-link" href="{% url 'admin:index' %}" target="_blank">Admin Page</a></li>
{% endif %}
</ul> </ul>
User: {{ user.get_username }}
</div> </div>
{% include 'taskdatabase/filter/search.html' %} {% include 'taskdatabase/filter/search.html' %}
</nav> </nav>
......
{% extends 'tables2/base.html' %} {% extends 'taskdatabase/base.html' %}
{% load render_table from django_tables2 %} {% load render_table from django_tables2 %}
{% load bootstrap3 %} {% load bootstrap3 %}
......
...@@ -176,8 +176,8 @@ class DashboardView(ListView): ...@@ -176,8 +176,8 @@ class DashboardView(ListView):
# but if 'context_object_name' is defined, then this returned list is named and can be accessed that way in html. # but if 'context_object_name' is defined, then this returned list is named and can be accessed that way in html.
context_object_name = 'my_tasks' context_object_name = 'my_tasks'
class ChartsView(ListView):
class ChartsView(ListView):
template_name = 'dashboard/charts.html' template_name = 'dashboard/charts.html'
model = Task model = Task
queryset = Task.objects.all() queryset = Task.objects.all()
...@@ -185,6 +185,7 @@ class ChartsView(ListView): ...@@ -185,6 +185,7 @@ class ChartsView(ListView):
# but if 'context_object_name' is defined, then this returned list is named and can be accessed that way in html. # but if 'context_object_name' is defined, then this returned list is named and can be accessed that way in html.
context_object_name = 'my_tasks' context_object_name = 'my_tasks'
class TaskTables2View(SingleTableView): class TaskTables2View(SingleTableView):
model = Task model = Task
table_class = TaskTable table_class = TaskTable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment