forked from CGM_Public/pretix_original
* Make orderlist and overview filterable by payment_provider (fixing #233) * Remove checks for allowed and enabled payment_providers as discussed
This commit is contained in:
committed by
Raphael Michel
parent
a43b41c8d6
commit
8fb363f815
@@ -54,6 +54,15 @@
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<select name="provider" class="form-control">
|
||||
<option value="">{% trans "All payment providers" %}</option>
|
||||
{% for p in providers %}
|
||||
<option value="{{ p.name }}"
|
||||
{% if request.GET.provider|add:"0" == p.name %}selected="selected"{% endif %}>
|
||||
{{ p.verbose_name }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<input type="text" name="user" class="form-control" placeholder="{% trans "Search user" %}" value="{{ request.GET.user }}">
|
||||
<button class="btn btn-primary" type="submit">{% trans "Filter" %}</button>
|
||||
</form>
|
||||
|
||||
@@ -40,27 +40,27 @@
|
||||
<tr class="item {% if tup.0 %}categorized{% endif %}">
|
||||
<td>{{ item.name }}</td>
|
||||
<td>
|
||||
<a href="{{ listurl }}?item={{ item.id }}">
|
||||
<a href="{{ listurl }}?item={{ item.id }}&provider={{ item.provider }}">
|
||||
{{ item.num_total|togglesum }}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{{ listurl }}?item={{ item.id }}&status=ne">
|
||||
<a href="{{ listurl }}?item={{ item.id }}&status=ne&provider={{ item.provider }}">
|
||||
{{ item.num_pending|togglesum }}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{{ listurl }}?item={{ item.id }}&status=c">
|
||||
<a href="{{ listurl }}?item={{ item.id }}&status=c&provider={{ item.provider }}">
|
||||
{{ item.num_cancelled|togglesum }}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{{ listurl }}?item={{ item.id }}&status=r">
|
||||
<a href="{{ listurl }}?item={{ item.id }}&status=r&provider={{ item.provider }}">
|
||||
{{ item.num_refunded|togglesum }}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{{ listurl }}?item={{ item.id }}&status=p">
|
||||
<a href="{{ listurl }}?item={{ item.id }}&status=p&provider={{ item.provider }}">
|
||||
{{ item.num_paid|togglesum }}
|
||||
</a>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user