Improve layout for programming groups

This commit is contained in:
kiragrammel
2023-09-08 15:39:29 +02:00
committed by Sebastian Serth
parent 5da871a0e9
commit a7fa9b5b04
5 changed files with 26 additions and 21 deletions

View File

@ -4,4 +4,6 @@
= 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')
.actions.mb-0 = render('shared/submit_button', f: f, object: @programming_group)
.actions.mb-0
= render('shared/submit_button', f: f, object: @programming_group)
a.btn.btn-secondary.float-end href=new_exercise_programming_group_path(@exercise) == t('programming_groups.new.check_invitation')

View File

@ -15,10 +15,7 @@ h1 = t('programming_groups.new.create_programming_pair')
= render('form')
div.mt-4
a.btn.btn-success href=new_exercise_programming_group_path(@exercise) == t('programming_groups.new.check_invitation')
p.mt-4
== t('programming_groups.new.work_alone', path: implement_exercise_path(@exercise))
== t('programming_groups.new.work_alone', path: implement_exercise_path(@exercise))
.col-md-6
h5 = t('programming_groups.new.find_partner_title')