implementation ready for testing

This commit is contained in:
yqbk
2016-08-17 15:53:16 +02:00
parent 476188990f
commit 7bead2c473
6 changed files with 7 additions and 16 deletions

View File

@@ -1,4 +1,3 @@
//- id = f.object.id
= form_for(file) do |f|
li.panel.panel-default
.panel-heading role="tab" id="heading"

View File

@@ -31,7 +31,7 @@
h2 = t('activerecord.attributes.exercise.files')
ul#files.list-unstyled.panel-group
= @exercise.files.each do |file|
- @exercise.files.each do |file|
= render partial: 'file_form', locals: { file: file }
a#add-file.btn.btn-default.btn-sm.pull-right href='#' = t('.add_file')

View File

@@ -1,3 +1,3 @@
h1 = @exercise
= render('form', exercise: @exercise, files: @files)
= render('form')