This commit is contained in:
yqbk
2016-07-25 18:41:52 +02:00
parent 70c5f9c3ad
commit 9b66d61998
2 changed files with 2 additions and 1 deletions

View File

@ -3,4 +3,5 @@
|  
a.toggle-input data={text_initial: t('shared.upload_file'), text_toggled: t('shared.back')} href='#' = t('shared.upload_file')
= form.text_area(attribute, class: 'code-field form-control original-input', rows: 16)
= render('editor_frame', exercise: e, file: @files)
= form.file_field(attribute, class: 'alternative-input form-control', disabled: true)

View File

@ -43,4 +43,4 @@ 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('code_field', attribute: :content, form: f, e: @exercise, label: t('activerecord.attributes.file.content'))