Ace editor for each file form

This commit is contained in:
yqbk
2016-08-12 15:29:06 +02:00
parent b6cf5d313a
commit 31b0c3ba25
4 changed files with 15 additions and 12 deletions

View File

@ -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)