Restyle user exercise feedback to look nicer (not nice)
This commit is contained in:
@ -3,21 +3,20 @@
|
|||||||
span.badge.badge-pill.badge-primary.float-right.score
|
span.badge.badge-pill.badge-primary.float-right.score
|
||||||
|
|
||||||
h1 id="exercise-headline"
|
h1 id="exercise-headline"
|
||||||
= t('activerecord.models.user_exercise_feedback.one') + " "
|
= t('activerecord.models.user_exercise_feedback.one') + " " + @exercise.title
|
||||||
= link_to(@exercise.title, [:implement, @exercise])
|
|
||||||
= render('shared/form_errors', object: @uef)
|
= render('shared/form_errors', object: @uef)
|
||||||
h4
|
p
|
||||||
== t('user_exercise_feedback.description')
|
== t('user_exercise_feedback.description')
|
||||||
#description-card.lead.description-card
|
#description-card.lead.description-card
|
||||||
u = t('activerecord.attributes.exercise.description')
|
u = t('activerecord.attributes.exercise.description')
|
||||||
= render_markdown(@exercise.description)
|
= render_markdown(@exercise.description)
|
||||||
.form-group
|
.form-group
|
||||||
= f.text_area(:feedback_text, class: 'form-control', required: true, :rows => "10")
|
= f.text_area(:feedback_text, class: 'form-control', required: true, :rows => "10")
|
||||||
h4 = t('user_exercise_feedback.difficulty')
|
h4.mt-4 = t('user_exercise_feedback.difficulty')
|
||||||
= f.collection_radio_buttons :difficulty, @texts, :first, :last, html_options={class: "form-check-inline"} do |b|
|
= 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 }
|
= b.label(:class => 'form-check') { b.radio_button + b.text }
|
||||||
h4 = t('user_exercise_feedback.working_time')
|
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|
|
= 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 }
|
= b.label(:class => 'form-check') { b.radio_button + b.text }
|
||||||
= f.hidden_field(:exercise_id, :value => @exercise.id)
|
= f.hidden_field(:exercise_id, :value => @exercise.id)
|
||||||
.actions = render('shared/submit_button', f: f, object: @uef)
|
.actions = render('shared/submit_button', f: f, object: @uef)
|
||||||
|
Reference in New Issue
Block a user