Files
coolify/resources/views/livewire/team/invite-link.blade.php
Andras Bacsai bdb367555d feat(ui): unify brand accents and polish shared controls
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.
2026-08-05 22:34:56 +02:00

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>