From 103fc53c1da93919111822dff89fce60e9075334 Mon Sep 17 00:00:00 2001 From: Almira Krdzic Date: Mon, 3 Dec 2018 16:02:53 +0100 Subject: [PATCH] display instructions if any --- .../wiaas/assets/css/wiaas-admin-delivery-process.css | 5 +++++ .../views/html-delivery-process-step.php | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) 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 450b86a..77d10ce 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 @@ -82,4 +82,9 @@ width: 84px; text-align: center; padding-right: 10px; +} + +.wiaas-delivery-process-step-instructions { + padding: 10px 50px; + border-bottom: 1px solid #eee; } \ No newline at end of file diff --git a/backend/app/plugins/wiaas/includes/admin/delivery-process/views/html-delivery-process-step.php b/backend/app/plugins/wiaas/includes/admin/delivery-process/views/html-delivery-process-step.php index f016d57..cfecd09 100644 --- a/backend/app/plugins/wiaas/includes/admin/delivery-process/views/html-delivery-process-step.php +++ b/backend/app/plugins/wiaas/includes/admin/delivery-process/views/html-delivery-process-step.php @@ -25,7 +25,15 @@ if ($is_current_step) { get_form(), $form, $step->get_entry()); + + if ($step->instructionsEnable) { + + $instructions = $step->instructionsValue; + $instructions = GFCommon::replace_variables( $instructions, $step->get_form(), $step->get_entry(), false, false, true ); + $instructions = do_shortcode( $instructions ); + + echo '
' . $instructions . '
'; + } $action_form = GFAPI::get_form( $step->target_form_id );