replace button by div

This commit is contained in:
Mickael Veaudour 2024-08-06 08:33:22 +02:00
parent 2a48992a27
commit 6dd824fe95
No known key found for this signature in database
2 changed files with 19 additions and 19 deletions

View file

@ -2,17 +2,17 @@
{% for bulletin in bulletins|sort %}
{% if bulletin.isVisible() %}
<div class="panel panel-default">
<button id="head_{{ bulletin.getId() }}" class="panel-heading collapsed" data-parent="#accordion_bulletins" data-target="#{{ bulletin.getId() }}" data-toggle="collapse">
<h4 class="panel-title">{{ bulletin.getNom() }}</h4>
<div class="row">
<div class="col-sm-9">{{ bulletin.getClasse() }}</div>
<div class="col-sm-3">Moyenne Générale : {{ bulletin.getMoyenne() }}</div>
</div>
</button>
<div id="{{ bulletin.getId() }}" class="panel-collapse collapse" style="padding:5px">
{% include '@meeo/eleve_notes.twig' with { 'bulletin' : bulletin } %}
<div id="head_{{ bulletin.getId() }}" class="panel-heading collapsed" data-parent="#accordion_bulletins" data-target="#{{ bulletin.getId() }}" data-toggle="collapse">
<h4 class="panel-title">{{ bulletin.getNom() }}</h4>
<div class="row">
<div class="col-sm-9">{{ bulletin.getClasse() }}</div>
<div class="col-sm-3">Moyenne Générale : {{ bulletin.getMoyenne() }}</div>
</div>
</div>
<div id="{{ bulletin.getId() }}" class="panel-collapse collapse" style="padding:5px">
{% include '@meeo/eleve_notes.twig' with { 'bulletin' : bulletin } %}
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>

View file

@ -2,15 +2,15 @@
{% for matiere in bulletin.getMatieres() %}
{% if matiere.isVisible() %}
<div class="panel panel-primary">
<button id="head_{{ bulletin.getId() }}_{{ matiere.getId() }}" class="panel-heading collapsed" data-parent="#accordion_{{ bulletin.getId() }}_matiere" data-target="#{{ bulletin.getId() }}_{{ matiere.getId() }}" data-toggle="collapse">
<h4 class="panel-title">{{ matiere.getNom() }}</h4>
<div col="row">
<div class="col-sm-10"></div>
<div class="col-sm-2">
Moyenne : {{ matiere.getMoyenne() }}
</div>
<div id="head_{{ bulletin.getId() }}_{{ matiere.getId() }}" class="panel-heading collapsed" data-parent="#accordion_{{ bulletin.getId() }}_matiere" data-target="#{{ bulletin.getId() }}_{{ matiere.getId() }}" data-toggle="collapse">
<h4 class="panel-title">{{ matiere.getNom() }}</h4>
<div col="row">
<div class="col-sm-10"></div>
<div class="col-sm-2">
Moyenne : {{ matiere.getMoyenne() }}
</div>
</button>
</div>
</div>
<div id="{{ bulletin.getId() }}_{{ matiere.getId() }}" class="panel-collapse collapse in" style="padding:5px">
{% for note in matiere.getNotes() %}
<div class="row">
@ -37,4 +37,4 @@
</div>
{% endif %}
{% endfor %}
</div>
</div>