JS-Button

{% set jslink = "javascript:void((
    function (d, w, p, s, r, t, l) {
        t = (w.screenTop || w.screenY) + 50;
        l = (w.screenX || w.screenLeft) + (w.innerWidth || d.documentElement.offsetWidth || 0) / 2 - s / 2;
        w.__flipboard = w.open('http://" ~ app.request.getHost() ~ path('tpoint_timemanagement_timerecord_new')
            ~"', '__tpoint_timerecord', 'width=' + s + ',height=' + r + ',top=' + t + ',left=' + l + ',
            location=yes,resizable=yes,status=no,scrollbars=yes,personalbar=no,toolbar=no,menubar=no');
        s = d.createElement('script');
        s.setAttribute('type', 'text/javascript');
        s.setAttribute('src', 'https://d2jsycj2ly2vqh.cloudfront.net/bookmarklet/js/popout-helper.min.js?t=' + p);

        d.body.appendChild(s);
        setTimeout(function () {
            w.__flipboard.focus()
        }, 50);
    })(document, window, (new Date().getTime()), 535, 565))" %}
<a href="{{ jslink|str_replace('  ', ' ') }}" class="btn btn-default">Insert Time-Entries</a>