This commit is contained in:
yqbk
2016-08-02 16:07:31 +02:00
parent cb35a88080
commit 341e4cb5c8
14 changed files with 1038 additions and 48 deletions

View File

@@ -1,10 +1,6 @@
.form-group class="form-group-#{attribute.to_s.gsub('_', '-')}"
= form.label(attribute, label)
|  
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)
// Need to render content in ace editor instead of plain text
/= render('editor_frame', exercise: e, file: @files)
= form.file_field(attribute, class: 'alternative-input form-control', disabled: true)