63 lines
2.4 KiB
HTML
63 lines
2.4 KiB
HTML
{% extends 'gym/base.html' %}
|
|
{% load bootstrap4 %}
|
|
{% load custom_filters %}
|
|
|
|
{% block title %}Séance en cours{% endblock %}
|
|
{% block h1 %}Séance en cours{% endblock %}
|
|
|
|
{% block content %}
|
|
<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>
|
|
<li>{{ session.default_theoretical_max_percentage }}%</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
|
|
list-group-item-action
|
|
{% if equipment in used_equipments %}list-group-item-success{% endif %}
|
|
d-flex justify-content-between align-items-center">
|
|
{{ equipment.name }}
|
|
{% if equipment in used_equipments %}
|
|
<span class="badge badge-success badge-pill">{{ used_equipments|get_item:equipment }}</span>
|
|
{% endif %}
|
|
</a>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h2>Séries</h2>
|
|
{% if session.rounds.all %}
|
|
<ul class="list-group">
|
|
{% for round in session.rounds.all %}
|
|
<a href="{% url 'round-edit' round.pk %}"
|
|
class="list-group-item list-group-item-action">{{ round.equipment.name }}
|
|
– {{ round.repetition_number }} répétitions
|
|
× {{ round.chosen_weight }} {{ round.equipment.unit }}
|
|
({{ round.theoretical_max_percentage }}% -> {{ round.real_percentage }}%)</a>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<p>Pas encore de série pour cette séance. Au boulot !</p>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endblock %} |