Label print confirmation and styling
This commit is contained in:
parent
6ab2823b0d
commit
3c4ae39f43
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in New Issue