h2=t "workflow_step.actions_modal.title", model: record_class.model_name.human
- if batch = @workflow_instance_batch
  .display-row
    .display-label= batch.class.model_name.human
    .display-field
      = batch.presentation_name
      = "(#{@collection.size})"
.panel.workflow-step-workfow-instances-collection-container
  = safe_join @collection.map{|r| link_to(r.workflow_instance.presentation_name, r.workflow_instance, class: r.state) }, ', '
= simple_form_for @collection do |f|
  = f.error_notification
  = f.collection_ids
  - if batch
    = hidden_field_tag :workflow_instance_batch_id, batch.id
  = render 'collection_form', f: f
  .form-actions= render 'workflow_steps/form_actions', f: f, back: workflow_instance_class

