id]; } } // display process steps $workflow_api = new Gravity_Flow_API($form['id']); $steps = $workflow_api->get_steps(); foreach ($steps as $index => $step) { if (! $step->is_active()) { continue; } $is_step_completed = $step->get_status() === 'complete' || $step->get_status() === 'approved'; $is_current_step = $current_step && $step->get_id() === $current_step->get_id(); if ($is_current_step) { $style = 'color: #FD8049;'; } else if ($is_step_completed) { $style = 'color: #34C388;'; } else { $style = 'opacity: 0.5; color: #CCC;'; } ?>

get_name(), 'wiaas') ?>

target_form_id ); if (empty($action_form)) { echo '
'; continue; } $action_delivery_settings = rgar($action_form, 'wiaas_delivery_process'); ?>
' . ' ' . $action_form['title'] . '', $form_url ); echo $form_link; } echo '


'; $page_size = 20; $search_criteria = array( 'status' => 'active', 'field_filters' => array( array( 'key' => 'wiaas_delivery_process_id', 'value' => $entry['id'] ), ), ); $sorting = array( 'key' => 'date_created', 'direction' => 'DESC' ); $paging = array( 'offset' => 0, 'page_size' => $page_size ); $entries = GFAPI::get_entries( $action_form, $search_criteria, $sorting, $paging ); foreach ($entries as $action_entry) { self::_display_step_action_entry($action_form, $action_entry); } ?>
get_current_step($action_entry); ?> type === 'wiaas_order') { continue; } if ($field->type === 'workflow_discussion') { echo ''; continue; } $value = $field->get_value_entry_detail($action_entry[$field->id]); $label = $field->get_field_label(false, $action_entry[$field->id]); echo '' . '' . '' . ''; } ?>
' . $field->format_discussion_value($action_entry[$field->id]) . '
' . $label . ' : ' . $value . '
get_status_label($current_action_step->get_status()) . ': ' . $current_action_step->get_name(); echo '' . ' ' . ''; } else { echo $workflow_api->get_status($action_entry); } ?>