diff options
author | Lauris BH <lauris@nix.lv> | 2017-05-08 22:51:53 +0300 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-05-08 21:51:53 +0200 |
commit | 51d0becb4232eab6b18959ccc4a895e5df30c4dc (patch) | |
tree | d119ca2bef3ca44147801cd57e4cf2190690f65a /templates | |
parent | a85c5ab9ff60dab58b2bf713479460caac8e9567 (diff) | |
download | gitea-51d0becb4232eab6b18959ccc4a895e5df30c4dc.tar.gz gitea-51d0becb4232eab6b18959ccc4a895e5df30c4dc.zip |
Add configuration option for default permission to create Organizations (#1686)
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 7348ab7b9e..0fbd0befcf 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -128,6 +128,8 @@ <dd><i class="fa fa{{if .Service.EnableCaptcha}}-check{{end}}-square-o"></i></dd> <dt>{{.i18n.Tr "admin.config.default_keep_email_private"}}</dt> <dd><i class="fa fa{{if .Service.DefaultKeepEmailPrivate}}-check{{end}}-square-o"></i></dd> + <dt>{{.i18n.Tr "admin.config.default_allow_create_organization"}}</dt> + <dd><i class="fa fa{{if .Service.DefaultAllowCreateOrganization}}-check{{end}}-square-o"></i></dd> <dt>{{.i18n.Tr "admin.config.no_reply_address"}}</dt> <dd>{{if .Service.NoReplyAddress}}{{.Service.NoReplyAddress}}{{else}}-{{end}}</dd> <div class="ui divider"></div> diff --git a/templates/install.tmpl b/templates/install.tmpl index d084005c8c..ede1d4399f 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -213,6 +213,12 @@ </div> </div> <div class="inline field"> + <div class="ui checkbox"> + <label class="poping up" data-content="{{.i18n.Tr "install.default_allow_create_organization_popup"}}"><strong>{{.i18n.Tr "install.default_allow_create_organization"}}</strong></label> + <input name="default_allow_create_organization" type="checkbox" {{if .default_allow_create_organization}}checked{{end}}> + </div> + </div> + <div class="inline field"> <label for="no_reply_address">{{.i18n.Tr "install.no_reply_address"}}</label> <input id="_no_reply_address" name="no_reply_address" value="{{.no_reply_address}}"> <span class="help">{{.i18n.Tr "install.no_reply_address_helper"}}</span> |