ソースを参照

Suppression colonne "roles" dans "account > applications" -trop complexe

garthh 10 ヶ月 前
コミット
454a7af58b
1 ファイル変更60 行追加0 行削除
  1. 60 0
      themes/apdli/account/applications.ftl

+ 60 - 0
themes/apdli/account/applications.ftl

@@ -0,0 +1,60 @@
+<#import "template.ftl" as layout>
+<@layout.mainLayout active='applications' bodyClass='applications'; section>
+
+    <div class="row">
+        <div class="col-md-10">
+            <h2>${msg("applicationsHtmlTitle")}</h2>
+        </div>
+    </div>
+
+    <form action="${url.applicationsUrl}" method="post">
+        <input type="hidden" id="stateChecker" name="stateChecker" value="${stateChecker}">
+        <input type="hidden" id="referrer" name="referrer" value="${stateChecker}">
+
+        <table class="table table-striped table-bordered">
+            <thead>
+              <tr>
+                <td>${msg("application")}</td>
+                <td>${msg("grantedPermissions")}</td>
+                <td>${msg("additionalGrants")}</td>
+                <td>${msg("action")}</td>
+              </tr>
+            </thead>
+
+            <tbody>
+              <#list applications.applications as application>
+                <tr>
+                    <td>
+                        <#if application.effectiveUrl?has_content><a href="${application.effectiveUrl}"></#if>
+                            <#if application.client.name?has_content>${advancedMsg(application.client.name)}<#else>${application.client.clientId}</#if>
+                        <#if application.effectiveUrl?has_content></a></#if>
+                    </td>
+
+                    <td>
+                        <#if application.client.consentRequired>
+                            <#list application.clientScopesGranted as claim>
+                                ${advancedMsg(claim)}<#if claim_has_next>, </#if>
+                            </#list>
+                        <#else>
+                            <strong>${msg("fullAccess")}</strong>
+                        </#if>
+                    </td>
+
+                    <td>
+                       <#list application.additionalGrants as grant>
+                            ${advancedMsg(grant)}<#if grant_has_next>, </#if>
+                        </#list>
+                    </td>
+
+                    <td>
+                        <#if (application.client.consentRequired && application.clientScopesGranted?has_content) || application.additionalGrants?has_content>
+                            <button type='submit' class='${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!}' id='revoke-${application.client.clientId}' name='clientId' value="${application.client.id}">${msg("revoke")}</button>
+                        </#if>
+                    </td>
+                </tr>
+              </#list>
+            </tbody>
+        </table>
+    </form>
+
+</@layout.mainLayout>