mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-07 03:29:19 +02:00
- bookmark.md with draggable link + readable source + lookup table reference - all field selectors match actual form name attributes and schema IDs
5.2 KiB
5.2 KiB
Bookmarklet
Auto-fill TFE form (testing)
Drag the link below to your bookmarks bar, open /admin/add.php?mode=student, then click it. Every field gets filled with dummy data so you can hit submit immediately.
Bookmarklet
Remplir TFE
Readable source
(function () {
var f = document.querySelector('form.admin-form');
if (!f) return;
var set = function (name, val) {
var e = f.querySelector('[name="' + name + '"]');
if (e) { e.value = val; e.dispatchEvent(new Event('change', { bubbles: true })); }
};
var check = function (name) {
var e = f.querySelector('[name="' + name + '"]');
if (e) { e.checked = true; e.dispatchEvent(new Event('change', { bubbles: true })); }
};
var checkCB = function (name, val) {
var e = f.querySelector('[name="' + name + '[]"][value="' + val + '"]');
if (e) { e.checked = true; e.dispatchEvent(new Event('change', { bubbles: true })); }
};
// ── Informations du TFE ──
set('titre', 'TFE Test — Impact des réseaux sociaux sur la pratique artistique contemporaine');
set('subtitle', 'Étude de cas auprès des étudiant·es de l\'ERG');
set('auteurice', 'Marie-France Dupont');
set('mail', 'mfd@testmail.be');
set('synopsis', 'Ce travail explore la manière dont les plateformes numériques ont transformé les processus de création artistique.');
check('contact_public');
// ── Jury ──
set('jury_president', 'Prof. Jean-Luc Moreau');
set('jury_promoteur', 'Dr. Aline Vandenberghe');
check('jury_promoteur_ext');
// ── Cadre académique ──
set('année', '2025');
set('orientation', '4'); // Installation-Performance
set('ap', '3'); // Atelier Pratiques Situées
set('finality', '1'); // Approfondi
checkCB('languages', '1'); // Français
checkCB('languages', '2'); // Anglais
checkCB('formats', '1'); // Site web
checkCB('formats', '3'); // Vidéo
set('tag', 'réseaux sociaux, art numérique, sociologie, pratique artistique');
// ── Métadonnées complémentaires ──
set('license_id', '7'); // Tous droits réservés
set('duration_info', '96 pages');
set('lien', 'https://example.com/tfe-test');
set('access_type_id', '2'); // Interne
// ── Licences (student mode only) ──
check('cc4r');
})();
Lookup table reference (schema.sql seed IDs)
| Table | ID | Value |
|---|---|---|
| orientations | 1 | Arts Numériques |
| 2 | Dessin | |
| 3 | Cinéma d'animation | |
| 4 | Installation-Performance | |
| 5 | Peinture | |
| 6 | Photographie | |
| 7 | Sculpture | |
| 8 | Vidéographie | |
| 9 | Graphisme | |
| 10 | Typographie | |
| 11 | Design Numérique | |
| 12 | Illustration | |
| 13 | Bande-Dessinée | |
| 14 | Sérigraphie | |
| 15 | Gravure | |
| ap_programs | 1 | Narration Spéculative |
| 2 | Design et Politique du Multiple | |
| 3 | Atelier Pratiques Situées | |
| 4 | LIENS | |
| finality_types | 1 | Approfondi |
| 2 | Enseignement | |
| 3 | Spécialisé | |
| languages | 1 | Français |
| 2 | Anglais | |
| format_types | 1 | Site web |
| 2 | Audio | |
| 3 | Vidéo | |
| 4 | Performance | |
| 5 | Objet éditorial | |
| 6 | Installation | |
| 7 | Autre | |
| license_types | 1 | CC BY 4.0 |
| 2 | CC BY-SA 4.0 | |
| 3 | CC BY-ND 4.0 | |
| 4 | CC BY-NC 4.0 | |
| 5 | CC BY-NC-SA 4.0 | |
| 6 | CC BY-NC-ND 4.0 | |
| 7 | Tous droits réservés | |
| 8 | Domaine public | |
| access_types | 1 | Libre |
| 2 | Interne | |
| 3 | Interdit |