option to hide the file tree in exercises.

This commit is contained in:
Ralf Teusner
2015-09-22 18:22:25 +02:00
parent 4e35579a7d
commit 10da12f950
8 changed files with 16 additions and 11 deletions

View File

@@ -23,6 +23,10 @@
label
= f.check_box(:public)
= t('activerecord.attributes.exercise.public')
.checkbox
label
= f.check_box(:hide_file_tree)
= t('activerecord.attributes.exercise.hide_file_tree')
h2 = t('activerecord.attributes.exercise.files')
ul#files.list-unstyled
= f.fields_for :files do |files_form|