Compare commits

..

No commits in common. "202ce66ed6f9db7fbf955110c43d070434864824" and "b4e447360385165e969290976dfff6fbc3b2193f" have entirely different histories.

3 changed files with 6 additions and 12 deletions

View file

@ -15,7 +15,7 @@ class AbsencesAction extends YesWikiAction
{ {
$meeo_config = $this->params->get('meeo'); $meeo_config = $this->params->get('meeo');
$formId = $meeo_config['absences']['formId']; $formId = $meeo_config['absences']['formId'];
$eleveIdentifier = 'listefiche'.$meeo_config['elevesFormId'].'bf_eleve'; $eleveIdentifier = 'listefiche'.$meeo_config['elevesFormId'];
$groupeEE = $meeo_config['groupeEE']; $groupeEE = $meeo_config['groupeEE'];
$entryManager = $this->getService(EntryManager::class); $entryManager = $this->getService(EntryManager::class);

View file

@ -1,6 +1,6 @@
{% if groups|default %} {% if groups|default %}
<div id="accordion" class="panel-group" role="tablist" aria-multiselectable="true"> <div id="accordion" class="panel-group" role="tablist" aria-multiselectable="true">
{% for identifier, group in groups|sort %} {% for identifier, group in groups %}
<div class="panel panel-default"> <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"> <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> <h4 class="panel-title">{{ group['nom'] }}</h4>

View file

@ -1,18 +1,12 @@
<div class="panel-body"> <div class="panel-body">
{% for entry in entries|sort((a,b) => a['bf_date_debut'] <=> b['bf_date_debut'])|reverse %} {% for entry in entries %}
<div> <div>
{% if entry['bf_date_debut'] == entry['bf_date_fin'] %} <h5>{{ entry['bf_date_debut_evenement']|date("m/d/Y H:i") }} - {{ entry['bf_date_fin_evenement']|date("m/d/Y H:i") }}</h5>
<h5>{{ entry['bf_date_debut']|date("m/d/Y") }}</h5>
{% else %}
<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 %} {% if entry['bf_commentaire']|default %}
{{ entry['bf_commentaire'] }} <p>{{ entry['bf_commentaire'] }}</p>
{% else %} {% else %}
Aucune information <p>Aucune information</p>
{% endif %} {% endif %}
</div>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>