|
4 | 4 | <div class="ui container">
|
5 | 5 | {{template "base/alert" .}}
|
6 | 6 | <h4 class="ui top attached header">
|
7 |
| - {{.i18n.Tr "admin.auths.new"}} |
| 7 | + {{.locale.Tr "admin.auths.new"}} |
8 | 8 | </h4>
|
9 | 9 | <div class="ui attached segment">
|
10 | 10 | <form class="ui form" action="{{.Link}}" method="post">
|
11 | 11 | {{template "base/disable_form_autofill"}}
|
12 | 12 | {{.CsrfTokenHtml}}
|
13 | 13 | <!-- Types and name -->
|
14 | 14 | <div class="inline required field {{if .Err_Type}}error{{end}}">
|
15 |
| - <label>{{.i18n.Tr "admin.auths.auth_type"}}</label> |
| 15 | + <label>{{.locale.Tr "admin.auths.auth_type"}}</label> |
16 | 16 | <div class="ui selection type dropdown">
|
17 | 17 | <input type="hidden" id="auth_type" name="type" value="{{.type}}">
|
18 | 18 | <div class="text">{{.CurrentTypeName}}</div>
|
|
25 | 25 | </div>
|
26 | 26 | </div>
|
27 | 27 | <div class="required inline field {{if .Err_Name}}error{{end}}">
|
28 |
| - <label for="name">{{.i18n.Tr "admin.auths.auth_name"}}</label> |
| 28 | + <label for="name">{{.locale.Tr "admin.auths.auth_name"}}</label> |
29 | 29 | <input id="name" name="name" value="{{.name}}" autofocus required>
|
30 | 30 | </div>
|
31 | 31 |
|
|
37 | 37 |
|
38 | 38 | <!-- PAM -->
|
39 | 39 | <div class="pam required field {{if not (eq .type 4)}}hide{{end}}">
|
40 |
| - <label for="pam_service_name">{{.i18n.Tr "admin.auths.pam_service_name"}}</label> |
| 40 | + <label for="pam_service_name">{{.locale.Tr "admin.auths.pam_service_name"}}</label> |
41 | 41 | <input id="pam_service_name" name="pam_service_name" value="{{.pam_service_name}}" />
|
42 |
| - <label for="pam_email_domain">{{.i18n.Tr "admin.auths.pam_email_domain"}}</label> |
| 42 | + <label for="pam_email_domain">{{.locale.Tr "admin.auths.pam_email_domain"}}</label> |
43 | 43 | <input id="pam_email_domain" name="pam_email_domain" value="{{.pam_email_domain}}">
|
44 | 44 | </div>
|
45 | 45 | <div class="pam optional field {{if not (eq .type 4)}}hide{{end}}">
|
46 | 46 | <div class="ui checkbox">
|
47 |
| - <label for="skip_local_two_fa"><strong>{{.i18n.Tr "admin.auths.skip_local_two_fa"}}</strong></label> |
| 47 | + <label for="skip_local_two_fa"><strong>{{.locale.Tr "admin.auths.skip_local_two_fa"}}</strong></label> |
48 | 48 | <input id="skip_local_two_fa" name="skip_local_two_fa" type="checkbox" {{if .skip_local_two_fa}}checked{{end}}>
|
49 |
| - <p class="help">{{.i18n.Tr "admin.auths.skip_local_two_fa_helper"}}</p> |
| 49 | + <p class="help">{{.locale.Tr "admin.auths.skip_local_two_fa_helper"}}</p> |
50 | 50 | </div>
|
51 | 51 | </div>
|
52 | 52 |
|
|
58 | 58 |
|
59 | 59 | <div class="ldap field">
|
60 | 60 | <div class="ui checkbox">
|
61 |
| - <label><strong>{{.i18n.Tr "admin.auths.attributes_in_bind"}}</strong></label> |
| 61 | + <label><strong>{{.locale.Tr "admin.auths.attributes_in_bind"}}</strong></label> |
62 | 62 | <input name="attributes_in_bind" type="checkbox" {{if .attributes_in_bind}}checked{{end}}>
|
63 | 63 | </div>
|
64 | 64 | </div>
|
65 | 65 | <div class="ldap inline field {{if not (eq .type 2)}}hide{{end}}">
|
66 | 66 | <div class="ui checkbox">
|
67 |
| - <label><strong>{{.i18n.Tr "admin.auths.syncenabled"}}</strong></label> |
| 67 | + <label><strong>{{.locale.Tr "admin.auths.syncenabled"}}</strong></label> |
68 | 68 | <input name="is_sync_enabled" type="checkbox" {{if .is_sync_enabled}}checked{{end}}>
|
69 | 69 | </div>
|
70 | 70 | </div>
|
71 | 71 | <div class="inline field">
|
72 | 72 | <div class="ui checkbox">
|
73 |
| - <label><strong>{{.i18n.Tr "admin.auths.activated"}}</strong></label> |
| 73 | + <label><strong>{{.locale.Tr "admin.auths.activated"}}</strong></label> |
74 | 74 | <input name="is_active" type="checkbox" {{if .is_active}}checked{{end}}>
|
75 | 75 | </div>
|
76 | 76 | </div>
|
77 | 77 |
|
78 | 78 | <div class="field">
|
79 |
| - <button class="ui green button">{{.i18n.Tr "admin.auths.new"}}</button> |
| 79 | + <button class="ui green button">{{.locale.Tr "admin.auths.new"}}</button> |
80 | 80 | </div>
|
81 | 81 | </form>
|
82 | 82 | </div>
|
83 | 83 |
|
84 | 84 | <h4 class="ui top attached header">
|
85 |
| - {{.i18n.Tr "admin.auths.tips"}} |
| 85 | + {{.locale.Tr "admin.auths.tips"}} |
86 | 86 | </h4>
|
87 | 87 | <div class="ui attached segment">
|
88 | 88 | <h5>GMail Settings:</h5>
|
89 | 89 | <p>Host: smtp.gmail.com, Port: 587, Enable TLS Encryption: true</p>
|
90 | 90 |
|
91 |
| - <h5>{{.i18n.Tr "admin.auths.tips.oauth2.general"}}:</h5> |
92 |
| - <p>{{.i18n.Tr "admin.auths.tips.oauth2.general.tip"}}</p> |
| 91 | + <h5>{{.locale.Tr "admin.auths.tips.oauth2.general"}}:</h5> |
| 92 | + <p>{{.locale.Tr "admin.auths.tips.oauth2.general.tip"}}</p> |
93 | 93 |
|
94 |
| - <h5 class="ui top attached header">{{.i18n.Tr "admin.auths.tip.oauth2_provider"}}</h5> |
| 94 | + <h5 class="ui top attached header">{{.locale.Tr "admin.auths.tip.oauth2_provider"}}</h5> |
95 | 95 | <div class="ui attached segment">
|
96 | 96 | <li>Bitbucket</li>
|
97 |
| - <span>{{.i18n.Tr "admin.auths.tip.bitbucket"}}</span> |
| 97 | + <span>{{.locale.Tr "admin.auths.tip.bitbucket"}}</span> |
98 | 98 | <li>Dropbox</li>
|
99 |
| - <span>{{.i18n.Tr "admin.auths.tip.dropbox"}}</span> |
| 99 | + <span>{{.locale.Tr "admin.auths.tip.dropbox"}}</span> |
100 | 100 | <li>Facebook</li>
|
101 |
| - <span>{{.i18n.Tr "admin.auths.tip.facebook"}}</span> |
| 101 | + <span>{{.locale.Tr "admin.auths.tip.facebook"}}</span> |
102 | 102 | <li>GitHub</li>
|
103 |
| - <span>{{.i18n.Tr "admin.auths.tip.github"}}</span> |
| 103 | + <span>{{.locale.Tr "admin.auths.tip.github"}}</span> |
104 | 104 | <li>GitLab</li>
|
105 |
| - <span>{{.i18n.Tr "admin.auths.tip.gitlab"}}</span> |
| 105 | + <span>{{.locale.Tr "admin.auths.tip.gitlab"}}</span> |
106 | 106 | <li>Google</li>
|
107 |
| - <span>{{.i18n.Tr "admin.auths.tip.google_plus"}}</span> |
| 107 | + <span>{{.locale.Tr "admin.auths.tip.google_plus"}}</span> |
108 | 108 | <li>OpenID Connect</li>
|
109 |
| - <span>{{.i18n.Tr "admin.auths.tip.openid_connect"}}</span> |
| 109 | + <span>{{.locale.Tr "admin.auths.tip.openid_connect"}}</span> |
110 | 110 | <li>Twitter</li>
|
111 |
| - <span>{{.i18n.Tr "admin.auths.tip.twitter"}}</span> |
| 111 | + <span>{{.locale.Tr "admin.auths.tip.twitter"}}</span> |
112 | 112 | <li>Discord</li>
|
113 |
| - <span>{{.i18n.Tr "admin.auths.tip.discord"}}</span> |
| 113 | + <span>{{.locale.Tr "admin.auths.tip.discord"}}</span> |
114 | 114 | <li>Gitea</li>
|
115 |
| - <span>{{.i18n.Tr "admin.auths.tip.gitea"}}</span> |
| 115 | + <span>{{.locale.Tr "admin.auths.tip.gitea"}}</span> |
116 | 116 | <li>Nextcloud</li>
|
117 |
| - <span>{{.i18n.Tr "admin.auths.tip.nextcloud"}}</span> |
| 117 | + <span>{{.locale.Tr "admin.auths.tip.nextcloud"}}</span> |
118 | 118 | <li>Yandex</li>
|
119 |
| - <span>{{.i18n.Tr "admin.auths.tip.yandex"}}</span> |
| 119 | + <span>{{.locale.Tr "admin.auths.tip.yandex"}}</span> |
120 | 120 | <li>Mastodon</li>
|
121 |
| - <span>{{.i18n.Tr "admin.auths.tip.mastodon"}}</span> |
| 121 | + <span>{{.locale.Tr "admin.auths.tip.mastodon"}}</span> |
122 | 122 | </div>
|
123 | 123 | </div>
|
124 | 124 | </div>
|
|
0 commit comments