本站源代码
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

32 lignes
1.3KB

  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.authorize_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" .}}
上海开阖软件有限公司 沪ICP备12045867号-1