Created
March 12, 2016 19:48
-
-
Save PatrickatPaperlessPCS/780d5e0c4279cd23494d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% if @document.template.signature_position.exists? %> | |
<div id="signature" style='position: absolute; left: <%= @document.template.signature_position.left %>px; top: <%= @document.template.signature_position.top %>px; '> | |
<b style=" background-color: white; ">Electronically signed at: <%= @document.updated_at %></b> | |
<div style='opacity: 0.8;'> | |
<canvas class="padShow" width="540" height="100" style="page-break-before: avoid;"></canvas> | |
</div> | |
</div> | |
<script type="text/javascript"> | |
$(function() { | |
renderSignature(<%= @document.signature.to_json.html_safe %>, 'div#signature'); | |
}); | |
</script> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment