Javier Feliz 1f596fdc20
Some checks failed
tests / ci (push) Has been cancelled
linter / quality (push) Has been cancelled
Build & Push Docker Image to Registry / build (release) Successful in 4m34s
Editable scripts and install octane
2025-07-22 22:40:47 -04:00

33 lines
1.1 KiB
PHP

<form wire:submit="create" class="flex flex-col gap-4">
@if (empty($script))
<flux:heading size="xl">New Script</flux:heading>
@else
<div class="flex gap-2 items-center">
<div class="flex-1">
<flux:heading>Editing: {{$script->name}}</flux:heading>
</div>
<flux:button size="sm" variant="subtle" wire:click="resetToNew">Reset</flux:button>
</div>
@endif
<div class="flex gap-4">
<div class="flex-1">
<flux:input label="Name" placeholder="New install setup" wire:model="name" />
</div>
<flux:field class="flex-1">
<flux:label>Path</flux:label>
<flux:input.group>
<flux:input.group.prefix>{{ config('app.url') }}/</flux:input.group.prefix>
<flux:input placeholder="new-install" wire:model="path" />
</flux:input.group>
</flux:field>
</div>
<flux:textarea wire:model="content" label="Script content" />
<flux:button variant="primary" type="submit">
@if (empty($script))
Create
@else
Update
@endif
</flux:button>
</form>