if loading_message
  .ui.info.icon.message
    i.notched.circle.loading.icon
    .content= loading_message
if finished_message
  .ui.positive.icon.message
    i.flag.checkered.icon
    .content= finished_message
unless (or loading_message finished_message)
  if model.instance_scope_batch
    .ui.top.attached.segment
      .ui.right.floated.icon.buttons
        = file-upload name='instance-list' onfileadd=(action 'load_instance_list')
          a.ui.button id='upload-image' tabindex=0
            i.file.icon
            span Upload CSV
      .header
        h3 Batch files (example)
    .ui.bottom.attached.secondary.segment
      table style='width:100%'
        thead
          tr
            td Batch identifier,
            td Batch date,
            td Scenario,
            td Batch size
        tbody
          tr
            td Ams-AAC,
            td 2017-11-23,
            td e585c580-2a48-4fcd-a852-63f92c6a9f1a,
            td 700
  else
    .ui.top.attached.segment
      .ui.right.floated.icon.buttons
        button.ui.small.icon.button
          i.upload.icon
      .header
        h3 Instance files (example)
    .ui.bottom.attached.secondary.segment
      table style='width:100%'
        thead
          tr
            td Instance identifier,
            td Instance date,
            td Scenario
            td Global instance identifier
        tbody
          tr
            td CFK42664,
            td 2017-11-23,
            td e585c580-2a48-4fcd-a852-63f92c6a9f1b
            td CFK42664,
          tr
            td CFK42665,
            td 2017-11-25,
            td e585c580-2a48-4fcd-a852-63f92c6a9f1c
            td CFK42665,
          tr
            td CDQ87810,
            td ,
            td ,
            td

  if model.project_scenarios.length
    .ui.top.attached.header
      = t 'models.project_scenario'
      span &nbsp;identifiers
    table.ui.definition.bottom.attached.table
      tbody
        each model.project_scenarios as |project_scenario|
          tr
            td= project_scenario.name
            td= project_scenario.identifier
.modal-actions.sticky
  button.ui.basic.button.modal-close.pull-right{action 'close'}= t 'general.close'
