Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
EIP
Project Forum
Project Forum
Commits
a2ec04d3
Verified
Commit
a2ec04d3
authored
Nov 26, 2022
by
Martin Mladenov
Browse files
Allow editing min and max number of groups in management panel
parent
d54e3fb3
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/controllers/concerns/params_concerns/projects.rb
View file @
a2ec04d3
...
...
@@ -16,7 +16,7 @@ module ParamsConcerns
{
tag_ids:
[]
}].
freeze
FULL
=
%i[
status status_message presentation_location presented_at
status status_message presentation_location presented_at
min_number_of_groups max_number_of_groups
]
.
freeze
##
...
...
app/views/admin/projects/edit/_project_form.html.erb
View file @
a2ec04d3
...
...
@@ -140,6 +140,20 @@
<tr>
<td>
<%=
f
.
text_field
:presentation_location
%>
</td>
</tr>
<tr>
<td>
<%=
number_field_popover
f
,
:min_number_of_groups
,
CourseConfiguration
.
human_explanation
(
:min_number_of_groups
),
required:
true
,
min:
1
%>
</td>
</tr>
<tr>
<td>
<%=
number_field_popover
f
,
:max_number_of_groups
,
CourseConfiguration
.
human_explanation
(
:max_number_of_groups
),
required:
true
,
min:
1
%>
</td>
</tr>
</table>
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment