|
|
@ -32,7 +32,6 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
{{if eq $type 2}} |
|
|
|
{{if eq $type 2}} |
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group {{if .Err_Domain}}has-error has-feedback{{end}}"> |
|
|
|
<div class="form-group {{if .Err_Domain}}has-error has-feedback{{end}}"> |
|
|
|
<label class="col-md-3 control-label">Domain: </label> |
|
|
|
<label class="col-md-3 control-label">Domain: </label> |
|
|
|
<div class="col-md-7"> |
|
|
|
<div class="col-md-7"> |
|
|
@ -81,44 +80,41 @@ |
|
|
|
<input name="ms_ad_sa" class="form-control" placeholder="Type Ms Ad SA" value="{{.Source.LDAP.MsAdSAFormat}}" required="required"> |
|
|
|
<input name="ms_ad_sa" class="form-control" placeholder="Type Ms Ad SA" value="{{.Source.LDAP.MsAdSAFormat}}" required="required"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{else}} |
|
|
|
{{else if eq $type 3}} |
|
|
|
{{if eq $type 3}} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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">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_Host}}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_Port}}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="smtptls" type="checkbox" class="form-control" {{if .Source.SMTP.TLS}}checked{{end}}> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group {{if .Err_TLS}}has-error has-feedback{{end}}"> |
|
|
|
<div class="form-group {{if .Err_TLS}}has-error has-feedback{{end}}"> |
|
|
|