UserToolbar.html 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {namespace v=FluidTYPO3\Vhs\ViewHelpers}
  2. {namespace ot=Opentalent\OtTemplating\ViewHelpers}
  3. <f:comment><!-- Panneau d'authentification ou espace utilisateur --></f:comment>
  4. <div class="user-toolbar">
  5. <f:security.ifAuthenticated>
  6. <f:then>
  7. <v:variable.set name="feuser" value="{ot:request.getFeUser()}"/>
  8. <div class="dropdown">
  9. <a href="#" class="user-toolbar-username">
  10. <i class="fa fa-user"></i>
  11. {feuser.username}
  12. <i class="fa fa-caret-down"></i>
  13. </a>
  14. <ul class="dropdown-menu">
  15. <li>
  16. <a href="{ot:request.getOtEnvVar(argument: 'DASHBOARD_URL')}" target="_blank">
  17. <!-- La valeur par défaut est rendue nécessaire par un bug
  18. inexpliqué (cf. https://assistance.opentalent.fr/browse/REQ-153625) -->
  19. <f:translate key="member-area-of-my-structure" default="Espace adhérent" />
  20. </a>
  21. </li>
  22. <li>
  23. <f:link.page additionalParams="{logintype:'logout'}">
  24. <!-- cf. commentaire ci-dessus -->
  25. <f:translate key="log-out" default="Se déconnecter" />
  26. </f:link.page>
  27. </li>
  28. </ul>
  29. </div>
  30. </f:then>
  31. <f:else>
  32. <!-- <f:if condition="{ot:request.isCustomDomain()}">-->
  33. <!-- <f:then>-->
  34. <!-- <f:comment>&lt;!&ndash; Because crossdomain auth could not be achieved properly until now,-->
  35. <!-- the login popup is shown for websites with custom domains &ndash;&gt;</f:comment>-->
  36. <!-- <f:comment>&lt;!&ndash; Popup de login &ndash;&gt;</f:comment>-->
  37. <!-- <a href="#" id="login-btn">-->
  38. <!-- <i class="fas fa-power-off"></i> Se connecter-->
  39. <!-- </a>-->
  40. <!-- <div id="login-popup" class="<f:if condition='{ot:loginFailed()}==1' then='show'></f:if>">-->
  41. <!-- <form id="login_form" class="popup-form" action="" method="POST" enctype="multipart/form-data" >-->
  42. <!-- <f:comment>&lt;!&ndash; Just for typo3 to indentify it as a login request &ndash;&gt;</f:comment>-->
  43. <!-- <input type="hidden" name="logintype" value="login" />-->
  44. <!-- <input type="text"-->
  45. <!-- class="form-control {f:if(then: 'is-invalid', condition: '{usernameErrors}')}"-->
  46. <!-- placeholder="Nom d'utilisateur"-->
  47. <!-- name="user"-->
  48. <!-- required="1" />-->
  49. <!-- <input type="password"-->
  50. <!-- class="form-control {f:if(then: 'is-invalid', condition: '{passwordErrors}')}"-->
  51. <!-- name="pass"-->
  52. <!-- placeholder="Mot de passe"-->
  53. <!-- required="1" />-->
  54. <!-- <input type="submit" id="login-button" value="Se connecter" />-->
  55. <!-- <f:if condition="{ot:loginFailed()}==1">-->
  56. <!-- <f:then>-->
  57. <!-- <div class="login-errormsg alert">-->
  58. <!-- La tentative de connexion a échoué...<br/>-->
  59. <!-- Êtes-vous sûr d'avoir bien renseigné vos identifiants?-->
  60. <!-- </div>-->
  61. <!-- </f:then>-->
  62. <!-- </f:if>-->
  63. <!-- </form>-->
  64. <!-- </div>-->
  65. <!-- </f:then>-->
  66. <!-- <f:else>-->
  67. <a href="{ot:request.getOtEnvVar(argument: 'LOGIN_PAGE_URL')}" target="_blank">
  68. <i class="fas fa-power-off"></i>
  69. <f:translate key="LLL:EXT:ot_templating/Resources/Private/Language/locallang.xlf:login"/>
  70. </a>
  71. <!-- </f:else>-->
  72. <!-- </f:if>-->
  73. </f:else>
  74. </f:security.ifAuthenticated>
  75. </div>