From 8c9a1390d4ce7100636f83791d1140b069b7dbb1 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Tue, 12 May 2020 13:41:44 +0200 Subject: [PATCH] Make UserExerciseFeedback look nice again --- app/views/user_exercise_feedbacks/_form.html.slim | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/app/views/user_exercise_feedbacks/_form.html.slim b/app/views/user_exercise_feedbacks/_form.html.slim index a5fbf63a..acb3cdf5 100644 --- a/app/views/user_exercise_feedbacks/_form.html.slim +++ b/app/views/user_exercise_feedbacks/_form.html.slim @@ -13,10 +13,16 @@ .form-group = f.text_area(:feedback_text, class: 'form-control', required: true, :rows => "10") h4.mt-4 = t('user_exercise_feedback.difficulty') - = f.collection_radio_buttons :difficulty, @texts, :first, :last, html_options: {class: "form-check-inline"} do |b| - = b.label(:class => 'form-check') { b.radio_button + b.text } + = f.collection_radio_buttons :difficulty, @texts, :first, :last do |b| + .form-check + label.form-check-label + = b.radio_button(class: 'form-check-input') + = b.text h4.mt-4 = t('user_exercise_feedback.working_time') - = f.collection_radio_buttons :user_estimated_worktime, @times, :first, :last, html_options: {class: "form-check-inline"} do |b| - = b.label(:class => 'form-check') { b.radio_button + b.text } + = f.collection_radio_buttons :user_estimated_worktime, @times, :first, :last do |b| + .form-check + label.form-check-label + = b.radio_button(class: 'form-check-input') + = b.text = f.hidden_field(:exercise_id, :value => @exercise.id) .actions = render('shared/submit_button', f: f, object: @uef)