summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-24 16:25:40 +0200
committerSanto Cariotti <santo@dcariotti.me>2022-09-24 16:25:40 +0200
commit69b445505b696fcd63542864cee2aa401982a0a1 (patch)
tree6f8089f18f98be846c1dc13f6f5a2023caffefe0
parent1d90343bf101f1715b71168707b82e828046b7e1 (diff)
Go back to model page from edit
-rw-r--r--pages/models/_id/edit.vue5
1 files changed, 5 insertions, 0 deletions
diff --git a/pages/models/_id/edit.vue b/pages/models/_id/edit.vue
index 6a59b5e..7b8155e 100644
--- a/pages/models/_id/edit.vue
+++ b/pages/models/_id/edit.vue
@@ -1,6 +1,11 @@
<template lang="pug">
.mx-auto.w-90p.py-6#modelpage(class="sm:px-6 lg:px-8 md:max-w-7xl")
h1.text-3xl.font-bold Edit {{ model.name }}
+ a.mt-3.mb-5.block.flex(:href="'/models/'+model.id" class="hover:underline")
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="mr-2 w-6 h-6">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M15.75 19.5L8.25 12l7.5-7.5" />
+ </svg>
+ | Back to model page
model-form(:data="model" v-if="model.id")
</template>