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

oauth.tmpl 952 B

1234567891011121314151617181920212223
  1. <div class="oauth2 field {{if not (eq .type 6)}}hide{{end}}">
  2. <div class="inline required field">
  3. <label>{{.i18n.Tr "admin.auths.oauth2_provider"}}</label>
  4. <div class="ui selection type dropdown">
  5. <input type="hidden" id="oauth2_provider" name="oauth2_provider" value="{{.oauth2_provider}}">
  6. <div class="text">{{.oauth2_provider}}</div>
  7. <i class="dropdown icon"></i>
  8. <div class="menu">
  9. {{range $key, $value := .OAuth2Providers}}
  10. <div class="item" data-value="{{$key}}">{{$value.DisplayName}}</div>
  11. {{end}}
  12. </div>
  13. </div>
  14. </div>
  15. <div class="required field">
  16. <label for="oauth2_key">{{.i18n.Tr "admin.auths.oauth2_clientID"}}</label>
  17. <input id="oauth2_key" name="oauth2_key" value="{{.oauth2_key}}">
  18. </div>
  19. <div class="required field">
  20. <label for="oauth2_secret">{{.i18n.Tr "admin.auths.oauth2_clientSecret"}}</label>
  21. <input id="oauth2_secret" name="oauth2_secret" value="{{.oauth2_secret}}">
  22. </div>
  23. </div>