From bde18ab0f10487a333306348477bc4cec721ce98 Mon Sep 17 00:00:00 2001 From: Bilal Date: Tue, 14 Jul 2020 18:34:06 +0200 Subject: [PATCH] add Chat Now button --- app/views/task_requests/_form.html.erb | 16 +++++++++++++--- config/locales/en.yml | 4 +++- config/locales/es.yml | 4 +++- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/app/views/task_requests/_form.html.erb b/app/views/task_requests/_form.html.erb index 5c9e42e..e36b06c 100644 --- a/app/views/task_requests/_form.html.erb +++ b/app/views/task_requests/_form.html.erb @@ -1,9 +1,19 @@ <%= errors_summary_for task_request %> <%= bootstrap_form_with model: model, url: [@project, @task_request, show_chat: true], local: true do |form| %> -
- <%= fa_icon "info-circle" %> - <%= t '.info_message' %> + +
+
+
+
+ <%= fa_icon "info-circle" %> + <%= t '.info_message' %> +
+
+
+ <%= form.submit t('.actions.chat_now'), class: "btn btn-block btn-warning pt-4 pb-4 mb-1", data: { disable_with: t("shared.disable_with") } %> +
+
<%= form.text_area :description, label: t('.labels.description') %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 54ae14f..d55b90d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1284,7 +1284,9 @@ en: heading: Edit Task Request form: - info_message: After submitting this task request, you'll be connected via chat with a ME Suite representative. + actions: + chat_now: Chat Now + info_message: For best results, please fill out this form prior to being connected with a TaskME assistant. However, if urgent, you can start speaking with a TaskME assistant by pressing the Chat Now button to the right labels: additional_notes: Please add any additional notes we should be aware of regarding this task. deadline: What is the deadline for this task? diff --git a/config/locales/es.yml b/config/locales/es.yml index 1bae211..0e413b2 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -484,7 +484,9 @@ es: create: success_message: Your task request was successfully submitted. Thank you. A chat window will pop up on the lower right in a few seconds. (ES) form: - info_message: After submitting this task request, you'll be connected via chat with a ME Suite representative. (ES) + actions: + chat_now: Chat Now (ES) + info_message: For best results, please fill out this form prior to being connected with a TaskME assistant. However, if urgent, you can start speaking with a TaskME assistant by pressing the Chat Now button to the right (ES) index: table_headers: task_request_description: Description (ES)