Update Bootstrap from v4 to v5
This commit is contained in:
@ -1,14 +1,14 @@
|
||||
= form_for(@exercise_collection, multipart: true) do |f|
|
||||
= render('shared/form_errors', object: @exercise_collection)
|
||||
.form-group
|
||||
= f.label(t('activerecord.attributes.exercise_collections.name'))
|
||||
.mb-3
|
||||
= f.label(t('activerecord.attributes.exercise_collections.name'), class: 'form-label')
|
||||
= f.text_field(:name, class: 'form-control', required: true)
|
||||
.form-check.form-group
|
||||
.form-check.mb-3
|
||||
label.form-check-label
|
||||
= f.check_box(:use_anomaly_detection, class: 'form-check-input')
|
||||
= t('activerecord.attributes.exercise_collections.use_anomaly_detection')
|
||||
.form-group
|
||||
= f.label(t('activerecord.attributes.exercise_collections.user'))
|
||||
.mb-3
|
||||
= f.label(t('activerecord.attributes.exercise_collections.user'), class: 'form-label')
|
||||
= f.collection_select(:user_id, InternalUser.order(:name), :id, :name, {}, {class: 'form-control'})
|
||||
|
||||
.table-responsive#exercise-list
|
||||
@ -30,7 +30,7 @@
|
||||
.d-none
|
||||
= f.collection_select(:exercise_ids, Exercise.all, :id, :title, {}, {id: 'exercise-select', class: 'form-control', multiple: true})
|
||||
.exercise-actions
|
||||
button.btn.btn-outline-primary type='button' data-toggle='modal' data-target='#add-exercise-modal' = t('exercise_collections.form.add_exercises')
|
||||
button.btn.btn-outline-primary type='button' data-bs-toggle='modal' data-bs-target='#add-exercise-modal' = t('exercise_collections.form.add_exercises')
|
||||
button.btn.btn-secondary#sort-button type='button' = t('exercise_collections.form.sort_by_title')
|
||||
|
||||
.actions = render('shared/submit_button', f: f, object: @exercise_collection)
|
||||
|
Reference in New Issue
Block a user