Add new lines at eof
This commit is contained in:
@ -6,4 +6,4 @@ class ExerciseCollection < ActiveRecord::Base
|
|||||||
"#{I18n.t('activerecord.models.exercise_collection.one')}: #{name} (#{id})"
|
"#{I18n.t('activerecord.models.exercise_collection.one')}: #{name} (#{id})"
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -8,4 +8,4 @@
|
|||||||
.form-group
|
.form-group
|
||||||
= f.label(:exercises)
|
= f.label(:exercises)
|
||||||
= f.collection_select(:exercise_ids, exercises, :id, :title, {}, {class: 'form-control', multiple: true})
|
= f.collection_select(:exercise_ids, exercises, :id, :title, {}, {class: 'form-control', multiple: true})
|
||||||
.actions = render('shared/submit_button', f: f, object: @exercise_collection)
|
.actions = render('shared/submit_button', f: f, object: @exercise_collection)
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
h1 = @exercise_collection
|
h1 = @exercise_collection
|
||||||
|
|
||||||
= render('form')
|
= render('form')
|
||||||
|
@ -21,4 +21,4 @@ h1 = ExerciseCollection.model_name.human(count: 2)
|
|||||||
td = link_to(t('shared.destroy'), collection, data: {confirm: t('shared.confirm_destroy')}, method: :delete)
|
td = link_to(t('shared.destroy'), collection, data: {confirm: t('shared.confirm_destroy')}, method: :delete)
|
||||||
|
|
||||||
= render('shared/pagination', collection: @exercise_collections)
|
= render('shared/pagination', collection: @exercise_collections)
|
||||||
p = render('shared/new_button', model: ExerciseCollection)
|
p = render('shared/new_button', model: ExerciseCollection)
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
h1 = t('shared.new_model', model: ExerciseCollection.model_name.human)
|
h1 = t('shared.new_model', model: ExerciseCollection.model_name.human)
|
||||||
|
|
||||||
= render('form')
|
= render('form')
|
||||||
|
@ -8,4 +8,4 @@ h1
|
|||||||
h4 = t('activerecord.attributes.exercise_collections.exercises')
|
h4 = t('activerecord.attributes.exercise_collections.exercises')
|
||||||
ul.list-unstyled
|
ul.list-unstyled
|
||||||
- @exercise_collection.exercises.sort_by{|c| c.title}.each do |exercise|
|
- @exercise_collection.exercises.sort_by{|c| c.title}.each do |exercise|
|
||||||
li = link_to(exercise, exercise)
|
li = link_to(exercise, exercise)
|
||||||
|
Reference in New Issue
Block a user