QA page
This commit is contained in:
parent
dea71fc6b3
commit
11cd3236c5
13 changed files with 1952 additions and 71 deletions
|
@ -240,13 +240,23 @@ function createPopupContent(properties) {
|
|||
const title = properties.label || properties.name || 'Événement';
|
||||
const what = properties.what || 'Non spécifié';
|
||||
const description = properties.description || 'Aucune description disponible';
|
||||
const eventId = properties.id;
|
||||
|
||||
return `
|
||||
<div class="event-popup">
|
||||
<h3 style="margin-top: 0; color: #0078ff;">${title}</h3>
|
||||
${eventId ?
|
||||
`<h3 style="margin-top: 0; color: #0078ff; cursor: pointer; text-decoration: underline;" onclick="window.location.href='/demo/edit/${eventId}'" title="Cliquer pour modifier l'événement">${title}</h3>` :
|
||||
`<h3 style="margin-top: 0; color: #0078ff;">${title}</h3>`
|
||||
}
|
||||
<p><strong>Type:</strong> ${what}</p>
|
||||
<p><strong>Description:</strong> ${description}</p>
|
||||
${properties.id ? `<p><a href="/demo/edit/${properties.id}" style="color: #0078ff; font-weight: bold;">Modifier</a></p>` : ''}
|
||||
${eventId ?
|
||||
`<div style="margin-top: 10px;">
|
||||
<a href="/demo/edit/${eventId}" style="color: #0078ff; font-weight: bold; margin-right: 10px;">✏️ Modifier</a>
|
||||
<a href="/demo/by_id/${eventId}" style="color: #0078ff; font-weight: bold;">👁️ Détails</a>
|
||||
</div>` :
|
||||
`<p><small style="color: #666;">ID non disponible</small></p>`
|
||||
}
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue