Compare commits
3 commits
b4e4473603
...
202ce66ed6
Author | SHA1 | Date | |
---|---|---|---|
|
202ce66ed6 | ||
|
61267ba243 | ||
|
a3a179827b |
3 changed files with 13 additions and 7 deletions
|
@ -15,7 +15,7 @@ class AbsencesAction extends YesWikiAction
|
|||
{
|
||||
$meeo_config = $this->params->get('meeo');
|
||||
$formId = $meeo_config['absences']['formId'];
|
||||
$eleveIdentifier = 'listefiche'.$meeo_config['elevesFormId'];
|
||||
$eleveIdentifier = 'listefiche'.$meeo_config['elevesFormId'].'bf_eleve';
|
||||
$groupeEE = $meeo_config['groupeEE'];
|
||||
|
||||
$entryManager = $this->getService(EntryManager::class);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{% if groups|default %}
|
||||
<div id="accordion" class="panel-group" role="tablist" aria-multiselectable="true">
|
||||
{% for identifier, group in groups %}
|
||||
{% for identifier, group in groups|sort %}
|
||||
<div class="panel panel-default">
|
||||
<button id="head_{{ identifier }}" class="panel-heading collapsed" data-parent="#accordion" data-target="#{{ identifier }}" data-toggle="collapse" aria-expanded="false">
|
||||
<h4 class="panel-title">{{ group['nom'] }}</h4>
|
||||
|
|
|
@ -1,12 +1,18 @@
|
|||
<div class="panel-body">
|
||||
{% for entry in entries %}
|
||||
{% for entry in entries|sort((a,b) => a['bf_date_debut'] <=> b['bf_date_debut'])|reverse %}
|
||||
<div>
|
||||
<h5>{{ entry['bf_date_debut_evenement']|date("m/d/Y H:i") }} - {{ entry['bf_date_fin_evenement']|date("m/d/Y H:i") }}</h5>
|
||||
{% if entry['bf_commentaire']|default %}
|
||||
<p>{{ entry['bf_commentaire'] }}</p>
|
||||
{% if entry['bf_date_debut'] == entry['bf_date_fin'] %}
|
||||
<h5>{{ entry['bf_date_debut']|date("m/d/Y") }}</h5>
|
||||
{% else %}
|
||||
<p>Aucune information</p>
|
||||
<h5>{{ entry['bf_date_debut']|date("m/d/Y H:i") }} - {{ entry['bf_date_fin']|date("m/d/Y H:i") }}</h5>
|
||||
{% endif %}
|
||||
<div>
|
||||
{% if entry['bf_commentaire']|default %}
|
||||
{{ entry['bf_commentaire'] }}
|
||||
{% else %}
|
||||
Aucune information
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue