Files
xamxam/app/templates/partials/form/file-browser-fragment.php

26 lines
893 B
PHP

<?php
/**
* file-browser-fragment.php
*
* Shared dialog modal for the relink file browser.
* Included by the edit form only (admin mode, edit context).
*
* Expected variables:
* (none — the modal is self-contained and uses hx-get for its content)
*/
?>
<dialog id="relink-modal" class="relink-modal">
<div class="relink-modal-header">
<h3>Relier un fichier existant</h3>
<button type="button" class="btn btn--sm btn--ghost"
onclick="document.getElementById('relink-modal').close()"
aria-label="Fermer">✕</button>
</div>
<div id="relink-modal-body">
<p class="file-browser-loading">Chargement du navigateur de fichiers…</p>
</div>
<div class="relink-modal-footer">
<small>Seuls les fichiers déjà présents dans storage/documents/ ou storage/theses/ sont listés.</small>
</div>
</dialog>