Ace editor for each file form
This commit is contained in:
@ -36,5 +36,5 @@ li.panel.panel-default
|
||||
.form-group
|
||||
= f.label(:role, t('activerecord.attributes.file.weight'))
|
||||
= f.number_field(:weight, class: 'form-control', min: 1, step: 'any')
|
||||
//= render('code_field', attribute: :content, form: f, label: t('activerecord.attributes.file.content'))
|
||||
= render('ace', exercise: @exercise, file: file)
|
||||
/= render('code_field', attribute: :content, form: f, label: t('activerecord.attributes.file.content'))
|
||||
= render('ace', exercise: @exercise, file: @files.first)
|
Reference in New Issue
Block a user