Skip to content

Commit

Permalink
Game Hub: Add search box for game content
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Jan 28, 2024
1 parent 142dfef commit cc1a3c1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/templates/packages/game_hub.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ <h1 class="mb-5">
</a>
</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">
{{ _("See more") }}
</a>
Expand Down

0 comments on commit cc1a3c1

Please sign in to comment.