diff options
author | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-03-17 06:55:04 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-03-17 13:55:04 +0800 |
commit | 7a81cd16c5341b4773e11a84c7b231d23e5f56d9 (patch) | |
tree | d41173341768b44e839a8d9046444fbff9ac4f21 /templates/admin/auth/source/oauth.tmpl | |
parent | ebbcf6fe12151394d18bc1f04a6a25c9ab0627d5 (diff) | |
download | gitea-7a81cd16c5341b4773e11a84c7b231d23e5f56d9.tar.gz gitea-7a81cd16c5341b4773e11a84c7b231d23e5f56d9.zip |
Refactor admin/auth/new.tmpl (#1277)
Diffstat (limited to 'templates/admin/auth/source/oauth.tmpl')
-rw-r--r-- | templates/admin/auth/source/oauth.tmpl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/admin/auth/source/oauth.tmpl b/templates/admin/auth/source/oauth.tmpl new file mode 100644 index 0000000000..4d8e12e028 --- /dev/null +++ b/templates/admin/auth/source/oauth.tmpl @@ -0,0 +1,23 @@ +<div class="oauth2 field {{if not (eq .type 6)}}hide{{end}}"> + <div class="inline required field"> + <label>{{.i18n.Tr "admin.auths.oauth2_provider"}}</label> + <div class="ui selection type dropdown"> + <input type="hidden" id="oauth2_provider" name="oauth2_provider" value="{{.oauth2_provider}}"> + <div class="text">{{.oauth2_provider}}</div> + <i class="dropdown icon"></i> + <div class="menu"> + {{range $key, $value := .OAuth2Providers}} + <div class="item" data-value="{{$key}}">{{$value.DisplayName}}</div> + {{end}} + </div> + </div> + </div> + <div class="required field"> + <label for="oauth2_key">{{.i18n.Tr "admin.auths.oauth2_clientID"}}</label> + <input id="oauth2_key" name="oauth2_key" value="{{.oauth2_key}}"> + </div> + <div class="required field"> + <label for="oauth2_secret">{{.i18n.Tr "admin.auths.oauth2_clientSecret"}}</label> + <input id="oauth2_secret" name="oauth2_secret" value="{{.oauth2_secret}}"> + </div> +</div> |