Add autocomplete search to "add payment" and add search bar to table views
This commit is contained in:
@@ -14,6 +14,27 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="member_count">
|
||||
<span>{% trans "Payments in register:" %} {{ payment_count }}</span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<form class="input-group" method="GET" action="/members/payments">
|
||||
<input class="form-control" type="text" name="q" placeholder="Teemu Teekkari" />
|
||||
<span class="input-group-btn">
|
||||
<input type="submit" class="btn" value="{% trans "Search" %}" />
|
||||
</span>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% if request.GET.q %}
|
||||
<div>
|
||||
<div class="alert alert-info" role="alert">
|
||||
{% trans "Showing results for" %} "{{ request.GET.q }}"
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{{ table|safe }}
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
||||
Reference in New Issue
Block a user