Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 1x | <script setup>
import { Head } from '@inertiajs/vue3';
import PromptForm from '../../Components/PromptForm.vue';
defineProps({
initial: { type: Object, required: true },
suggestedTags: { type: Array, required: true },
promptId: { type: Number, required: true },
});
</script>
<template>
<Head :title="`${initial.name} — Edit`" />
<div class="mx-auto max-w-2xl">
<h1 class="mb-1 text-xl font-semibold tracking-tight">Edit prompt</h1>
<p class="mb-5 text-sm text-slate-500">Update the template, description, or tags.</p>
<PromptForm
:initial="initial"
:suggested-tags="suggestedTags"
method="put"
:action="`/prompts/${promptId}`"
submit-label="Save changes"
:cancel-href="`/prompts/${promptId}`"
/>
</div>
</template>
|