This commit is contained in:
yqbk
2016-07-11 15:52:48 +02:00
parent 625ec68e5a
commit 29889bc455

View File

@ -38,7 +38,8 @@ 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')
= f.label(file.id)
= render('code_field', attribute: :content, form: f, label: t('activerecord.attributes.file.content'))
/= f.label(file.id)
/.frame data-executable=file.file_type.executable? data-filename=file.name_with_extension data-renderable=file.file_type.renderable? data-role=file.role data-binary=file.file_type.binary? data-context-type=file.context_type
- if file.file_type.binary?
.binary-file data-file-id=file.ancestor_id