federatedIdentity.ftl 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <#import "template.ftl" as layout>
  2. <@layout.mainLayout active='social' bodyClass='social'; section>
  3. <div class="row">
  4. <div class="col-md-10">
  5. <h2>${msg("federatedIdentitiesHtmlTitle")}</h2>
  6. </div>
  7. </div>
  8. <div id="federated-identities">
  9. <#list federatedIdentity.identities as identity>
  10. <div class="row margin-bottom">
  11. <div class="col-sm-2 col-md-2">
  12. <label for="${identity.providerId!}" class="control-label">${identity.displayName!}</label>
  13. </div>
  14. <div class="col-sm-5 col-md-5">
  15. <input disabled="true" class="form-control" value="${identity.userName!}">
  16. </div>
  17. <div class="col-sm-5 col-md-5">
  18. <#if identity.connected>
  19. <#if federatedIdentity.removeLinkPossible>
  20. <form action="${url.socialUrl}" method="post" class="form-inline">
  21. <input type="hidden" id="stateChecker" name="stateChecker" value="${stateChecker}">
  22. <input type="hidden" id="action" name="action" value="remove">
  23. <input type="hidden" id="providerId" name="providerId" value="${identity.providerId!}">
  24. <button id="remove-link-${identity.providerId!}" class="btn btn-default">${msg("doRemove")}</button>
  25. </form>
  26. </#if>
  27. <#else>
  28. <form action="${url.socialUrl}" method="post" class="form-inline">
  29. <input type="hidden" id="stateChecker" name="stateChecker" value="${stateChecker}">
  30. <input type="hidden" id="action" name="action" value="add">
  31. <input type="hidden" id="providerId" name="providerId" value="${identity.providerId!}">
  32. <button id="add-link-${identity.providerId!}" class="btn btn-default">${msg("doAdd")}</button>
  33. </form>
  34. </#if>
  35. </div>
  36. </div>
  37. </#list>
  38. </div>
  39. </@layout.mainLayout>