coolify/resources/views/livewire/source/github/change.blade.php

41 lines
2.2 KiB
PHP
Raw Normal View History

2023-05-09 10:01:57 +02:00
<div x-data="{ deleteSource: false }">
<x-naked-modal show="deleteSource" message='Are you sure you would like to delete this source?' />
2023-05-08 13:36:49 +02:00
<form wire:submit.prevent='submit'>
<x-inputs.input id="github_app.name" label="App Name" required />
2023-05-16 11:02:51 +02:00
2023-05-08 13:36:49 +02:00
@if ($github_app->app_id)
<x-inputs.input id="github_app.organization" label="Organization" disabled
placeholder="Personal user if empty" />
@else
<x-inputs.input id="github_app.organization" label="Organization" placeholder="Personal user if empty" />
@endif
<x-inputs.input id="github_app.api_url" label="API Url" disabled />
<x-inputs.input id="github_app.html_url" label="HTML Url" disabled />
<x-inputs.input id="github_app.custom_user" label="User" required />
<x-inputs.input type="number" id="github_app.custom_port" label="Port" required />
2023-05-16 11:02:51 +02:00
2023-05-08 13:36:49 +02:00
@if ($github_app->app_id)
<x-inputs.input type="number" id="github_app.app_id" label="App Id" disabled />
<x-inputs.input type="number" id="github_app.installation_id" label="Installation Id" disabled />
<x-inputs.input id="github_app.client_id" label="Client Id" type="password" disabled />
<x-inputs.input id="github_app.client_secret" label="Client Secret" type="password" disabled />
<x-inputs.input id="github_app.webhook_secret" label="Webhook Secret" type="password" disabled />
2023-05-16 11:02:51 +02:00
<x-inputs.input noDirty type="checkbox" label="System Wide?" instantSave id="is_system_wide" />
<div class="py-2">
<x-inputs.button isBold type="submit">Save</x-inputs.button>
<x-inputs.button isWarning x-on:click.prevent="deleteSource = true">
Delete
</x-inputs.button>
</div>
2023-05-08 13:36:49 +02:00
@else
2023-05-16 11:02:51 +02:00
<x-inputs.input noDirty type="checkbox" label="System Wide?" instantSave id="is_system_wide" />
2023-05-08 13:36:49 +02:00
<div class="py-2">
2023-05-16 11:02:51 +02:00
<x-inputs.button isBold type="submit">Save</x-inputs.button>
2023-05-09 10:01:57 +02:00
<x-inputs.button isWarning x-on:click.prevent="deleteSource = true">
Delete
</x-inputs.button>
2023-05-08 13:36:49 +02:00
</div>
@endif
</form>
</div>