-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f51d790
commit f2f9ed2
Showing
6 changed files
with
115 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
resources/views/livewire/php/partials/install-extension.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<x-modal name="install-extension"> | ||
<form wire:submit.prevent="installExtension" class="p-6"> | ||
<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 wire:model.defer="extension" 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('name') | ||
<x-input-error class="mt-2" :messages="$message" /> | ||
@enderror | ||
</div> | ||
|
||
<div class="mt-6 flex items-center justify-end"> | ||
@if (session('status') === 'started-installation') | ||
<p class="mr-2">{{ __('Installation Started!') }}</p> | ||
@endif | ||
|
||
<x-secondary-button type="button" x-on:click="$dispatch('close')"> | ||
{{ __('Cancel') }} | ||
</x-secondary-button> | ||
|
||
<x-primary-button class="ml-3"> | ||
{{ __('Install') }} | ||
</x-primary-button> | ||
</div> | ||
</form> | ||
</x-modal> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters