Limit programming groups to two people

* adapt text on programming_groups/new site
* in German change from 'Sie' to 'du'
This commit is contained in:
kiragrammel
2023-09-04 13:31:41 +02:00
committed by Sebastian Serth
parent 0e4a239960
commit 97764bd02e
6 changed files with 28 additions and 20 deletions

View File

@@ -1,7 +1,7 @@
= form_for(@programming_group, url: exercise_programming_groups_path) do |f|
= render('shared/form_errors', object: @programming_group)
.mb-3
= f.label(:programming_partner_ids, class: 'form-label')
= f.label(:programming_partner_id, class: 'form-label')
= f.text_field(:programming_partner_ids, class: 'form-control', required: true, value: (@programming_group.programming_partner_ids - [current_user.id_with_type]).join(', '))
.help-block.form-text = t('.hints.programming_partner_ids')
/.help-block.form-text = t('.hints.programming_partner_ids')
.actions.mb-0 = render('shared/submit_button', f: f, object: @programming_group)