added the ability to discard files when creating a new exercise

This commit is contained in:
Hauke Klement
2015-03-10 10:48:53 +01:00
parent 75686fe059
commit 0c47337d5a
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,6 @@
li.panel.panel-default
.panel-body
.clearfix = link_to(t('shared.destroy'), '#', class:'btn btn-warning btn-sm discard-file pull-right')
.form-group
= f.label(:name, t('activerecord.attributes.file.name'))
= f.text_field(:name, class: 'form-control')