diff options
author | FabioFortini <FabioFortini@users.noreply.github.com> | 2018-05-13 09:51:16 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2018-05-13 15:51:16 +0800 |
commit | 1546458f7df4a4f0e77b7ae5cb65baed6feae394 (patch) | |
tree | aae745f69c31c4b9b808f901ca6dcc0fbd47857a /templates | |
parent | e74055878f21c35e49faf2d17abb05e03bfe32e8 (diff) | |
download | gitea-1546458f7df4a4f0e77b7ae5cb65baed6feae394.tar.gz gitea-1546458f7df4a4f0e77b7ae5cb65baed6feae394.zip |
issue-2768: added new option allow_only_external_registration (#3910)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/config.tmpl | 2 | ||||
-rw-r--r-- | templates/install.tmpl | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 370325692e..d8292a9e6b 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -114,6 +114,8 @@ <dd><i class="fa fa{{if .Service.RegisterEmailConfirm}}-check{{end}}-square-o"></i></dd> <dt>{{.i18n.Tr "admin.config.disable_register"}}</dt> <dd><i class="fa fa{{if .Service.DisableRegistration}}-check{{end}}-square-o"></i></dd> + <dt>{{.i18n.Tr "admin.config.allow_only_external_registration"}}</dt> + <dd><i class="fa fa{{if .Service.AllowOnlyExternalRegistration}}-check{{end}}-square-o"></i></dd> <dt>{{.i18n.Tr "admin.config.show_registration_button"}}</dt> <dd><i class="fa fa{{if .Service.ShowRegistrationButton}}-check{{end}}-square-o"></i></dd> <dt>{{.i18n.Tr "admin.config.enable_openid_signup"}}</dt> diff --git a/templates/install.tmpl b/templates/install.tmpl index bd79b3a068..46439b4979 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -201,6 +201,12 @@ </div> </div> <div class="inline field"> + <div class="ui checkbox" id="allow-only-external-registration"> + <label class="poping up" data-content="{{.i18n.Tr "install.allow_only_external_registration_popup"}}"><strong>{{.i18n.Tr "install.allow_only_external_registration_popup"}}</strong></label> + <input name="allow_only_external_registration" type="checkbox" {{if .allow_only_external_registration}}checked{{end}}> + </div> + </div> + <div class="inline field"> <div class="ui checkbox" id="enable-openid-signup"> <label class="poping up" data-content="{{.i18n.Tr "install.openid_signup_popup"}}"><strong>{{.i18n.Tr "install.openid_signup"}}</strong></label> <input name="enable_open_id_sign_up" type="checkbox" {{if .enable_open_id_sign_up}}checked{{end}}> |