added the ability to customize the path for new files when implementing an exercise

This commit is contained in:
Hauke Klement
2015-03-10 09:52:32 +01:00
parent 574c5c3a9c
commit ae1d654a62
3 changed files with 16 additions and 0 deletions

View File

@ -2,6 +2,9 @@
.form-group
= f.label(:name, t('activerecord.attributes.file.name'))
= f.text_field(:name, class: 'form-control', required: true)
.form-group
= f.label(:path, t('activerecord.attributes.file.path'))
= f.select(:path, @paths, {}, class: 'form-control')
.form-group
= f.label(:file_type_id, t('activerecord.attributes.file.file_type_id'))
= f.collection_select(:file_type_id, FileType.where(binary: false).order(:name), :id, :name, {}, class: 'form-control')