diff --git a/TODO.md b/TODO.md index b24801b..935b661 100644 --- a/TODO.md +++ b/TODO.md @@ -1,5 +1,11 @@ # Current tasks +## Récapitulatif admin: fieldset + table fichiers +- [x] Convert all sections to fieldsets with legends +- [x] Convert files list to table (recap-files-table) +- [x] Add bottom margins on fieldsets (admin-main--recap class) +- [x] Remove image thumbnails from files table (emoji icon only) + ## Mots-clés fieldset in contenus - [x] Create contenus-motscles-fragment.php (tags fragment mirroring langues) - [x] Add Mots-clés fieldset to contenus template (search + table + bulk actions) diff --git a/app/public/assets/css/admin.css b/app/public/assets/css/admin.css index 721bafe..3782b19 100644 --- a/app/public/assets/css/admin.css +++ b/app/public/assets/css/admin.css @@ -2075,6 +2075,14 @@ th.admin-ap-col { /* ── Récapitulatif sections ───────────────────────────────── */ +.admin-main--recap > fieldset { + margin-bottom: var(--space-l); +} + +.admin-main--recap > fieldset:last-of-type { + margin-bottom: 0; +} + .recap-synopsis, .recap-long-text { max-width: 70ch; diff --git a/app/public/assets/css/form.css b/app/public/assets/css/form.css index 20b19ce..1ae9abb 100644 --- a/app/public/assets/css/form.css +++ b/app/public/assets/css/form.css @@ -1354,6 +1354,105 @@ legend { font-style: italic; } +/* ── Recap files table ─────────────────────────────────────────── */ + +.recap-files-table { + width: 100%; + border-collapse: collapse; + font-size: var(--step--1); +} + +.recap-files-table thead th { + text-align: left; + font-weight: 600; + color: var(--text-secondary); + font-size: var(--step--2); + text-transform: uppercase; + letter-spacing: 0.05em; + padding: var(--space-xs) var(--space-s); + border-bottom: 2px solid var(--border-primary); +} + +.recap-files-table tbody td { + padding: var(--space-xs) var(--space-s); + border-bottom: 1px solid var(--border-secondary); + vertical-align: middle; +} + +.recap-files-table tbody tr:last-child td { + border-bottom: none; +} + +.recap-files-icon { + width: 1px; + white-space: nowrap; +} + +.recap-files-icon-emoji { + font-size: 1.3rem; + display: inline-flex; + align-items: center; + justify-content: center; + width: 2.2rem; + height: 2.2rem; + background: var(--accent-muted); + border-radius: var(--radius); +} + +.recap-files-thumb { + max-width: 80px; + max-height: 60px; + object-fit: cover; + border-radius: var(--radius); +} + +.recap-files-name { + font-weight: 500; +} + +.recap-files-name a { + color: var(--text-primary); + text-decoration: none; +} + +.recap-files-name a:hover { + text-decoration: underline; + color: var(--accent); +} + +.recap-files-peertube-id { + display: block; + font-size: var(--step--2); + color: var(--text-tertiary); + font-family: monospace; +} + +.recap-files-label { + display: block; + font-size: var(--step--2); + color: var(--text-secondary); + font-style: italic; +} + +.recap-files-type { + font-size: var(--step--2); + color: var(--text-tertiary); + white-space: nowrap; +} + +.recap-files-size { + font-size: var(--step--2); + color: var(--text-tertiary); + white-space: nowrap; + font-variant-numeric: tabular-nums; +} + +.recap-files-date { + font-size: var(--step--2); + color: var(--text-tertiary); + white-space: nowrap; +} + /* ── File browser (relink) ──────────────────────────────────────── */ .file-browser-trigger { diff --git a/app/templates/admin/recapitulatif.php b/app/templates/admin/recapitulatif.php index dd9e650..ea664ac 100644 --- a/app/templates/admin/recapitulatif.php +++ b/app/templates/admin/recapitulatif.php @@ -1,4 +1,4 @@ -
+
@@ -36,8 +36,8 @@ -
-

Identité

+
+ Identité
Identifiant
Titre
@@ -55,17 +55,17 @@
Doctoral
Oui
-
+ -
-

Cadre académique

+
+ Cadre académique
Orientation
Atelier Pratique
Finalité
-
+ -
-

Jury

+
+ Jury
Président·e
@@ -102,12 +102,12 @@
Note du jury
/20
-
+ -
-

Contenu

+
+ Contenu
Synopsis
@@ -133,11 +133,11 @@
Lien BAIU
-
+ -
-

Accès et licence

+
+ Accès et licence
Degré d'ouverture
@@ -154,11 +154,11 @@
Exemplaire BAIU
Exemplaire ERG
-
+ -
-

Dates et publication

+
+ Dates et publication
Soumis le
@@ -174,21 +174,31 @@
Note du jury ajoutée
-
+ -
-

Remarques

+
+ Remarques

-
+ -
-

Fichiers ()

-
    +
    + Fichiers () + + + + + + + + + + + '📎', }; ?> -
  • -
    - - <?= $fileName ?> - - - -
    -
    - -
    +
  • + + + + + + - - + +
    NomTypeTailleDate
    + + + - ID : + ID : - + - - - 0): ?> - - - - - - - - - + 0 ? formatFileSize($f['file_size']) : '–' ?>
    +