You are here

app-credential.html.twig in Apigee Edge 8

Default theme implementation to display credentials of a developer app.

Available variables:

  • primary_wrapper: Contains general information about the credential.
  • secondary_wrapper: Contains the list of API products associated with the credential.
  • content: All app credential properties. Use {{ content }} to print them all, or print a subset such as {{ content.field_example }}. Use {{ content|without('field_example') }} to temporarily suppress the printing of a given child element.
  • attributes: HTML attributes for the containing element.
  • content_attributes: Same as attributes, except applied to the main content tag that appears in the template.
  • logged_in: Flag for authenticated user status. Will be true when the current user is a logged-in member.
  • is_admin: Flag for admin user status. Will be true when the current user is an administrator.

File

templates/app-credential.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display credentials of a developer app.
  5. *
  6. * Available variables:
  7. * - primary_wrapper: Contains general information about the credential.
  8. * - secondary_wrapper: Contains the list of API products associated with the
  9. * credential.
  10. * - content: All app credential properties. Use {{ content }} to print them all,
  11. * or print a subset such as {{ content.field_example }}. Use
  12. * {{ content|without('field_example') }} to temporarily suppress the printing
  13. * of a given child element.
  14. * - attributes: HTML attributes for the containing element.
  15. * - content_attributes: Same as attributes, except applied to the main
  16. * content tag that appears in the template.
  17. * - logged_in: Flag for authenticated user status. Will be true when the
  18. * current user is a logged-in member.
  19. * - is_admin: Flag for admin user status. Will be true when the current user
  20. * is an administrator.
  21. *
  22. * @see template_preprocess_app_credential()
  23. *
  24. * @ingroup themeable
  25. */
  26. #}
  27. {{ attach_library('apigee_edge/apigee_edge.app_credential') }}
  28. {%
  29. set classes = [
  30. 'app-credential',
  31. ]|merge(classes|default([]))
  32. %}
  33. <fieldset {{ attributes.addClass(classes) }}>
  34. <legend>
  35. {{ 'Credential'|t }}
  36. </legend>
  37. <div class="fieldset-wrapper">
  38. {{ operations }}
  39. {{ primary_wrapper }}
  40. {{ secondary_wrapper }}
  41. </div>
  42. </fieldset>