Verified Commit a2ec04d3 authored by Martin Mladenov's avatar Martin Mladenov
Browse files

Allow editing min and max number of groups in management panel

parent d54e3fb3
......@@ -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
##
......
......@@ -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>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment