mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
add logout btns
This commit is contained in:
@@ -146,7 +146,13 @@
|
||||
/>
|
||||
@endif
|
||||
@auth
|
||||
<div></div>
|
||||
<form method="POST" action="{{ route('logout') }}" class="inline">
|
||||
@csrf
|
||||
<x-button secondary type="submit">
|
||||
<i class="fa-thin fa-sign-out"></i>
|
||||
{{ __('Logout') }}
|
||||
</x-button>
|
||||
</form>
|
||||
@else
|
||||
<x-button href="{{ route('auth.ln') }}">
|
||||
<i class="fa-thin fa-sign-in"></i>
|
||||
|
||||
@@ -35,6 +35,14 @@
|
||||
<i class="fa-thin fa-sign-in"></i>
|
||||
{{ __('Login') }}
|
||||
</x-button>
|
||||
@else
|
||||
<form method="POST" action="{{ route('logout') }}" class="inline">
|
||||
@csrf
|
||||
<x-button secondary type="submit">
|
||||
<i class="fa-thin fa-sign-out"></i>
|
||||
{{ __('Logout') }}
|
||||
</x-button>
|
||||
</form>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -177,7 +177,34 @@
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
|
||||
@auth
|
||||
@else
|
||||
<div class="rounded-md bg-red-50 p-4">
|
||||
<div class="flex">
|
||||
<div class="flex-shrink-0">
|
||||
<!-- Heroicon name: mini/x-circle -->
|
||||
<svg class="h-5 w-5 text-red-400" xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
|
||||
<path fill-rule="evenodd"
|
||||
d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z"
|
||||
clip-rule="evenodd"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="ml-3">
|
||||
<h3 class="text-sm font-medium text-red-800">There were 2 errors with
|
||||
your submission</h3>
|
||||
<div class="mt-2 text-sm text-red-700">
|
||||
<ul role="list" class="list-disc space-y-1 pl-5">
|
||||
<li>Your password must be at least 8 characters</li>
|
||||
<li>Your password must include at least one pro wrestling
|
||||
finishing move
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endauth
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user