{% extends "members:base.html" %}

{% load static %}
{% load i18n %}
{% block content %}
<div>
    <div>
        <h2>{% trans "Payment events" %}</h2>
    </div>

    {% if notification %}
    <div class="alert alert-success">
        {{ notification }}
    </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>
        <a href="/members/export_payments" class="btn btn-info">{% trans "Download Excel" %}</a>        
    </div>
</div>
{% endblock content %}
