/if has_content
  .ui.header: .content= t 'models.plural.workflow_action_offset'
  pre= digraph_contents.firstObject
.ui.grid
  .eleven.wide.column
    = graph_title
    = ui-checkbox checked=show_attached label=(t 'workflow_action_definition.offset_graph.show_attached') onChange=(action (mut show_attached))
    '
    = ui-checkbox checked=show_pointing_infos label=(t 'workflow_action_definition.offset_graph.show_pointing_infos') onChange=(action (mut show_pointing_infos))
    '
    = ui-checkbox checked=show_pointing_constraints label=(t 'workflow_action_definition.offset_graph.show_pointing_constraints') onChange=(action (mut show_pointing_constraints))
    if project.project_scenarios.length
      = project/edit-active-project-scenario project=project active_project_scenario=active_project_scenario
  .right.aligned.five.wide.column
    if choose_reference_date
      i.map.signs.flipped.icon{action 'hide_absolute_date_choice'}
      .ui.small.icon.input= ui-calendar-moment type='date' momentValue=(readonly chosen_absolute_date) onChange=(action (mut chosen_absolute_date)) placeholder='X' allowClear=true
    else
      i.map.signs.icon{ action (mut choose_reference_date) true}
      = ui-dropdown class='selection' selected=project.reference_date_day_of_week onChange=(action (mut reference_date_day_of_week))
        .default.text= t 'project.select_reference_date_day_of_week'
        i.dropdown.icon
        .menu
          /.item data-value='': span --
          each globals.week_days as |week_day|
            .item data-value=week_day.name
              = t week_day.name scope='date.week_day'
each svg_contents as |svg_content|
  == svg_content
.range-slider-container
  if (and project.instance_scope_batch project.batch_size_upper_value)
    .ui.form.grid
      .sixteen.wide.column: h4 Batch size simulation
    range-slider start=batch_size_simulation_value range=batch_size_simulation_range on-change='batch_size_simulation_change' tooltips=batch_size_formatter  step=1
