Only show file templates which are available for the selected file type

This commit is contained in:
Maximilian Grundke
2016-06-10 17:48:04 +02:00
parent c10b07690a
commit 4d2676fea7
7 changed files with 42 additions and 1 deletions

View File

@ -12,4 +12,5 @@
= f.label(:file_template_id, t('activerecord.attributes.file.file_template_id'))
= f.collection_select(:file_template_id, FileTemplate.all.order(:name), :id, :name, {:include_blank => true}, class: 'form-control')
= f.hidden_field(:context_id)
.hidden#noTemplateLabel data-text=t('file_template.no_template_label')
.actions = render('shared/submit_button', f: f, object: CodeOcean::File.new)