generated from thegrind/laravel-dockerized
Compare commits
2 Commits
8c3c2105dd
...
9e778adc51
Author | SHA1 | Date | |
---|---|---|---|
9e778adc51 | |||
f2b4860d00 |
@ -1,5 +1,12 @@
|
||||
<div class="flex flex-col gap-6">
|
||||
@if($invitationAccepted)
|
||||
@if(empty($code))
|
||||
<x-auth-header :title="__('Invitation Required')" :description="__('An invitation is required to create an account')" />
|
||||
|
||||
<div class="text-center">
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-400 mb-4">{{ __('Registration is by invitation only. Please contact an administrator to receive an invitation.') }}</p>
|
||||
<flux:link :href="route('login')" wire:navigate class="text-sm">{{ __('Return to login') }}</flux:link>
|
||||
</div>
|
||||
@elseif($invitationAccepted)
|
||||
<x-auth-header :title="__('Invitation Already Used')" :description="__('This invitation has already been accepted')" />
|
||||
|
||||
<div class="text-center">
|
||||
|
@ -68,9 +68,17 @@
|
||||
@endswitch
|
||||
</div>
|
||||
<div class="flex gap-2 items-center">
|
||||
<flux:button variant="primary" size="sm">Copy invite link</flux:button>
|
||||
@if($inv->isPending())
|
||||
<flux:button variant="danger" size="sm" icon="trash" wire:click="deleteInvitation({{ $inv->id }})" />
|
||||
<flux:button x-data="{copied: false}" variant="primary" size="sm" x-on:click="
|
||||
navigator.clipboard.writeText('{{ $inv->getInviteUrl() }}').then(() => {
|
||||
copied = true;
|
||||
setTimeout(() => copied = false, 2000);
|
||||
});
|
||||
">
|
||||
<span x-show="!copied">Copy invite link</span>
|
||||
<span x-show="copied">Copied!</span>
|
||||
</flux:button>
|
||||
<flux:button variant="danger" size="sm" icon="trash" wire:click="deleteInvitation({{ $inv->id }})" />
|
||||
@endif
|
||||
</div>
|
||||
</x-card>
|
||||
|
Loading…
x
Reference in New Issue
Block a user