citavi_mapper/frontend/templates/projects.html

38 lines
989 B
HTML
Raw Normal View History

{% extends "layout/base.html" %}
{% block head%}
{% load crispy_forms_tags %}
{% endblock %}
{% block content %}
<h3>Create a new project</h3>
<p>{% crispy form %}</p>
<h3>Existing projects</h3>
{% if not projects %}
<p><strong>No projects to find here. Maybe go ahead and create one?</strong></p>
{% else %}
<table class="table table-hover table-bordered">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Description</th>
<th>Citavi file</th>
<th>Features</th>
</tr>
</thead>
<tbody>
{% for project in projects %}
<tr>
<td>{{project.id}}</td>
<td>{{project.name}}</td>
<td>{{project.description}}</td>
<td>{{project.associated_filename}}</td>
<td>
<a href="{% url 'frontend-project-update' project.id %}">Update project</a>
<a href="{% url 'frontend-project-view-person' project.id %}">Persons</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endblock %}