d-breadcrumbs as |breadcrumb|
  breadcrumb.item
    = link-to 'project.index': span= t 'models.plural.project'
  breadcrumb.item
    span= t 'models.project'
    span : 
    = link-to 'project.show' model: span= model.name
  breadcrumb.item active=true
   span= t 'project.add_progress.title'
.ui.container
  .ui.dividing.header
    /.ui.right.floated.icon.buttons
    .content
      span.resource-descriptor= t 'models.project'
      span.resource-name= model.name
      span.resource-suffix= t 'project.add_progress.title'

  /if model.project_scenarios.length
    .ui.top.attached.header
      = t 'models.plural.project_scenario'
    table.ui.definition.bottom.attached.table
      tbody
        each model.project_scenarios as |project_scenario|
          tr
            td= project_scenario.name
            td= project_scenario.identifier
  if model.instance_scope_batch
    .ui.top.attached.segment
      .ui.right.floated.icon.buttons
        button.ui.small.icon.button{action 'openModal' 'project/load-project-instances' (hash model=model)}
          i.upload.icon
      .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

