frontend: add machine skeleton page

This commit is contained in:
Matthieu
2025-09-25 16:13:55 +02:00
parent 0d2748f660
commit 801fe5be95
3 changed files with 6 additions and 6 deletions

View File

@@ -6,7 +6,7 @@
<div class="my-8">
<!-- Header with Add Button -->
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-gray-800">Schémas de machine</h2>
<h2 class="text-2xl font-bold text-gray-800">Squelettes de machine</h2>
<NuxtLink to="/generator" class="btn btn-primary">
<IconLucidePlus
class="w-5 h-5 mr-2"

View File

@@ -20,7 +20,7 @@
<IconLucideSquarePen class="w-4 h-4 mr-2" aria-hidden="true" />
Éditer complètement
</NuxtLink>
<NuxtLink to="/types" class="btn btn-outline">
<NuxtLink to="/machine-skeleton" class="btn btn-outline">
Retour
</NuxtLink>
</div>
@@ -100,7 +100,7 @@
<p>Le type de machine demandé n'existe pas.</p>
</div>
</div>
<NuxtLink to="/types" class="btn btn-primary mt-4">
<NuxtLink to="/machine-skeleton" class="btn btn-primary mt-4">
Retour aux types
</NuxtLink>
</div>

View File

@@ -16,7 +16,7 @@
<h2 class="card-title text-2xl">
Modifier : {{ type.name }}
</h2>
<NuxtLink to="/types" class="btn btn-outline">
<NuxtLink to="/machine-skeleton" class="btn btn-outline">
Retour
</NuxtLink>
</div>
@@ -38,7 +38,7 @@
<p>Le type de machine demandé n'existe pas.</p>
</div>
</div>
<NuxtLink to="/types" class="btn btn-primary mt-4">
<NuxtLink to="/machine-skeleton" class="btn btn-primary mt-4">
Retour aux types
</NuxtLink>
</div>
@@ -147,7 +147,7 @@ const saveChanges = async () => {
if (result.success) {
showSuccess('Type mis à jour avec succès !')
router.push('/types')
router.push('/machine-skeleton')
} else {
showError('Erreur lors de la mise à jour du type')
}