diff --git a/backend/app/plugins/wiaas/assets/css/wiaas-admin-delivery-process.css b/backend/app/plugins/wiaas/assets/css/wiaas-admin-delivery-process.css index cee3766..450b86a 100644 --- a/backend/app/plugins/wiaas/assets/css/wiaas-admin-delivery-process.css +++ b/backend/app/plugins/wiaas/assets/css/wiaas-admin-delivery-process.css @@ -38,4 +38,48 @@ #wiaas_delivery_process_order_notes .add-note textarea { width: 100%; height: 50px; +} + +.wiaas-delivery-process-timeline-note { + margin: 20px 0 30px; + clear: both; + width: 100%; +} + +.wiaas-delivery-process-timeline-note > div.wiaas-delivery-process-timeline-note-body-wrap { + border: 1px solid #E0E0E0; + margin-left: 100px; + padding: 10px; + display: block; +} + +.wiaas-delivery-process-timeline-note > div .wiaas-delivery-process-timeline-note-body { + + overflow-y: hidden; + display: block; + line-height: 1.3em; + width: 100%; + word-wrap: break-word; +} + +.wiaas-delivery-process-timeline-note-title { + float: left; + margin-bottom: 0.5em; + font-size: 1.2em; + color: #939FA5; +} + +.wiaas-delivery-process-timeline-note-date { + color: #939FA5; + float: right; + font-size: 11px; + text-align: right; + display: block; +} + +.wiaas-delivery-process-timeline-note-avatar { + float: left; + width: 84px; + text-align: center; + padding-right: 10px; } \ No newline at end of file diff --git a/backend/app/plugins/wiaas/includes/admin/delivery-process/views/html-admin-delivery-process-page.php b/backend/app/plugins/wiaas/includes/admin/delivery-process/views/html-admin-delivery-process-page.php index 0c6e8ae..0a51b6e 100644 --- a/backend/app/plugins/wiaas/includes/admin/delivery-process/views/html-admin-delivery-process-page.php +++ b/backend/app/plugins/wiaas/includes/admin/delivery-process/views/html-admin-delivery-process-page.php @@ -128,12 +128,74 @@ if ( ! empty($delivery_process)) { get_step($step->get_id(), $delivery_process); + require 'html-delivery-process-step.php'; } + ?> +
+
+

+ +

+ +
+ user_id; + $step = Gravity_Flow_Common::get_timeline_note_step( $note ); + $display_name = Gravity_Flow_Common::get_timeline_note_display_name( $note, $step ); + $step_type = $step ? $step->get_type() : $display_name; + + if ( $user_id ) { + $avatar = get_avatar( $user_id, 65 ); + } else { + $step_icon = $step ? $step->get_icon_url() : gravity_flow()->get_base_url() . '/images/gravityflow-icon-blue.svg'; + + if ( strpos( $step_icon, 'http' ) !== false ) { + $avatar = sprintf( '', $step_icon ); + } else { + $avatar = sprintf( '%s', $step_icon ); + } + } + + ?> +
+
+ +
+
+
+
+
+ +
+
+ date_created ), 'wiaas' ) ?> +
+
+
+ value ) ) ?> +
+
+
+
+ +
+ +
+
+