Make it easier to copy ticket secrets to clipboard

This commit is contained in:
Raphael Michel
2023-03-09 18:15:54 +01:00
parent 497e6f5c8f
commit 71e6a85c38
2 changed files with 12 additions and 1 deletions

View File

@@ -146,6 +146,10 @@
<span class="fa fa-qrcode fa-fw"></span>
<span title="{{ c.raw_barcode }}">
{{ c.raw_barcode|slice:":16" }}{% if c.raw_barcode|length > 16 %}…{% endif %}
<button type="button" class="btn btn-xs btn-link btn-clipboard" data-clipboard-text="{{ c.raw_barcode }}">
<i class="fa fa-clipboard" aria-hidden="true"></i>
<span class="sr-only">{% trans "Copy to clipboard" %}</span>
</button>
</span>
{% if c.raw_item %}
<br>