Files

20 lines
639 B
HTML

{% extends "base.html" %}{% block title %}Projets{% endblock %}
{% block content %}
<h1>Projets</h1>
<form class="newproj" method="POST" action="/projects">
<input name="nom" placeholder="Nouveau projet…" required>
<button type="submit">Créer</button>
</form>
<div class="grid">
{% for pr in projects %}
<a class="card proj" href="/p/{{ pr.slug }}">
<h2>{{ pr.nom }}</h2>
<p class="hint">{{ pr.sessions }} session(s)
{% if pr.a_un_plan %}· plan ✓{% endif %}
{% if pr.dernier_pptx %}· deck ✓{% endif %}</p>
<p class="hint">{{ pr.maj or "jamais ouvert" }}</p>
</a>
{% endfor %}
</div>
{% endblock %}