.ui.small.buttons.select-project
  = ui-dropdown class='pointing top left button' selected=scope_project keepOnScreen=true onChange=(action 'set_scope_project') as |execute mapper|
    .default.text= t 'action.select_model' modelPath='models.project'
    i.dropdown.icon
    .menu
      each (sort-by 'name' projects) as |project|
        .item data-value='{{map-value mapper project}}'
          = project.name
  if scope_project
    button.ui.icon.button{action 'set_scope_project' null}
      i.close.icon
'
if scope_project
  .ui.small.buttons.select-project-scenario
    = ui-dropdown class='button' selected=scope_scenario onChange=(action 'set_scope_scenario') as |execute mapper|
        .default.text= t 'action.select_model' modelPath='models.project_scenario'
        i.dropdown.icon
        .menu
          each scope_project.project_scenarios as |project_scenario|
            .item data-value='{{map-value mapper project_scenario}}'
              = project_scenario.name
    if scope_scenario
      button.ui.icon.button{action 'set_scope_scenario' null}
        i.close.icon
  '
= yield
