split intervention modal into 2 separate modals
This commit is contained in:
17
app/views/interventions/_search_intervention_modal.html.slim
Normal file
17
app/views/interventions/_search_intervention_modal.html.slim
Normal 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')
|
Reference in New Issue
Block a user