summaryrefslogtreecommitdiffstats
path: root/templates/admin/users/edit.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/admin/users/edit.tmpl')
-rw-r--r--templates/admin/users/edit.tmpl12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/admin/users/edit.tmpl b/templates/admin/users/edit.tmpl
index da9a67cfae..9c9c36a28c 100644
--- a/templates/admin/users/edit.tmpl
+++ b/templates/admin/users/edit.tmpl
@@ -14,6 +14,18 @@
{{.CsrfTokenHtml}}
{{template "base/alert" .}}
<input type="hidden" value="{{.User.Id}}" name="userId"/>
+ <div class="form-group">
+ <label class="col-md-3 control-label">Auth Source: </label>
+ <div class="col-md-7">
+ <select name="logintype" class="form-control">
+ <option value="0-0"{{if eq 0 .User.LoginSource}} selected{{end}}>Local</option>
+ {{$tp := .User.LoginSource}}
+ {{range $key, $val := .LoginSources}}
+ <option value="{{$val.Type}}-{{$val.Id}}"{{if eq $val.Id $tp}} selected{{end}}>{{$val.Name}}</option>
+ {{end}}
+ </select>
+ </div>
+ </div>
<div class="form-group">
<label class="col-md-3 control-label">Username: </label>
<label class="control-label">{{.User.Name}}</label>