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.operate.title'

if globals.operation_running
  .ui.segment
    p &nbsp;
    .ui.active.inverted.dimmer: .ui.medium.text.loader
      = t 'project.operate.operation_running_text'
      '
      span.between-brackets= operation_running_time
    p &nbsp;
    p &nbsp;
else
  .ui.horizontal.divider= t 'project.operate.set_value_on_non_final_with_closed_group.title'
  .ui.segment
  .ui.horizontal.divider= t 'project.operate.set_value_on_non_final_till_date.title'
  .ui.segment
    span Complete action 
    = ui-dropdown class='search selection' selected=set_value_on_non_final_till_date_action onChange=(action (mut set_value_on_non_final_till_date_action)) fullTextSearch=true as |execute mapper|
      .default.text= t 'action.select_model' modelPath='models.workflow_action_definition'
      i.dropdown.icon
      .menu
        .item data-value='{{map-value mapper null}}' --
        each model.sorted_workflow_action_definitions as |workflow_action_definition|
          .item data-value='{{map-value mapper workflow_action_definition}}'
            = workflow_action_definition.title
    if set_value_on_non_final_till_date_action
      '
      span.between-brackets= set_value_on_non_final_till_date_action.identifier
    span &nbsp;not having one of the states inquiry, rejected, completed until the action's target date
    .ui.small.icon.input= ui-calendar-moment type='date' momentValue=(readonly set_value_on_non_final_till_date_date) onChange=(action (mut set_value_on_non_final_till_date_date)) placeholder='X'
    '
    span whose group is already closed (newly added action to project for example)
    if set_value_on_non_final_till_date_action
      if (eq set_value_on_non_final_till_date_action.value_type 'boolean')
        button.ui.secondary.button click="set_value_on_non_final_till_date" Boom!
      else
        span.ui.yellow.basic.label Non boolean not yet supported
