{% extends 'admin/base.html.twig' %}{% block title %}Bilan{% endblock %}{% block body %}<section class="mb-3 mb-lg-5"> <div class="card card-table mb-4"> <div class="card-header"> <div class="card-heading"> <span>Bilan de {{ bilan.member}} </span> <div style="float:right"> <a href="{{ path('app_member_show',{'id': bilan.member.id }) }}"> <span class="badge rounded-pill me-2 p-2 bg-primary">Membre</span> </a> <a href="{{ path('app_bilan_edit', {'id': bilan.id}) }}"> <span class="badge rounded-pill me-2 p-2 bg-success">Modifier</span> </a> </div> </div> <table class="table"> <tbody> <tr> <th>Id</th> <td>{{ bilan.id }}</td> </tr> <tr> <th>Date de création</th> <td>{{ bilan.createdAt ? bilan.createdAt|date('Y-m-d H:i:s') : '' }}</td> </tr> <tr> <th>Durée du séjour</th> <td>{{ bilan.nbrOfDays }}</td> </tr> <tr> <th>Taille</th> <td>{{ bilan.size }}</td> </tr> <tr> <th>Poids</th> <td>{{ bilan.weight }}</td> </tr> <tr> <th>Particularités alimentaires</th> <td>{{ bilan.foodFeature }}</td> </tr> <tr> <th>Allérgie</th> <td>{{ bilan.allergic }}</td> </tr> <tr> <th>Description des blessures ou pathologies</th> <td>{{ bilan.precisionInjuriesPathologie }}</td> </tr> <tr> <th>Profile sportif</th> <td>{{ bilan.sportProfile }}</td> </tr> <tr> <th>dérniére mise à jours</th> <td>{{ bilan.updatedAt ? bilan.updatedAt|date('Y-m-d H:i:s') : '' }}</td> </tr> <tr> <th>Active</th> <td>{{ bilan.active ? 'Yes' : 'No' }}</td> </tr> </tbody> </table></div>{# Liste des Mesures #}<div class="card card-table mt-2" > <div class="card-header mb-2"> <div class="card-heading"> <span>Les mesures effectués</span> <div style="float:right"> <a href="{{ path('app_member_show',{'id': bilan.member.id }) }}"> <span class="badge rounded-pill me-2 p-2 bg-primary">Membre</span> </a> <a href="{{ path('app_mesure_new', {'bilan_id': bilan.id}) }}"> <span class="badge rounded-pill me-2 p-2 bg-success">Ajouter une nouvelle mesure</span> </a> </div> </div> </div> <table class="table"> <thead> <th>id</th> <th> Date de création </th> <th> Mise à jours </th> <th> Poids </th> <th> Masse Maigre </th> <th> Masse grasse </th> <th> Details </th> </thead> <tbody> {% for mesure in bilan.mesures %} <tr> <td>{{ mesure.id }}</td> <td>{{ mesure.createdAt ? mesure.createdAt|date('Y-m-d H:i:s') : '' }}</td> <td>{{ mesure.updatedAt ? mesure.updatedAt|date('Y-m-d H:i:s') : '' }}</td> <td>{{ mesure.weight }}</td> <td>{{ mesure.leanBodyMass }}</td> <td>{{ mesure.bodyFat }}</td> <td> <a href="{{ path('app_mesure_show', {'id': mesure.id}) }}" title="Afficher plus de détails"> <svg class="svg-icon svg-icon-md me-3"> <svg class="theme-line-0"><use xlink:href="{{asset('icons/orion-svg-sprite.svg#find-1')}}"></use></svg> </svg> </a> </td> </tr> {% endfor %} </tbody> </table></div></section>{% endblock %}