mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Set autofocus on search/filter field (#427)
This commit is contained in:
committed by
Raphael Michel
parent
babf76371e
commit
a10090b1fb
@@ -29,7 +29,7 @@
|
|||||||
<form class="form-inline helper-display-inline"
|
<form class="form-inline helper-display-inline"
|
||||||
action="{% url "control:event.orders.go" event=request.event.slug organizer=request.event.organizer.slug %}">
|
action="{% url "control:event.orders.go" event=request.event.slug organizer=request.event.organizer.slug %}">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input type="text" name="code" class="form-control" placeholder="{% trans "Order code" %}">
|
<input type="text" name="code" class="form-control" placeholder="{% trans "Order code" %}" autofocus>
|
||||||
<span class="input-group-btn">
|
<span class="input-group-btn">
|
||||||
<button class="btn btn-primary" type="submit">{% trans "Go!" %}</button>
|
<button class="btn btn-primary" type="submit">{% trans "Go!" %}</button>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<form class="form-inline helper-display-inline" action="" method="get">
|
<form class="form-inline helper-display-inline" action="" method="get">
|
||||||
<p>
|
<p>
|
||||||
<input type="text" name="search" class="form-control" placeholder="{% trans "Search voucher" %}"
|
<input type="text" name="search" class="form-control" placeholder="{% trans "Search voucher" %}"
|
||||||
value="{{ request.GET.search }}">
|
value="{{ request.GET.search }}" autofocus>
|
||||||
<input type="text" name="tag" class="form-control" placeholder="{% trans "Filter by tag" %}"
|
<input type="text" name="tag" class="form-control" placeholder="{% trans "Filter by tag" %}"
|
||||||
value="{{ request.GET.tag }}">
|
value="{{ request.GET.tag }}">
|
||||||
<select name="status" class="form-control">
|
<select name="status" class="form-control">
|
||||||
|
|||||||
Reference in New Issue
Block a user