if isEditing
  .ui.one.column.grid
    .ui.form
      .column
        .ui.tiny.right.floated.icon.buttons
          = push-action type='rollback'      action='rollbackWorkflowActionDefinition'
          = push-action type='destroy'       action='destroyWorkflowActionDefinition'
          = push-action type='position'      action='positionInProject'
          = push-action type='edit'          action='editWorkflowActionDefinition'
          unless workflow_action_definition.isNew
            = push-action type='authorization' action='authorize_users'
          = push-action type='save'          action='saveWorkflowActionDefinition'
        = input value=workflow_action_definition.title enter='saveWorkflowActionDefinition' class='workflow-action-definition-title-edit' placeholder='name'
      .column
        = textarea value=workflow_action_definition.extra_info class='workflow-action-definition-extra-info-edit' placeholder='extra info'
else
  .ui.grid.workflow-action-definition-row
    .sixteen.wide.column
      value-type-display type=workflow_action_definition.value_type
      .ui.tiny.right.floated.icon.buttons
        if workflow_action_definition.organization.logo
          button.ui.unpadded.button{action 'editWorkflowActionDefinition'}
            img src=workflow_action_definition.organization.logo_url.small
            /workflow_action_definition.position
        else
          button.ui.button{action 'editWorkflowActionDefinition'}= workflow_action_definition.position
      span.title= workflow_action_definition.title
      if workflow_action_definition.extra_info
        '
        = ui-markdown-popup tagName='i' class='info icon' markdown=workflow_action_definition.extra_info

