You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.7 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2016 SYLEAM
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. -->
  6. <odoo>
  7. <template id="oauth_provider.authorization" name="OAuth Authorization Error">
  8. <t t-set="disable_footer" t-value="True"/>
  9. <t t-call="web.login_layout">
  10. <form class="oe_login_form" role="form" method="post" action="/oauth2/authorize">
  11. <input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
  12. <div>
  13. <h3 t-esc="oauth_client"/>
  14. This application would like to access these resources :
  15. </div>
  16. <div class="list-group">
  17. <span t-foreach="oauth_scopes" t-as="scope" class="list-group-item">
  18. <h4 t-field="scope.name" class="list-group-item-heading"/>
  19. <p t-field="scope.description" class="list-group-item-text"/>
  20. </span>
  21. </div>
  22. <div class="clearfix oe_login_buttons text-center">
  23. <button type="submit" class="btn btn-primary">Authorize</button>
  24. </div>
  25. </form>
  26. </t>
  27. </template>
  28. <template id="oauth_provider.authorization_error" name="OAuth Authorization Error">
  29. <t t-set="disable_footer" t-value="True"/>
  30. <t t-call="web.login_layout">
  31. <div class="panel panel-danger">
  32. <div class="panel-heading">
  33. <h3 t-esc="title"/>
  34. </div>
  35. <div class="panel-body" t-esc="message"/>
  36. </div>
  37. </t>
  38. </template>
  39. </odoo>