<script type="text/javascript">

    document.getElementById("action-print-view").addEventListener("click", printView);

    function printView(event) {
       event.preventDefault();
       window.print();
    }
</script>
