52 lines
No EOL
1.7 KiB
HTML
52 lines
No EOL
1.7 KiB
HTML
{% extends 'gym/base.html' %}
|
|
{% load bootstrap4 %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h1>{% block title %}Séance en cours{% endblock %}</h1>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<a href="{% url 'room-detail' session.room.pk %}" class="btn btn-secondary">Retourner à la salle</a>
|
|
<a href="{% url 'equipment-create' %}?room={{ session.room.pk }}" class="btn btn-success">Ajouter une machine</a>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h2>Infos</h2>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<ul>
|
|
<li>{{ session.room.name }}</li>
|
|
<li>{{ session.start }}</li>
|
|
{% if session.notes %}
|
|
<li>{{ session.notes }}</li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h2>Machines</h2>
|
|
<ul class="list-group">
|
|
{% for equipment in session.room.equipments.all %}
|
|
<a href="{% url 'equipment-detail' equipment.pk %}" class="list-group-item">{{ equipment.name }}</a>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h2>Séries</h2>
|
|
<ul class="list-group">
|
|
{% for round in session.rounds.all %}
|
|
<a href="#" class="list-group-item">{{ round.equipment.name }} – {{ round.repetition_number }} répétitions × {{ round.chosen_weight }}</a>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |