Skip to content
Snippets Groups Projects
Commit a0818a46 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

printing voucher link is visible only when there are vouchers to be printed

parent 0fa819f4
No related branches found
No related tags found
2 merge requests!145date added is not valid,!144Resolve "hide "print vouchers" link when there is no vouchers"
Pipeline #
......@@ -41,7 +41,8 @@
{% endfor %}
</tbody>
</table>
<a href="#" data-url="{% url "web.views.mail_template_generate_for_vouchers" %}" onclick='
{% if subject.vouchers.all.count > 0 %}
<a href="#" data-url="{% url "web.views.mail_template_generate_for_vouchers" %}" onclick='
var checkboxes = $(".voucher_checkbox");
var url = $(this).data("url")+"?voucher_id=";
......@@ -52,6 +53,7 @@
}
this.href = url;
'>Print vouchers</a>
{% endif %}
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment