test: Restore Basic Information section in admin.vue template
This commit is contained in:
@@ -31,8 +31,36 @@
|
|||||||
<h2 class="text-xl font-semibold">Sermon Details</h2>
|
<h2 class="text-xl font-semibold">Sermon Details</h2>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- Form content will go here -->
|
<form @submit.prevent="handleSubmit" class="space-y-8">
|
||||||
|
<!-- Basic Information -->
|
||||||
|
<div class="space-y-4">
|
||||||
|
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
|
||||||
|
<UFormGroup label="Sermon Title" name="title" required>
|
||||||
|
<UInput
|
||||||
|
v-model="form.title"
|
||||||
|
placeholder="Enter sermon title"
|
||||||
|
:disabled="loading"
|
||||||
|
/>
|
||||||
|
</UFormGroup>
|
||||||
|
|
||||||
|
<UFormGroup label="Sermon Date" name="date" required>
|
||||||
|
<UInput
|
||||||
|
v-model="form.date"
|
||||||
|
type="date"
|
||||||
|
:disabled="loading"
|
||||||
|
/>
|
||||||
|
</UFormGroup>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<UFormGroup label="Generated URL" name="generatedUrl">
|
||||||
|
<UInput
|
||||||
|
:value="form.title && form.date ? generateSlug(form.title, form.date) : 'Enter title and date to see URL'"
|
||||||
|
:disabled="loading"
|
||||||
|
readonly
|
||||||
|
/>
|
||||||
|
</UFormGroup>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
</UCard>
|
</UCard>
|
||||||
|
|
||||||
<!-- Success Message -->
|
<!-- Success Message -->
|
||||||
|
|||||||
Reference in New Issue
Block a user