-
Notifications
You must be signed in to change notification settings - Fork 46
/
app-credential.html.twig
44 lines (42 loc) · 1.36 KB
/
app-credential.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{#
/**
* @file
* 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.
*
* @see template_preprocess_app_credential()
*
* @ingroup themeable
*/
#}
{{ attach_library('apigee_edge/apigee_edge.app_credential') }}
{%
set classes = [
'app-credential',
]|merge(classes|default([]))
%}
<fieldset {{ attributes.addClass(classes) }}>
<legend>
{{ 'Credential'|t }}
</legend>
<div class="fieldset-wrapper">
{{ operations }}
{{ primary_wrapper }}
{{ secondary_wrapper }}
</div>
</fieldset>