citavi_mapper/frontend/templates/projects.html

33 lines
827 B
HTML

{% 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>Features</th>
</tr>
</thead>
<tbody>
{% for project in projects %}
<tr>
<td>{{project.id}}</td>
<td>{{project.name}}</td>
<td>{{project.description}}</td>
<td><a href="{% url 'frontend-enter-project-detail' project.id %}">Enter project</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endblock %}