|
9 | 9 | </h4> |
10 | 10 | <div class="ui attached segment"> |
11 | 11 | <form class="ui form" action="{{.Link}}" method="post"> |
| 12 | + {{template "base/disable_form_autofill"}} |
12 | 13 | {{.CsrfTokenHtml}} |
13 | 14 | <input type="hidden" name="action" value="update"> |
14 | 15 | <div class="required field {{if .Err_RepoName}}error{{end}}"> |
|
104 | 105 | <tr> |
105 | 106 | <td colspan="4"> |
106 | 107 | <form class="ui form" method="post"> |
| 108 | + {{template "base/disable_form_autofill"}} |
107 | 109 | {{.CsrfTokenHtml}} |
108 | 110 | <input type="hidden" name="action" value="mirror"> |
109 | 111 | <div class="inline field {{if .Err_EnablePrune}}error{{end}}"> |
|
132 | 134 | <label for="mirror_username">{{.i18n.Tr "username"}}</label> |
133 | 135 | <input id="mirror_username" name="mirror_username" value="{{$address.Username}}" {{if not .mirror_username}}data-need-clear="true"{{end}}> |
134 | 136 | </div> |
135 | | - <input class="fake" type="password"> |
136 | 137 | <div class="inline field {{if .Err_Auth}}error{{end}}"> |
137 | 138 | <label for="mirror_password">{{.i18n.Tr "password"}}</label> |
138 | 139 | <input id="mirror_password" name="mirror_password" type="password" placeholder="{{if $address.Password}}{{.i18n.Tr "repo.mirror_password_placeholder"}}{{else}}{{.i18n.Tr "repo.mirror_password_blank_placeholder"}}{{end}}" value="" {{if not .mirror_password}}data-need-clear="true"{{end}} autocomplete="off"> |
|
195 | 196 | <tr> |
196 | 197 | <td colspan="4"> |
197 | 198 | <form class="ui form" method="post"> |
| 199 | + {{template "base/disable_form_autofill"}} |
198 | 200 | {{.CsrfTokenHtml}} |
199 | 201 | <input type="hidden" name="action" value="push-mirror-add"> |
200 | 202 | <div class="field {{if .Err_PushMirrorAddress}}error{{end}}"> |
201 | 203 | <label for="push_mirror_address">{{.i18n.Tr "repo.settings.mirror_settings.push_mirror.remote_url"}}</label> |
202 | | - <input id="push_mirror_address" name="push_mirror_address" value="{{.push_mirror_address}}" autocomplete="off" required> |
| 204 | + <input id="push_mirror_address" name="push_mirror_address" value="{{.push_mirror_address}}" required> |
203 | 205 | <p class="help">{{.i18n.Tr "repo.mirror_address_desc"}}</p> |
204 | 206 | </div> |
205 | 207 | <details class="ui optional field" {{if or .Err_PushMirrorAuth .push_mirror_username}}open{{end}}> |
|
211 | 213 | <label for="push_mirror_username">{{.i18n.Tr "username"}}</label> |
212 | 214 | <input id="push_mirror_username" name="push_mirror_username" value="{{.push_mirror_username}}"> |
213 | 215 | </div> |
214 | | - <input class="fake" type="password"> |
215 | 216 | <div class="inline field {{if .Err_PushMirrorAuth}}error{{end}}"> |
216 | 217 | <label for="push_mirror_password">{{.i18n.Tr "password"}}</label> |
217 | 218 | <input id="push_mirror_password" name="push_mirror_password" type="password" value="{{.push_mirror_password}}" autocomplete="off"> |
|
0 commit comments