Skip to content

Commit aac6d4a

Browse files
frederic34claude
andcommitted
NEW: display event location below title in calendar event block
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7effaeb commit aac6d4a

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
## Unreleased (2026-06-15)
33

44
#### :rocket: Enhancement
5+
* Affichage du lieu : le lieu de l'événement apparaît sous le titre dans le bloc calendrier, précédé du pictogramme 📍, tronqué si trop long. ([@frederic34](https://github.com/frederic34))
56
* Création rapide : cliquer-glisser sur une plage horaire ouvre un popup de création pré-rempli avec la date et l'heure sélectionnées. Boutons Ajouter, Clôturer. ([@frederic34](https://github.com/frederic34))
67
* Masquage des calendriers : décocher un calendrier dans le panneau gauche masque instantanément ses événements via CSS, sans rechargement. ([@frederic34](https://github.com/frederic34))
78
* Popup d'édition rapide : clic sur un événement ouvre un dialogue jQuery UI avec tous les champs éditables (libellé, dates, lieu, pourcentage, note). Boutons Enregistrer, Supprimer, Voir la fiche, Clôturer. Les événements en lecture seule (ICS, anniversaires, auto) affichent un dialogue d'information non modifiable. ([@frederic34](https://github.com/frederic34))

class/actions_idreamanewcalendar.class.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -775,9 +775,12 @@ public function beforeAgenda($parameters, &$object, &$action, $hookmanager)
775775
const titleHtml = info.event.titleHTML
776776
?? (info.event.title && typeof info.event.title === 'object' ? info.event.title.html : null);
777777
const titleText = typeof info.event.title === 'string' ? info.event.title : null;
778-
content = {
779-
domNodes: [createElement('div', 'ec-event-title', titleHtml, titleText)]
780-
};
778+
const location = info.event.extendedProps && info.event.extendedProps.location;
779+
const nodes = [createElement('div', 'ec-event-title', titleHtml, titleText)];
780+
if (location) {
781+
nodes.push(createElement('div', 'ec-event-location', null, location));
782+
}
783+
content = { domNodes: nodes };
781784
}
782785
return content;
783786
},

css/idreamanewcalendar.css.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,3 +371,14 @@
371371
border: solid 2px;
372372
background: transparent;
373373
}
374+
375+
.ec-event-location {
376+
font-size: 0.8em;
377+
opacity: 0.85;
378+
white-space: nowrap;
379+
overflow: hidden;
380+
text-overflow: ellipsis;
381+
}
382+
.ec-event-location::before {
383+
content: '📍 ';
384+
}

0 commit comments

Comments
 (0)