Files
UNIT3D-Community-Edition/resources/views/livewire/post-search.blade.php
EkoNesLeg 6a48f20b3c Added type="search" to properly classify the input field and autocomplete="off" to prevent browsers from saving search history and reduce interference from password managers.
Also added correct input type for minutesLeakedWithin to prevent server error when entering non numeric values.
2024-08-29 01:29:51 +00:00

38 lines
1.2 KiB
PHP

<section class="panelV2">
<header class="panel__header">
<h2 class="panel__heading">{{ __('common.latest-posts') }}</h2>
<div class="panel__actions">
<div class="panel__action">
<div class="form__group">
<input
id="search"
class="form__text"
type="search"
autocomplete="off"
wire:model.live="search"
placeholder=" "
/>
<label for="search" class="form__label form__label--floating">
{{ __('common.search') }}
</label>
</div>
</div>
</div>
</header>
{{ $posts->links('partials.pagination') }}
<div class="panel__body">
@if ($posts->count() > 0)
<ul class="topic-posts">
@foreach ($posts as $post)
<li class="post-listings__item">
<x-forum.post :post="$post" />
</li>
@endforeach
</ul>
@else
No posts.
@endif
</div>
{{ $posts->links('partials.pagination') }}
</section>