.ui.grid
  .four.wide.column
    /x-select model=constraint_types value=constraint valueKey="value.type" required=true canSearch=false onSelect=(action 'selectConstraintType')
    x-select value=constraint.type on-change=(action (mut constraint.type)) as |xs|
      each constraint_types as |constraint_type|
        xs.option value=constraint_type
          = constraint_type
    /select
      each constraint_types as |constraint_type|
        option value=constraint_type selected={eq constraint_type constraint.type}
  .eight.wide.column
    x-select value=constraint.constraint_workflow_group.content on-change=(action (mut constraint.constraint_workflow_group)) as |xs|
      each constraint_workflow_groups as |constraint_workflow_group|
        xs.option value=constraint_workflow_group
          = constraint_workflow_group.name
    ui-multi-select options=constraint.constraint_workflow_group.sorted_workflow_action_definitions labelProperty='name' selected=constraint.workflow_action_definitions
  .two.wide.column= push-action type="destroy" action="destroyConstraint"
