Rename PagedownFormBuilder to MarkdownFormBuilder

The term 'Pagedown' was originally associated with the pagedown-bootstrap
library, which is no longer in use.
This commit is contained in:
Julia Casamitjana
2024-04-11 10:44:44 +02:00
committed by Dominic Sauer
parent 0667cbeefb
commit 17a4485ce2
5 changed files with 9 additions and 9 deletions

View File

@ -5,14 +5,14 @@
- append_javascript_pack_tag('toast-ui')
- append_stylesheet_pack_tag('toast-ui')
= form_for(@proxy_exercise, multipart: true, builder: PagedownFormBuilder) do |f|
= form_for(@proxy_exercise, multipart: true, builder: MarkdownFormBuilder) do |f|
= render('shared/form_errors', object: @proxy_exercise)
.mb-3
= f.label(:title, class: 'form-label')
= f.text_field(:title, class: 'form-control', required: true)
.mb-3
= f.label(:description, class: 'form-label')
= f.pagedown :description
= f.markdown :description
.mb-3
= f.label(:algorithm, class: 'form-label')
= f.collection_select(:algorithm, ProxyExercise.algorithms.map {|algorithm, _id| [t("activerecord.attributes.proxy_exercise.algorithm_type.#{algorithm}"), algorithm] }, :second, :first, {}, class: 'form-control form-control-sm')