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.

grant.tmpl 1.3KB

12345678910111213141516171819202122232425262728293031
  1. {{template "base/head" .}}
  2. <div class="ui one column stackable center aligned page grid oauth2-authorize-application-box">
  3. <div class="column seven wide">
  4. <div class="ui middle centered raised segments">
  5. <h3 class="ui top attached header">
  6. {{.i18n.Tr "auth.authorize_title" .Application.Name}}
  7. </h3>
  8. <div class="ui attached segment">
  9. {{template "base/alert" .}}
  10. <p>
  11. <b>{{.i18n.Tr "auth.authorize_application_description"}}</b><br/>
  12. {{.i18n.Tr "auth.authorize_application_created_by" .ApplicationUserLink | Str2html}}
  13. </p>
  14. </div>
  15. <div class="ui attached segment">
  16. <p>{{.i18n.Tr "auth.authroize_redirect_notice" .ApplicationRedirectDomainHTML | Str2html}}</p>
  17. </div>
  18. <div class="ui attached segment">
  19. <form method="post" action="{{AppSubUrl}}/login/oauth/grant">
  20. {{.CsrfTokenHtml}}
  21. <input type="hidden" name="client_id" value="{{.Application.ClientID}}">
  22. <input type="hidden" name="state" value="{{.State}}">
  23. <input type="hidden" name="redirect_uri" value="{{.RedirectURI}}">
  24. <input type="submit" id="authorize-app" value="{{.i18n.Tr "auth.authorize_application"}}" class="ui red inline button"/>
  25. <a href="{{.RedirectURI}}" class="ui basic primary inline button">Cancel</a>
  26. </form>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. {{template "base/footer" .}}