|
|
@ -18,11 +18,11 @@ |
|
|
|
<div class="form-group"> |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-md-3 control-label">Auth Type: </label> |
|
|
|
<label class="col-md-3 control-label">Auth Type: </label> |
|
|
|
<input type="hidden" name="type" value="{{.Source.Type}}"/> |
|
|
|
<input type="hidden" name="type" value="{{.Source.Type}}"/> |
|
|
|
<div class="col-md-7"> |
|
|
|
<label class="control-label"> |
|
|
|
{{range $key, $val := .LoginTypes}} |
|
|
|
{{range $key, $val := .LoginTypes}} |
|
|
|
{{if eq $key $type}}{{$val}}{{end}} |
|
|
|
{{if eq $key $type}}{{$val}}{{end}} |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group {{if .Err_AuthName}}has-error has-feedback{{end}}"> |
|
|
|
<div class="form-group {{if .Err_AuthName}}has-error has-feedback{{end}}"> |
|
|
|
<label class="col-md-3 control-label">Name: </label> |
|
|
|
<label class="col-md-3 control-label">Name: </label> |
|
|
@ -85,46 +85,47 @@ |
|
|
|
<label class="col-md-3 control-label">SMTP Auth: </label> |
|
|
|
<label class="col-md-3 control-label">SMTP Auth: </label> |
|
|
|
<div class="col-md-7"> |
|
|
|
<div class="col-md-7"> |
|
|
|
<select name="smtpauth" class="form-control"> |
|
|
|
<select name="smtpauth" class="form-control"> |
|
|
|
{{$auth := .Source.SMTP.Auth}} |
|
|
|
{{$auth := .Source.SMTP.Auth}} |
|
|
|
{{range .SMTPAuths}} |
|
|
|
{{range .SMTPAuths}} |
|
|
|
<option value="{{.}}" |
|
|
|
<option value="{{.}}" |
|
|
|
{{if eq . $auth}} selected{{end}}>{{.}}</option> |
|
|
|
{{if eq . $auth}} selected{{end}}>{{.}}</option> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
} |
|
|
|
|
|
|
|
</select> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group {{if .Err_Host}}has-error has-feedback{{end}}"> |
|
|
|
<div class="form-group {{if .Err_SmtpHost}}has-error has-feedback{{end}}"> |
|
|
|
<label class="col-md-3 control-label">Host: </label> |
|
|
|
<label class="col-md-3 control-label">Host: </label> |
|
|
|
<div class="col-md-7"> |
|
|
|
<div class="col-md-7"> |
|
|
|
<input name="smtphost" class="form-control" placeholder="Type host address" value="{{.Source.SMTP.Host}}"> |
|
|
|
<input name="smtphost" class="form-control" placeholder="Type host address" value="{{.Source.SMTP.Host}}"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group {{if .Err_Port}}has-error has-feedback{{end}}"> |
|
|
|
<div class="form-group {{if .Err_SmtpPort}}has-error has-feedback{{end}}"> |
|
|
|
<label class="col-md-3 control-label">Port: </label> |
|
|
|
<label class="col-md-3 control-label">Port: </label> |
|
|
|
<div class="col-md-7"> |
|
|
|
<div class="col-md-7"> |
|
|
|
<input name="smtpport" class="form-control" placeholder="Type port number" value="{{.Source.SMTP.Port}}"> |
|
|
|
<input name="smtpport" class="form-control" placeholder="Type port number" value="{{.Source.SMTP.Port}}"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group {{if .Err_TLS}}has-error has-feedback{{end}}"> |
|
|
|
<!-- <div class="form-group {{if .Err_TLS}}has-error has-feedback{{end}}"> |
|
|
|
<label class="col-md-3 control-label">TLS: </label> |
|
|
|
<label class="col-md-3 control-label">TLS: </label> |
|
|
|
<div class="col-md-7"> |
|
|
|
<div class="col-md-7"> |
|
|
|
<input name="smtptls" type="checkbox" class="form-control" {{if .Source.SMTP.TLS}}checked{{end}}> |
|
|
|
<input name="tls" type="checkbox" class="form-control" {{if .Source.SMTP.TLS}}checked{{end}}> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> --> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group {{if .Err_TLS}}has-error has-feedback{{end}}"> |
|
|
|
|
|
|
|
<label class="col-md-3 control-label">Auto Register: </label> |
|
|
|
|
|
|
|
<div class="col-md-7"> |
|
|
|
|
|
|
|
<input name="allowautoregister" type="checkbox" class="form-control" {{if .Source.AllowAutoRegister}}checked{{end}}> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group"> |
|
|
|
<div class="form-group"> |
|
|
|
|
|
|
|
<div class="col-md-offset-3 col-md-7"> |
|
|
|
|
|
|
|
<div class="checkbox"> |
|
|
|
|
|
|
|
<label> |
|
|
|
|
|
|
|
<input name="allowautoregister" type="checkbox" {{if .Source.AllowAutoRegister}}checked{{end}}> |
|
|
|
|
|
|
|
<strong>Enable Auto Registeration</strong> |
|
|
|
|
|
|
|
</label> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-7 col-md-offset-3"> |
|
|
|
<div class="col-md-7 col-md-offset-3"> |
|
|
|
<div class="checkbox"> |
|
|
|
<div class="checkbox"> |
|
|
|
<label> |
|
|
|
<label> |
|
|
@ -134,7 +135,9 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<hr/> |
|
|
|
<hr/> |
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group"> |
|
|
|
<div class="form-group"> |
|
|
|
<div class="col-md-offset-3 col-md-6"> |
|
|
|
<div class="col-md-offset-3 col-md-6"> |
|
|
|
<button type="submit" class="btn btn-lg btn-primary btn-block">Update authentication config</button> |
|
|
|
<button type="submit" class="btn btn-lg btn-primary btn-block">Update authentication config</button> |
|
|
|