Enhance Template Import and Preview Functionality: Updated the ImportHtmlTemplates command to improve asset path handling by moving files to storage and updating HTML asset paths. Added a preview action in SectionTemplatesTable for better template management, along with a new Blade view for rendering previews. Adjusted route for template preview to accept any request method for flexibility.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<div class="w-full flex flex-col" style="height: 600px;">
|
||||
<div class="flex-1 w-full relative bg-white border rounded-lg overflow-hidden">
|
||||
<iframe
|
||||
src="{{ route('template.preview', ['type' => 'section', 'record_id' => $record->id]) }}"
|
||||
class="w-full h-full absolute inset-0 border-0"
|
||||
style="width: 100%; height: 100%;"
|
||||
title="Preview"
|
||||
></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user