<?php
// The basic Signature Pad HTML template
//  with the addition of server side validation error messages
?>
<form method="post" action="index.php?wid=<?php echo $workorder_id; ?>&uid=<?php echo $user_id; ?>&form=<?php echo $show_form; ?>" class="sigPad">
  <?php if (isset($errors['output'])) : ?>
  <p class="error">Please sign the Work Order</p>
  <?php endif; ?>  
  <ul class="sigNav">
    <li class="drawIt"><a href="#draw-it">Sign Here</a></li>
    <li class="clearButton"><a href="#clear">Clear</a></li>
  </ul>
  <div class="sig sigWrapper">
    <div class="typed"></div>
    <canvas class="pad" id="sspad" width="300" height="75"></canvas>
    <input type="hidden" name="output" class="output">
  </div>
  <button type="submit">Submit</button>
</form>
