Label print confirmation and styling

d42/ebin
informatic 2017-10-24 18:59:36 +02:00
parent 6ab2823b0d
commit 3c4ae39f43
1 changed files with 3 additions and 2 deletions

View File

@ -64,9 +64,10 @@
{% if labels %}
<h3>Labels</h3>
<iframe name="printframe" style="display: none"></iframe>
{% for label in labels %}
<form action="http://label.waw.hackerspace.pl:4567/api/1/print/{{ label.id }}" method='post'>
<input type="submit" value="{{label.id}}">
<form action="http://label.waw.hackerspace.pl:4567/api/1/print/{{ label.id }}" method="POST" target="printframe" onsubmit="return confirm('Want to print this label?')">
<button class="btn btn-xs btn-default" title="Print">{{label.id}}</button>
</form>
{% endfor %}
{% endif %}