generated from thegrind/laravel-dockerized
33 lines
1.1 KiB
PHP
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> |