You are here

signature-canvas.html.twig in SignatureField 1.x

Default theme implementation for the signature canvas.

Available variables:

  • id: The canvas ID.
  • width: The canvas width.
  • height: The canvas height.
  • attributes: HTML attributes.

File

templates/signature-canvas.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the signature canvas.
  5. *
  6. * Available variables:
  7. * - id: The canvas ID.
  8. * - width: The canvas width.
  9. * - height: The canvas height.
  10. * - attributes: HTML attributes.
  11. *
  12. * @see template_preprocess_signature_canvas()
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. <canvas{{ attributes.addClass(['signature']) }}></canvas>
  18. <div class="clear-signature-link">
  19. <a href="#{{ id }}">{{ 'Clear signature'|t }}</a>
  20. </div>