Skip to content

Instantly share code, notes, and snippets.

@PatrickatPaperlessPCS
Created March 12, 2016 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PatrickatPaperlessPCS/780d5e0c4279cd23494d to your computer and use it in GitHub Desktop.
Save PatrickatPaperlessPCS/780d5e0c4279cd23494d to your computer and use it in GitHub Desktop.
<% 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