mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 02:11:36 +00:00
39 lines
1.5 KiB
PHP
39 lines
1.5 KiB
PHP
<div x-data="">
|
|
<x-modal name="deployment-script" max-width="3xl">
|
|
<form
|
|
id="deployment-script-form"
|
|
hx-post="{{ route("servers.sites.application.deployment-script", ["server" => $server, "site" => $site]) }}"
|
|
hx-select="#deployment-script-form"
|
|
hx-target="#deployment-script-form"
|
|
hx-swap="outerHTML"
|
|
class="p-6"
|
|
>
|
|
<h2 class="text-lg font-medium text-gray-900 dark:text-gray-100">
|
|
{{ __("Deployment Script") }}
|
|
</h2>
|
|
|
|
<div class="mt-6">A bash script that will be executed when you run the deployment process.</div>
|
|
|
|
<div class="mt-6">
|
|
<x-input-label for="script" :value="__('Script')" />
|
|
<x-textarea id="script" name="script" class="mt-1 min-h-[400px] w-full">
|
|
{{ old("script", $site->deploymentScript?->content) }}
|
|
</x-textarea>
|
|
@error("script")
|
|
<x-input-error class="mt-2" :messages="$message" />
|
|
@enderror
|
|
</div>
|
|
|
|
<div class="mt-6 flex items-center justify-end">
|
|
<x-secondary-button type="button" x-on:click="$dispatch('close')">
|
|
{{ __("Cancel") }}
|
|
</x-secondary-button>
|
|
|
|
<x-primary-button class="ml-3" hx-disable>
|
|
{{ __("Save") }}
|
|
</x-primary-button>
|
|
</div>
|
|
</form>
|
|
</x-modal>
|
|
</div>
|