feat: Add new template button to templates page and improve template creation form
This commit is contained in:
@@ -31,6 +31,8 @@ class TemplateManager extends Component
|
||||
'select' => 'Lista desplegable',
|
||||
];
|
||||
|
||||
protected $listeners = ['showTemplateForm' => 'newTemplate'];
|
||||
|
||||
public function mount(Project $project)
|
||||
{
|
||||
$this->project = $project;
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
<x-app-layout>
|
||||
<livewire:template-manager :project="$project" />
|
||||
<div class="mb-6">
|
||||
<button wire:click="$emit('showTemplateForm')"
|
||||
class="btn btn-primary btn-lg">
|
||||
Nuevo template
|
||||
</button>
|
||||
</div>
|
||||
<livewire/template-manager :project="$project" />
|
||||
</x-app-layout>
|
||||
Reference in New Issue
Block a user