block.tpl 1.0 KB

123456789101112131415161718192021
  1. <div id="azure-active-directory-login">
  2. {% if is_granted('IS_AUTHENTICATED_FULLY') %}
  3. {# <a href="{{ azure_active_directory.signout_url }}" class="btn btn-primary">{{ 'Logout'|get_lang }}</a> #}
  4. {% else %}
  5. {% if not azure_active_directory.block_title is empty %}
  6. <h4>{{ azure_active_directory.block_title }}</h4>
  7. {% endif %}
  8. {% if not azure_active_directory.signin_url is empty %}
  9. <a href="{{ azure_active_directory.signin_url }}" class="btn btn-default">{{ 'SignIn'|get_lang }}</a>
  10. {% endif %}
  11. {% if not azure_active_directory.signup_url is empty %}
  12. <a href="{{ azure_active_directory.signup_url }}" class="btn btn-success">{{ 'SignUp'|get_lang }}</a>
  13. {% endif %}
  14. {% if not azure_active_directory.signunified_url is empty %}
  15. <a href="{{ azure_active_directory.signunified_url }}" class="btn btn-info">{{ 'SignUpAndSignIn'|get_plugin_lang('AzureActiveDirectory') }}</a>
  16. {% endif %}
  17. </div>
  18. {% endif %}