frontend: add machine skeleton page
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
<div class="my-8">
|
<div class="my-8">
|
||||||
<!-- Header with Add Button -->
|
<!-- Header with Add Button -->
|
||||||
<div class="flex justify-between items-center mb-6">
|
<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">
|
<NuxtLink to="/generator" class="btn btn-primary">
|
||||||
<IconLucidePlus
|
<IconLucidePlus
|
||||||
class="w-5 h-5 mr-2"
|
class="w-5 h-5 mr-2"
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
<IconLucideSquarePen class="w-4 h-4 mr-2" aria-hidden="true" />
|
<IconLucideSquarePen class="w-4 h-4 mr-2" aria-hidden="true" />
|
||||||
Éditer complètement
|
Éditer complètement
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<NuxtLink to="/types" class="btn btn-outline">
|
<NuxtLink to="/machine-skeleton" class="btn btn-outline">
|
||||||
Retour
|
Retour
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
@@ -100,7 +100,7 @@
|
|||||||
<p>Le type de machine demandé n'existe pas.</p>
|
<p>Le type de machine demandé n'existe pas.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<NuxtLink to="/types" class="btn btn-primary mt-4">
|
<NuxtLink to="/machine-skeleton" class="btn btn-primary mt-4">
|
||||||
Retour aux types
|
Retour aux types
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<h2 class="card-title text-2xl">
|
<h2 class="card-title text-2xl">
|
||||||
Modifier : {{ type.name }}
|
Modifier : {{ type.name }}
|
||||||
</h2>
|
</h2>
|
||||||
<NuxtLink to="/types" class="btn btn-outline">
|
<NuxtLink to="/machine-skeleton" class="btn btn-outline">
|
||||||
Retour
|
Retour
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
<p>Le type de machine demandé n'existe pas.</p>
|
<p>Le type de machine demandé n'existe pas.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<NuxtLink to="/types" class="btn btn-primary mt-4">
|
<NuxtLink to="/machine-skeleton" class="btn btn-primary mt-4">
|
||||||
Retour aux types
|
Retour aux types
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
@@ -147,7 +147,7 @@ const saveChanges = async () => {
|
|||||||
|
|
||||||
if (result.success) {
|
if (result.success) {
|
||||||
showSuccess('Type mis à jour avec succès !')
|
showSuccess('Type mis à jour avec succès !')
|
||||||
router.push('/types')
|
router.push('/machine-skeleton')
|
||||||
} else {
|
} else {
|
||||||
showError('Erreur lors de la mise à jour du type')
|
showError('Erreur lors de la mise à jour du type')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user