summaryrefslogtreecommitdiffstats
path: root/templates/admin/auth/edit.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/admin/auth/edit.tmpl')
-rw-r--r--templates/admin/auth/edit.tmpl46
1 files changed, 46 insertions, 0 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl
index 6a176a43a8..d1a614b1f0 100644
--- a/templates/admin/auth/edit.tmpl
+++ b/templates/admin/auth/edit.tmpl
@@ -213,6 +213,52 @@
{{end}}{{end}}
{{end}}
+ <!-- SSPI -->
+ {{if .Source.IsSSPI}}
+ {{ $cfg:=.Source.SSPI }}
+ <div class="field">
+ <div class="ui checkbox">
+ <label for="sspi_auto_create_users"><strong>{{.i18n.Tr "admin.auths.sspi_auto_create_users"}}</strong></label>
+ <input id="sspi_auto_create_users" name="sspi_auto_create_users" class="sspi-auto-create-users" type="checkbox" {{if $cfg.AutoCreateUsers}}checked{{end}}>
+ <p class="help">{{.i18n.Tr "admin.auths.sspi_auto_create_users_helper"}}</p>
+ </div>
+ </div>
+ <div class="field">
+ <div class="ui checkbox">
+ <label for="sspi_auto_activate_users"><strong>{{.i18n.Tr "admin.auths.sspi_auto_activate_users"}}</strong></label>
+ <input id="sspi_auto_activate_users" name="sspi_auto_activate_users" class="sspi-auto-activate-users" type="checkbox" {{if $cfg.AutoActivateUsers}}checked{{end}}>
+ <p class="help">{{.i18n.Tr "admin.auths.sspi_auto_activate_users_helper"}}</p>
+ </div>
+ </div>
+ <div class="field">
+ <div class="ui checkbox">
+ <label for="sspi_strip_domain_names"><strong>{{.i18n.Tr "admin.auths.sspi_strip_domain_names"}}</strong></label>
+ <input id="sspi_strip_domain_names" name="sspi_strip_domain_names" class="sspi-strip-domain-names" type="checkbox" {{if $cfg.StripDomainNames}}checked{{end}}>
+ <p class="help">{{.i18n.Tr "admin.auths.sspi_strip_domain_names_helper"}}</p>
+ </div>
+ </div>
+ <div class="required field">
+ <label for="sspi_separator_replacement">{{.i18n.Tr "admin.auths.sspi_separator_replacement"}}</label>
+ <input id="sspi_separator_replacement" name="sspi_separator_replacement" value="{{$cfg.SeparatorReplacement}}" required>
+ <p class="help">{{.i18n.Tr "admin.auths.sspi_separator_replacement_helper"}}</p>
+ </div>
+ <div class="field">
+ <label for="sspi_default_language">{{.i18n.Tr "admin.auths.sspi_default_language"}}</label>
+ <div class="ui language selection dropdown" id="sspi_default_language">
+ <input name="sspi_default_language" type="hidden" value="{{$cfg.DefaultLanguage}}">
+ <i class="dropdown icon"></i>
+ <div class="text">{{range .AllLangs}}{{if eq $cfg.DefaultLanguage .Lang}}{{.Name}}{{end}}{{end}}</div>
+ <div class="menu">
+ <div class="item{{if not $.SSPIDefaultLanguage}} active selected{{end}}" data-value="">-</div>
+ {{range .AllLangs}}
+ <div class="item{{if eq $cfg.DefaultLanguage .Lang}} active selected{{end}}" data-value="{{.Lang}}">{{.Name}}</div>
+ {{end}}
+ </div>
+ </div>
+ <p class="help">{{.i18n.Tr "admin.auths.sspi_default_language_helper"}}</p>
+ </div>
+ {{end}}
+
<div class="inline field {{if not .Source.IsSMTP}}hide{{end}}">
<div class="ui checkbox">
<label><strong>{{.i18n.Tr "admin.auths.enable_tls"}}</strong></label>