Modèle:Test1 : Différence entre versions
[version vérifiée] | [version vérifiée] |
Ligne 1 : | Ligne 1 : | ||
− | {{#if:{{{button|}}}|<div class="button modal-trigger" data-modal="{{{name}}}">{{{button}}}</div>}} | + | {{#if:{{{button|}}}|<div class="button modal-trigger" {{#if:{{{name|}}}|data-modal="{{{name}}}"}}>{{{button}}}</div>}} |
− | <div class="modal" style="z-index: 110; position: fixed; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5);" data-modal="{{{name}}}"> | + | <div class="modal" style="z-index: 110; position: fixed; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5);" {{#if:{{{name|}}}|data-modal="{{{name}}}"}}> |
<div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #cbaa74; width: 24rem; border: 1px solid black; border-radius: 8px;"> | <div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #cbaa74; width: 24rem; border: 1px solid black; border-radius: 8px;"> | ||
<div style="display: flex; justify-content: space-between; align-items: flex-start;"> | <div style="display: flex; justify-content: space-between; align-items: flex-start;"> |