mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 06:23:23 +00:00
Extract shared settings-layout components and a dedicated team danger-zone page. Enable modal editing for security resources, polish OAuth/API-token controls, and align notification and service configuration UI with the new navigation patterns.
35 lines
1.6 KiB
PHP
35 lines
1.6 KiB
PHP
<div>
|
|
<x-slot:title>
|
|
Teams | Coolify
|
|
</x-slot>
|
|
|
|
<x-team.settings-layout>
|
|
<div class="flex flex-col gap-6">
|
|
<form wire:submit="submit" class="application-settings-form">
|
|
<x-unsaved-bar action="submit" />
|
|
<x-application.settings-section title="General"
|
|
description="Manage this team's identity and shared API access.">
|
|
<x-slot:actions>
|
|
<x-modal-input buttonTitle="New team" title="New Team">
|
|
<livewire:team.create />
|
|
</x-modal-input>
|
|
</x-slot:actions>
|
|
<div class="grid gap-4 lg:grid-cols-2">
|
|
<x-forms.input id="name" label="Name" required canGate="update" :canResource="$team" />
|
|
<x-forms.input id="description" label="Description" canGate="update" :canResource="$team" />
|
|
<div class="lg:col-span-2">
|
|
<x-forms.listbox id="is_mcp_server_enabled" label="MCP server"
|
|
helper="Controls whether this team's API tokens can use the instance MCP endpoint."
|
|
:disabled="! auth()->user()->can('update', $team)" :options="[
|
|
['value' => false, 'label' => 'Disabled for this team'],
|
|
['value' => true, 'label' => 'Enabled for this team'],
|
|
]" />
|
|
</div>
|
|
</div>
|
|
</x-application.settings-section>
|
|
</form>
|
|
|
|
</div>
|
|
</x-team.settings-layout>
|
|
</div>
|