ace with files

This commit is contained in:
yqbk
2016-08-02 15:02:02 +02:00
parent f7eaa24a1d
commit de866d00ca
6 changed files with 38 additions and 6 deletions

View File

@ -1,5 +1,7 @@
- id = f.object.id
li.panel.panel-default
.panel-heading role="tab" id="heading"
a.file-heading data-toggle="collapse" data-parent="#files" href="#collapse#{id}"
@ -38,3 +40,4 @@ li.panel.panel-default
= 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('form2', exercise: @exercise, file: @files)