generated from thegrind/laravel-dockerized
Compare commits
No commits in common. "9e778adc51b0605ca44647268b2b5f5286516f85" and "8c3c2105dd582a5e4cd055765d61fcbb8904101b" have entirely different histories.
9e778adc51
...
8c3c2105dd
@ -1,12 +1,5 @@
|
|||||||
<div class="flex flex-col gap-6">
|
<div class="flex flex-col gap-6">
|
||||||
@if(empty($code))
|
@if($invitationAccepted)
|
||||||
<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')" />
|
<x-auth-header :title="__('Invitation Already Used')" :description="__('This invitation has already been accepted')" />
|
||||||
|
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
|
@ -68,17 +68,9 @@
|
|||||||
@endswitch
|
@endswitch
|
||||||
</div>
|
</div>
|
||||||
<div class="flex gap-2 items-center">
|
<div class="flex gap-2 items-center">
|
||||||
|
<flux:button variant="primary" size="sm">Copy invite link</flux:button>
|
||||||
@if($inv->isPending())
|
@if($inv->isPending())
|
||||||
<flux:button x-data="{copied: false}" variant="primary" size="sm" x-on:click="
|
<flux:button variant="danger" size="sm" icon="trash" wire:click="deleteInvitation({{ $inv->id }})" />
|
||||||
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
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</x-card>
|
</x-card>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user