vito/resources/views/application/auto-deployment.blade.php
Saeed Vaziry 428140b931
refactoring (#116)
- refactoring architecture
- fix incomplete ssh logs
- code editor for scripts in the app
- remove Jobs and SSHCommands
2024-03-14 20:03:43 +01:00

39 lines
1.6 KiB
PHP

<div>
@if ($site->deploymentScript)
<x-dropdown>
<x-slot name="trigger">
<x-secondary-button>
{{ __("Auto Deployment") }}
</x-secondary-button>
</x-slot>
<x-slot name="content">
<div id="auto-deployment">
<x-dropdown-link
class="cursor-pointer"
hx-post="{{ route('servers.sites.application.auto-deployment', ['server' => $server, 'site' => $site]) }}"
hx-swap="outerHTML"
hx-target="#auto-deployment"
hx-select="#auto-deployment"
>
{{ __("Enable") }}
@if ($site->isAutoDeployment())
<x-heroicon-o-check class="ml-1 h-5 w-5 text-green-600" />
@endif
</x-dropdown-link>
<x-dropdown-link
class="cursor-pointer"
hx-delete="{{ route('servers.sites.application.auto-deployment', ['server' => $server, 'site' => $site]) }}"
hx-swap="outerHTML"
hx-target="#auto-deployment"
>
{{ __("Disable") }}
@if (! $site->isAutoDeployment())
<x-heroicon-o-check class="ml-1 h-5 w-5 text-green-600" />
@endif
</x-dropdown-link>
</div>
</x-slot>
</x-dropdown>
@endif
</div>