fix(team): keep invite link root element

This commit is contained in:
Andras Bacsai 2026-07-02 18:56:57 +02:00
parent eb56287b57
commit bec871cf78
3 changed files with 27 additions and 25 deletions

View file

@ -1,20 +1,22 @@
@can('manageInvitations', currentTeam()) <div>
<form wire:submit='viaLink' class="flex gap-2 flex-col lg:flex-row items-end"> @can('manageInvitations', currentTeam())
<div class="flex flex-1 lg:w-fit w-full gap-2"> <form wire:submit='viaLink' class="flex gap-2 flex-col lg:flex-row items-end">
<x-forms.input id="email" type="email" label="Email" name="email" placeholder="Email" required /> <div class="flex flex-1 lg:w-fit w-full gap-2">
<x-forms.select id="role" name="role" label="Role"> <x-forms.input id="email" type="email" label="Email" name="email" placeholder="Email" required />
@if (auth()->user()->role() === 'owner') <x-forms.select id="role" name="role" label="Role">
<option value="owner">Owner</option> @if (auth()->user()->role() === 'owner')
<option value="owner">Owner</option>
@endif
<option value="admin">Admin</option>
<option value="member">Member</option>
</x-forms.select>
</div>
<div class="flex gap-2 lg:w-fit w-full">
<x-forms.button type="submit">Generate Invitation Link</x-forms.button>
@if (is_transactional_emails_enabled())
<x-forms.button wire:click.prevent='viaEmail'>Send Invitation via Email</x-forms.button>
@endif @endif
<option value="admin">Admin</option> </div>
<option value="member">Member</option> </form>
</x-forms.select> @endcan
</div> </div>
<div class="flex gap-2 lg:w-fit w-full">
<x-forms.button type="submit">Generate Invitation Link</x-forms.button>
@if (is_transactional_emails_enabled())
<x-forms.button wire:click.prevent='viaEmail'>Send Invitation via Email</x-forms.button>
@endif
</div>
</form>
@endcan

View file

@ -803,7 +803,7 @@
"category": "backend", "category": "backend",
"logo": "svgs/convex.svg", "logo": "svgs/convex.svg",
"minversion": "0.0.0", "minversion": "0.0.0",
"template_last_updated_at": "2026-05-09T19:26:30+05:30", "template_last_updated_at": "2026-06-12T10:45:52+02:00",
"port": "6791" "port": "6791"
}, },
"cryptgeon": { "cryptgeon": {
@ -1779,7 +1779,7 @@
"category": "devtools", "category": "devtools",
"logo": "svgs/gitea.svg", "logo": "svgs/gitea.svg",
"minversion": "0.0.0", "minversion": "0.0.0",
"template_last_updated_at": "2026-06-01T07:54:27-05:00" "template_last_updated_at": "2026-06-06T00:11:24+02:00"
}, },
"gitea-with-mariadb": { "gitea-with-mariadb": {
"documentation": "https://docs.gitea.com?utm_source=coolify.io", "documentation": "https://docs.gitea.com?utm_source=coolify.io",
@ -2361,7 +2361,7 @@
"category": "automation", "category": "automation",
"logo": "svgs/inngest.png", "logo": "svgs/inngest.png",
"minversion": "0.0.0", "minversion": "0.0.0",
"template_last_updated_at": null, "template_last_updated_at": "2026-07-02T13:25:47+02:00",
"port": "8288" "port": "8288"
}, },
"invoice-ninja": { "invoice-ninja": {

View file

@ -803,7 +803,7 @@
"category": "backend", "category": "backend",
"logo": "svgs/convex.svg", "logo": "svgs/convex.svg",
"minversion": "0.0.0", "minversion": "0.0.0",
"template_last_updated_at": "2026-05-09T19:26:30+05:30", "template_last_updated_at": "2026-06-12T10:45:52+02:00",
"port": "6791" "port": "6791"
}, },
"cryptgeon": { "cryptgeon": {
@ -1779,7 +1779,7 @@
"category": "devtools", "category": "devtools",
"logo": "svgs/gitea.svg", "logo": "svgs/gitea.svg",
"minversion": "0.0.0", "minversion": "0.0.0",
"template_last_updated_at": "2026-06-01T07:54:27-05:00" "template_last_updated_at": "2026-06-06T00:11:24+02:00"
}, },
"gitea-with-mariadb": { "gitea-with-mariadb": {
"documentation": "https://docs.gitea.com?utm_source=coolify.io", "documentation": "https://docs.gitea.com?utm_source=coolify.io",
@ -2361,7 +2361,7 @@
"category": "automation", "category": "automation",
"logo": "svgs/inngest.png", "logo": "svgs/inngest.png",
"minversion": "0.0.0", "minversion": "0.0.0",
"template_last_updated_at": null, "template_last_updated_at": "2026-07-02T13:25:47+02:00",
"port": "8288" "port": "8288"
}, },
"invoice-ninja": { "invoice-ninja": {