Removed the last inline scripts.

This commit is contained in:
Jan Böhmer 2022-08-03 21:31:35 +02:00
parent 1c7c3bf2c5
commit 3ee8b26ddf
4 changed files with 20 additions and 2 deletions

View file

@ -99,7 +99,7 @@
{% if pdf_data %}
<div class="row">
<div class="col-sm-9 offset-sm-3">
<a data-turbo="false" class="btn btn-secondary" href="#" onclick="this.href = document.getElementById('pdf_preview').data" download="{{ filename ?? '' }}">
<a data-turbo="false" class="btn btn-secondary" href="#" {{ stimulus_controller('pages/label_download_btn')}} {{ stimulus_action('pages/label_download_btn', 'download')}} download="{{ filename ?? '' }}">
{% trans %}label_generator.download{% endtrans %}
</a>
</div>