h1= "#{WorkflowInstance.model_name.human} fields"
- attribute_counter = 0
- WorkflowInstance.scenario_classes.each do |scenario_class|
  .report-scenario-container
    h2= scenario_class.model_name.human
    /- scenario_class.new.migration_attributes.each do |attr|
    - scenario_class.collection.attributes.each do |attr, attr_options|
      .report-attribute-name
        - case scenario_class.columns_hash[attr].type
        - when :integer
          - if attr.ends_with? '_id'
            span.fa.fa-long-arrow-right
          - else
            span.fa.fa-sort-numeric
        - when :boolean
          = boolean_show true
        - when :date
          span.fa.fa-calendar
        - when :text
          span.fa.fa-sticky-note-o
        = scenario_class.human_attribute_name(attr)
      - attribute_counter += 1
    - scenario_class.workflow_step_classes.each do |workflow_step_class|
      .report-subprocess-container
        h3= workflow_step_class.model_name.human
        - workflow_step_class.collection.attributes.each do |attr, attr_options|
          .report-attribute-name
            - case workflow_step_class.columns_hash[attr].type
            - when :integer
              - if attr.ends_with? '_id'
                span.fa.fa-long-arrow-right
              - else
                span.fa.fa-sort-numeric
            - when :boolean
              = boolean_show true
            - when :date
              span.fa.fa-calendar
            - when :text
              span.fa.fa-sticky-note-o
            = workflow_step_class.human_attribute_name(attr)
          - attribute_counter += 1

.report-statistics.hide
  .report-total-attributes= attribute_counter


.page-actions
  = link_to 'Back', reports_root_path, class: 'back'
