Files
codeocean/app/views/user_exercise_feedbacks/_form.html.slim
2024-05-21 19:42:26 +02:00

28 lines
1.1 KiB
Plaintext

= form_for([@exercise, @uef]) do |f|
div
h1#exercise-headline
=> UserExerciseFeedback.model_name.human
= @exercise.title
= render('shared/form_errors', object: @uef)
p
== t('user_exercise_feedback.description')
#description-card.lead.description-card
u = Exercise.human_attribute_name('description')
= render_markdown(@exercise.description)
.mb-3
= 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 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 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:, object: @uef)