mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 07:22:34 +00:00
Migrate to HTMX (#114)
Dropped Livewire Added HTMX Added Blade code lint Drop Mysql and Redis Migrate to SQLite
This commit is contained in:
49
resources/views/php/partials/install-extension.blade.php
Normal file
49
resources/views/php/partials/install-extension.blade.php
Normal file
@ -0,0 +1,49 @@
|
||||
<x-modal name="install-extension">
|
||||
<form
|
||||
id="install-extension-form"
|
||||
hx-post="{{ route("servers.php.install-extension", ["server" => $server]) }}"
|
||||
hx-swap="outerHTML"
|
||||
hx-select="#install-extension-form"
|
||||
class="p-6"
|
||||
>
|
||||
<input type="hidden" name="version" :value="version" />
|
||||
|
||||
<h2 class="text-lg font-medium text-gray-900 dark:text-gray-100">
|
||||
{{ __("Install Extension") }}
|
||||
</h2>
|
||||
|
||||
<div class="mt-6">
|
||||
<x-input-label for="extension" value="Name" />
|
||||
<x-select-input name="extension" class="mt-1 w-full">
|
||||
<option value="" selected>{{ __("Select") }}</option>
|
||||
@foreach (config("core.php_extensions") as $extension)
|
||||
<option value="{{ $extension }}" {{-- @if(in_array($extension, $installedExtensions)) disabled @endif --}}>
|
||||
{{ $extension }}
|
||||
{{--
|
||||
@if (in_array($extension, $installedExtensions))
|
||||
({{ __("Installed") }})
|
||||
@endif
|
||||
--}}
|
||||
</option>
|
||||
@endforeach
|
||||
</x-select-input>
|
||||
@error("extension")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
|
||||
@error("version")
|
||||
<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 hx-disable class="ml-3">
|
||||
{{ __("Install") }}
|
||||
</x-primary-button>
|
||||
</div>
|
||||
</form>
|
||||
</x-modal>
|
Reference in New Issue
Block a user