     @elems.printForm.style.display = 'block'
 
    @listen 'renderPrint', (e) ->
+    @on.renderPrintPreview e, true
+
+   @listen 'renderPrintPreview', (e, print = false) ->
     e.preventDefault()
     WIDTH = parseInt @elems.widthInput.value
     if isNaN WIDTH

     render.mediaLoaded ->
      setTimeout ->
       render.setPages height, width
       window.requestAnimationFrame ->
        window.print()
      , 500

   edit: ->


    @$.elems.printForm = @div ".print-form", style: {display: 'none'}, ->
     @form ->
      @div ".form-group", ->
       @label for: "width-input", "Width (mm)"
       @$.elems.widthInput = @input "#width-input.form-control",
        type: "number"
        value: "170"
      @div ".form-group", ->
       @label for: "height-input", "Height (mm)"
       @$.elems.heightInput = @input "#height-input.form-control",
        type: "number"
        value: "225"
      @button ".btn.btn-primary", "Preview",
       on: {click: @$.on.renderPrintPreview}
      @button ".btn.btn-default", "Print",
       on: {click: @$.on.renderPrint}


    @$.elems.printContainer =
