Game Hub: Add search box for game content

Fixes #512
This commit is contained in:
rubenwardy 2024-01-28 22:23:04 +00:00
parent 142dfefb70
commit 40f23af0bd

@ -26,6 +26,18 @@
</a> </a>
</h1> </h1>
<form action="{{ url_for('packages.list_all') }}" method="GET" class="mb-5">
<input type="hidden" name="game" value="{{ package.get_id() }}">
<label for="game-search" class="sr-only">{{ _('Search for packages for %(title)s', title=package.title) }}</label>
<div class="input-group mb-3">
<input name="q" id="game-search" type="text" class="form-control"
placeholder="{{ _('Search for packages for %(title)s', title=package.title) }}">
<button class="btn btn-primary" type="submit" id="game-search-go" aria-label="{{ _('Search') }}">
<i class="fas fa-search"></i>
</button>
</div>
</form>
<a href="{{ url_for('packages.list_all', sort='approved_at', order='desc', game=package.get_id()) }}" class="btn btn-secondary float-end"> <a href="{{ url_for('packages.list_all', sort='approved_at', order='desc', game=package.get_id()) }}" class="btn btn-secondary float-end">
{{ _("See more") }} {{ _("See more") }}
</a> </a>