mirror of
https://github.com/pretix/pretix.git
synced 2026-08-29 13:44:40 +00:00
Vouchers: improve batch-select UI
This commit is contained in:
@@ -96,7 +96,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
{% if "can_change_vouchers" in request.eventpermset %}
|
{% if "can_change_vouchers" in request.eventpermset %}
|
||||||
<input type="checkbox" data-toggle-table />
|
<label aria-label="{% trans "select all rows for batch-operation" %}" class="batch-select-label">
|
||||||
|
<input type="checkbox" data-toggle-table />
|
||||||
|
</label>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
@@ -139,7 +141,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{% if "can_change_vouchers" in request.eventpermset %}
|
{% if "can_change_vouchers" in request.eventpermset %}
|
||||||
<input type="checkbox" name="voucher" class="" value="{{ v.pk }}"/>
|
<label aria-label="{% trans "select row for batch-operation" %}" class="batch-select-label">
|
||||||
|
<input type="checkbox" name="voucher" class="batch-select-checkbox" value="{{ v.pk }}"/>
|
||||||
|
</label>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@@ -194,9 +198,12 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{% if "can_change_vouchers" in request.eventpermset %}
|
{% if "can_change_vouchers" in request.eventpermset %}
|
||||||
<button type="submit" class="btn btn-default btn-save" name="action" value="delete">
|
<div class="batch-select-actions">
|
||||||
{% trans "Delete selected" %}
|
<button type="submit" class="btn btn-danger" name="action" value="delete">
|
||||||
</button>
|
<i class="fa fa-trash" aria-hidden="true"></i>
|
||||||
|
{% trans "Delete selected" %}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</form>
|
</form>
|
||||||
{% include "pretixcontrol/pagination.html" %}
|
{% include "pretixcontrol/pagination.html" %}
|
||||||
|
|||||||
Reference in New Issue
Block a user