.ui.grid.without-bottom-margin
  .nine.wide.column= graph_title
  .right.aligned.seven.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'
.workflow-group-offset-diagram-container.diagram-container
.range-slider-container
  if range_start_default
    range-slider start=range_start_default range=range_bounds on-change='range_changed' tooltips=range_formatter step=1 connect=true

.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
