Add autocomplete search to "add payment" and add search bar to table views

This commit is contained in:
Jan Tuomi
2017-09-25 21:55:49 +03:00
parent 7ce28c3a48
commit 982e6bf928
10 changed files with 229 additions and 126 deletions
+21
View File
@@ -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 %}