forked from wiktor/spejstore-new
Less confusing "Print labels" button + explanation
This commit is contained in:
parent
5160052dfd
commit
1f5a053a19
|
@ -9,8 +9,6 @@
|
|||
<li class="active">{{ item.name }}</li>
|
||||
</ol>
|
||||
<h2>
|
||||
<small class="pull-right"><a href="{% url 'admin:storage_item_change' item.pk %}"><span class="glyphicon glyphicon-pencil"></span></a></small>
|
||||
|
||||
{% include "widgets/categoryicon.html" with category=item.primary_category %}
|
||||
{{ item.name }}
|
||||
</h2>
|
||||
|
@ -18,15 +16,30 @@
|
|||
<div class="col-md-4">
|
||||
|
||||
<iframe name="printframe" style="display: none"></iframe>
|
||||
<div class="label-item">
|
||||
<form action="/api/1/items/{{ item.short_id }}/print/?quantity=2" method="POST" target="printframe" onsubmit="return confirm('Want to print 2 labels?')" style="display:inline-block">
|
||||
|
||||
<div class="btn-group" role="group" style="margin-bottom: 10px">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-default btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="glyphicon glyphicon-print"></i> Print labels <span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><div style="padding: 5px 10px">Put one label in front, one on the back!</div></li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li style="padding: 5px 10px">
|
||||
<form action="/api/1/items/{{ item.short_id }}/print/?quantity=2" method="POST" target="printframe" style="display:inline-block">
|
||||
{% csrf_token %}
|
||||
<button class="btn btn-default btn-lg btn-primary"><i class="glyphicon glyphicon-print"></i> PRINT x 2</button>
|
||||
<button class="btn btn-default btn-lg">Print 2 labels (recommended)</button>
|
||||
</form>
|
||||
<form action="/api/1/items/{{ item.short_id }}/print/" method="POST" target="printframe" onsubmit="return confirm('Want to print this labels?')" style="display:inline-block">
|
||||
</li>
|
||||
<li style="padding: 5px 10px">
|
||||
<form action="/api/1/items/{{ item.short_id }}/print/" method="POST" target="printframe" style="display:inline-block">
|
||||
{% csrf_token %}
|
||||
<button class="btn btn-default btn-lg"><i class="glyphicon glyphicon-print"></i></button>
|
||||
<button class="btn btn-default btn-lg">Print 1 label</button>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<a href="{% url 'admin:storage_item_change' item.pk %}" class="btn btn-default">Edit</a>
|
||||
</div>
|
||||
|
||||
<table class="table table-hover table-striped">
|
||||
|
|
Loading…
Reference in New Issue