diff --git a/frontend/src/pages/admin/AdminCategoriesPage.vue b/frontend/src/pages/admin/AdminCategoriesPage.vue index ba39258..d3aa16e 100644 --- a/frontend/src/pages/admin/AdminCategoriesPage.vue +++ b/frontend/src/pages/admin/AdminCategoriesPage.vue @@ -1,5 +1,6 @@ + + + + + Administration + Édition d'une catégorie thématique. + + + + + + + + + + + + Retour aux catégories + + + + + + + + + + + + {{ form.name || '(sans nom)' }} + {{ form.description }} + + + {{ projectsCount }} projet{{ projectsCount > 1 ? 's' : '' }} + + + {{ DIMENSION_OPTIONS.find(d => d.value === form.dimension)?.label }} + + + + Supprimer + + + + + + Nom * + + Nom requis. + + + + + Slug + + Identifiant URL. Casse les filtres existants. + + + Ordre + + Tri (asc). + + + + + Description + + + + + + Couleur + + + + + Format attendu : #RRGGBB + + + Dimension Donut + + {{ d.label }} + + + Détermine où les projets de cette catégorie se placent dans la viz Donut. + + + + + + Icône (nom) + + + Nom d'icône (style Lucide). Champ libre — le rendu visuel sera ajouté ultérieurement. + + + + + {{ generalError }} + + + Modifications enregistrées. + + + + Annuler + + {{ submitting ? 'Enregistrement…' : 'Enregistrer' }} + + + + + + diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 0288a1e..268430b 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -40,6 +40,7 @@ const routes: RouteRecordRaw[] = [ { path: 'admin/members', name: 'admin-members', component: () => import('@/pages/admin/AdminMembersPage.vue'), beforeEnter: requireAdmin }, { path: 'admin/members/:slug/edit', name: 'admin-member-edit', component: () => import('@/pages/admin/AdminMemberEditPage.vue'), props: true, beforeEnter: requireAdmin }, { path: 'admin/categories', name: 'admin-categories', component: () => import('@/pages/admin/AdminCategoriesPage.vue'), beforeEnter: requireAdmin }, + { path: 'admin/categories/:slug/edit', name: 'admin-category-edit', component: () => import('@/pages/admin/AdminCategoryEditPage.vue'), props: true, beforeEnter: requireAdmin }, { path: 'admin/login', name: 'admin-login', component: () => import('@/pages/AdminLoginPage.vue'), meta: { hideForAuthed: true } }, { path: ':pathMatch(.*)*', name: 'not-found', component: () => import('@/pages/NotFoundPage.vue') },
Édition d'une catégorie thématique.
{{ form.description }}
Nom requis.
Identifiant URL. Casse les filtres existants.
Tri (asc).
Format attendu : #RRGGBB
+ Détermine où les projets de cette catégorie se placent dans la viz Donut. +
+ Nom d'icône (style Lucide). Champ libre — le rendu visuel sera ajouté ultérieurement. +