Replace manual activerecord translations with helpers

This commit is contained in:
Sebastian Serth
2024-04-14 14:00:51 +02:00
committed by Sebastian Serth
parent e551c8a699
commit f8330b39fb
72 changed files with 265 additions and 264 deletions

View File

@@ -1,12 +1,13 @@
= form_for([@exercise, @uef]) do |f|
div
h1#exercise-headline
= "#{t('activerecord.models.user_exercise_feedback.one')} #{@exercise.title}"
=> UserExerciseFeedback.model_name.human
= @exercise.title
= render('shared/form_errors', object: @uef)
p
== t('user_exercise_feedback.description')
#description-card.lead.description-card
u = t('activerecord.attributes.exercise.description')
u = Exercise.human_attribute_name('description')
= render_markdown(@exercise.description)
.mb-3
= f.text_area(:feedback_text, class: 'form-control', required: true, rows: '10')