Label print confirmation and styling

This commit is contained in:
Piotr Dobrowolski 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 %} {% if labels %}
<h3>Labels</h3> <h3>Labels</h3>
<iframe name="printframe" style="display: none"></iframe>
{% for label in labels %} {% for label in labels %}
<form action="http://label.waw.hackerspace.pl:4567/api/1/print/{{ label.id }}" method='post'> <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?')">
<input type="submit" value="{{label.id}}"> <button class="btn btn-xs btn-default" title="Print">{{label.id}}</button>
</form> </form>
{% endfor %} {% endfor %}
{% endif %} {% endif %}