mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 06:23:23 +00:00
Standardize highlighted buttons, selected controls, and loading indicators on coollabs accent colors; improve light-mode log toolbar styling; enhance small popups with compact/icon modes; and align navbars, helpers, and related layouts with matching tests.
39 lines
1.9 KiB
PHP
39 lines
1.9 KiB
PHP
<div>
|
|
@can('manageInvitations', currentTeam())
|
|
<form wire:submit="viaLink">
|
|
<x-application.settings-section title="Invite a member"
|
|
description="Create a reusable invitation link or deliver it by email.">
|
|
<x-slot:actions>
|
|
@if (is_transactional_emails_enabled())
|
|
<x-forms.button type="button" wire:click.prevent="viaEmail">
|
|
<x-reicon name="notifications" class="size-3.5" />
|
|
Send email
|
|
</x-forms.button>
|
|
@endif
|
|
<x-forms.button type="submit" wire:target="viaLink"
|
|
defaultClass="button button-highlighted">
|
|
<x-reicon name="plus" class="size-3.5" />
|
|
Generate link
|
|
</x-forms.button>
|
|
</x-slot:actions>
|
|
|
|
@if (!is_transactional_emails_enabled() && isInstanceAdmin())
|
|
<x-callout type="warning" title="Email delivery is not configured">
|
|
Configure transactional email in instance settings to send invitations directly.
|
|
</x-callout>
|
|
@endif
|
|
|
|
<div class="mt-4 grid gap-4 lg:grid-cols-2">
|
|
<x-forms.input id="email" type="email" label="Email address"
|
|
placeholder="teammate@example.com" required />
|
|
<x-forms.listbox id="role" label="Role" :options="array_values(array_filter([
|
|
auth()->user()->role() === 'owner' ? ['value' => 'owner', 'label' => 'Owner'] : null,
|
|
['value' => 'admin', 'label' => 'Admin'],
|
|
['value' => 'member', 'label' => 'Member'],
|
|
]))" />
|
|
</div>
|
|
</x-application.settings-section>
|
|
</form>
|
|
@endcan
|
|
</div>
|