diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-27 14:11:09 -0700 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-19 11:55:46 -0700 |
commit | 9dc5c2ef73682c7c6ff754fe983ac3a3eff11976 (patch) | |
tree | 64c8ae35ff49e7ae9b08d204b277092cb4b5dc52 /app | |
parent | d279cc5a7aaca55b6736b065e3b0c119a9a9959b (diff) | |
download | gitlab-ce-9dc5c2ef73682c7c6ff754fe983ac3a3eff11976.tar.gz |
Add "allowed to create subgroups" dropdown to group settings form
Diffstat (limited to 'app')
-rw-r--r-- | app/views/groups/settings/_permissions.html.haml | 1 | ||||
-rw-r--r-- | app/views/groups/settings/_subgroup_creation_level.html.haml | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/app/views/groups/settings/_permissions.html.haml b/app/views/groups/settings/_permissions.html.haml index 0da1f1ba7f5..d3375e00bad 100644 --- a/app/views/groups/settings/_permissions.html.haml +++ b/app/views/groups/settings/_permissions.html.haml @@ -20,6 +20,7 @@ = render_if_exists 'groups/settings/ip_restriction', f: f, group: @group = render 'groups/settings/lfs', f: f = render 'groups/settings/project_creation_level', f: f, group: @group + = render 'groups/settings/subgroup_creation_level', f: f, group: @group = render 'groups/settings/two_factor_auth', f: f = render_if_exists 'groups/member_lock_setting', f: f, group: @group diff --git a/app/views/groups/settings/_subgroup_creation_level.html.haml b/app/views/groups/settings/_subgroup_creation_level.html.haml new file mode 100644 index 00000000000..f36ad192bad --- /dev/null +++ b/app/views/groups/settings/_subgroup_creation_level.html.haml @@ -0,0 +1,3 @@ +.form-group + = f.label s_('SubgroupCreationLevel|Allowed to create subgroups'), class: 'label-bold' + = f.select :subgroup_creation_level, options_for_select(::Gitlab::Access.subgroup_creation_options, group.subgroup_creation_level), {}, class: 'form-control' |