split intervention modal into 2 separate modals

This commit is contained in:
Thomas Hille
2017-03-01 11:58:16 +01:00
parent 695b8946f6
commit 5b50deb70d
4 changed files with 15 additions and 5 deletions

View File

@@ -0,0 +1,17 @@
/h5 = t('exercises.implement.comment.question')
/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}"
/ data-cause='requestComments' is not used here right now, we pass the button #requestComments (not askForCommentsButton) as initiator of the action.
/ But if we use this button, it will work since the correct cause is supplied
/button#askForCommentsButton.btn.btn-block.btn-primary(type='button' data-cause='requestComments' data-message-success=t('exercises.editor.request_for_comments_sent')) =t('exercises.implement.comment.request')