You are here

apigee-secret.html.twig in Apigee Edge 8

Template for a Secret element.

Available variables:

  • value: The secret value.

File

templates/apigee-secret.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template for a Secret element.
  5. *
  6. * Available variables:
  7. * - value: The secret value.
  8. *
  9. * @ingroup themeable
  10. */
  11. #}
  12. {% set id = 'secret-id-' ~ random() %}
  13. {{ attach_library('apigee_edge/apigee_edge.secret') }}
  14. <div class="secret field__item" id={{ id }}>
  15. <div class="secret__value">{{ value }}</div>
  16. <div class="secret__value__hidden" aria-hidden="true">••••••••••••••••</div>
  17. <br/>
  18. <span class="secret__toggle" title="{{ 'Toggle key visibility'|t }}" aria-controls="{{ id }}">
  19. <a class="secret__toggle__show" href="#">{{ 'Show key'|t }}</a>
  20. <a class="secret__toggle__hide" href="#">{{ 'Hide key'|t }}</a>
  21. </span>
  22. </div>