added search intervention. search opens new tab with search in the java course (at least in chrome)

send only 3 interventions per exercise at maximum
This commit is contained in:
Thomas Hille
2017-03-01 11:49:54 +01:00
parent 17d09accb7
commit 695b8946f6
10 changed files with 109 additions and 4 deletions

View File

@@ -1,9 +1,14 @@
/h5 = t('exercises.implement.comment.question')
h5 = 'Hinweis'
/textarea.form-control#question(style='resize:none;')
#intervention-text
= form_for(@search, multipart: true, target: "_blank") do |f|
.form-group
= f.text_field(:search, class: 'form-control', required: true)
= f.hidden_field :exercise_id
.actions
= f.submit(class: 'btn btn-default btn-search', value: 'Suche', model: @search.class.model_name.human)
/p = "AVG: #{@working_time_avg}"
/p = "ACCUMULATED: #{@working_time_accumulated}"