login_form.tpl 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {% if _u.logged == 0 %}
  2. {% if login_form %}
  3. <div id="login-block" class="panel panel-default">
  4. <div class="panel-body">
  5. {{ login_language_form }}
  6. {% if plugin_login_top is not null %}
  7. <div id="plugin_login_top">
  8. {{ plugin_login_top }}
  9. </div>
  10. {% endif %}
  11. {{ login_failed }}
  12. {% set azure_plugin_enabled = 'azure_active_directory'|api_get_plugin_setting('enable') %}
  13. {% set azure_plugin_manage_login = 'azure_active_directory'|api_get_plugin_setting('manage_login_enable') %}
  14. {% if 'false' == azure_plugin_enabled or 'false' == azure_plugin_manage_login %}
  15. {{ login_form }}
  16. {% if "allow_lostpassword" | api_get_setting == 'true' or "allow_registration"|api_get_setting == 'true' %}
  17. <ul class="nav nav-pills nav-stacked">
  18. {% if "allow_registration"|api_get_setting != 'false' %}
  19. <li><a href="{{ _p.web_main }}auth/inscription.php"> {{ 'SignUp'|get_lang }} </a></li>
  20. {% endif %}
  21. {% if "allow_lostpassword"|api_get_setting == 'true' %}
  22. <li>
  23. <a href="{{ _p.web_main }}auth/lostPassword.php">{{ 'LostPassword'|get_lang }}</a>
  24. </li>
  25. {% endif %}
  26. </ul>
  27. {% endif %}
  28. {% endif %}
  29. {% if plugin_login_bottom is not null %}
  30. <div id="plugin_login_bottom">
  31. {{ plugin_login_bottom }}
  32. </div>
  33. {% endif %}
  34. </div>
  35. </div>
  36. {% endif %}
  37. {% endif %}