Skip to content

Commit

Permalink
Merge pull request #79 from ser-tec/fix/unique-logout-form-id
Browse files Browse the repository at this point in the history
Fix duplicate id="logout-form" in "combo" layout mode
  • Loading branch information
takielias authored Dec 10, 2024
2 parents f5ac548 + b47c46c commit 22583e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/partials/header/top-right.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
<div class="dropdown-divider"></div>
<a href="{{$setting_url}}" class="dropdown-item">Settings</a>
<a class="dropdown-item"
href="#" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
href="#" onclick="event.preventDefault(); document.getElementById('logout-form-{{ uniqid('logout-form-') }}').submit();">
<i class="fa fa-fw fa-power-off text-red"></i>
{{ __('tablar::tablar.log_out') }}
</a>

<form id="logout-form" action="{{ $logout_url }}" method="POST" style="display: none;">
<form id="logout-form-{{ uniqid('logout-form-') }}" action="{{ $logout_url }}" method="POST" style="display: none;">
@if(config('tablar.logout_method'))
{{ method_field(config('tablar.logout_method')) }}
@endif
Expand Down

0 comments on commit 22583e4

Please sign in to comment.