Upstream sync task me mvp
This commit is contained in:
@@ -1,4 +1,9 @@
|
|||||||
<% if params[:show_chat] %>
|
<% if params[:show_chat] %>
|
||||||
<%= javascript_include_tag "https://js.hs-scripts.com/7344617.js", defer: "defer", async: true, id: "hs-script-loader" %>
|
<%= javascript_include_tag "https://js.hs-scripts.com/7344617.js", defer: "defer", async: true, id: "hs-script-loader" %>
|
||||||
|
<%= javascript_tag nonce: true do %>
|
||||||
|
$(document).ready(function(){
|
||||||
|
window.HubSpotConversations.widget.open();
|
||||||
|
});
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<p class="alert alert-success p-3 lead text-center">Your task request was successfully submitted. Thank you.</p>
|
<p class="alert alert-success p-3 lead text-center"><%= t '.success_message' %></p>
|
||||||
|
|||||||
@@ -943,11 +943,12 @@ en:
|
|||||||
notice: Task has been cancelled successfully.
|
notice: Task has been cancelled successfully.
|
||||||
create:
|
create:
|
||||||
notice: Task request created succussfully.
|
notice: Task request created succussfully.
|
||||||
|
success_message: Your task request was successfully submitted. Thank you. A chat window will pop up on the lower right in a few seconds.
|
||||||
edit:
|
edit:
|
||||||
heading:
|
heading:
|
||||||
Edit Task Request
|
Edit Task Request
|
||||||
form:
|
form:
|
||||||
info_message: After submitting this task request, you'll be connected via chat with a BIG representative.
|
info_message: After submitting this task request, you'll be connected via chat with a ME Suite representative.
|
||||||
labels:
|
labels:
|
||||||
additional_notes: Please add any additional notes we should be aware of regarding this task.
|
additional_notes: Please add any additional notes we should be aware of regarding this task.
|
||||||
deadline: What is the deadline for this task?
|
deadline: What is the deadline for this task?
|
||||||
|
|||||||
@@ -183,8 +183,10 @@ es:
|
|||||||
guardian_photo:
|
guardian_photo:
|
||||||
heading: Guardian Photo (ES)
|
heading: Guardian Photo (ES)
|
||||||
task_requests:
|
task_requests:
|
||||||
|
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:
|
form:
|
||||||
info_message: After submitting this task request, you'll be connected via chat with a BIG representative. (ES)
|
info_message: After submitting this task request, you'll be connected via chat with a ME Suite representative. (ES)
|
||||||
task_request:
|
task_request:
|
||||||
actions:
|
actions:
|
||||||
manage: Manage (ES)
|
manage: Manage (ES)
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ RSpec.feature 'User creates task request', type: :feature do
|
|||||||
|
|
||||||
click_on 'Create Task request'
|
click_on 'Create Task request'
|
||||||
|
|
||||||
expect(page).to have_content('Task request created succussfully.')
|
expect(page).to have_content task_created_message
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario 'user can view task request details' do
|
scenario 'user can view task request details' do
|
||||||
@@ -85,4 +85,8 @@ RSpec.feature 'User creates task request', type: :feature do
|
|||||||
def additional_notes_field
|
def additional_notes_field
|
||||||
t "task_requests.form.labels.additional_notes"
|
t "task_requests.form.labels.additional_notes"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def task_created_message
|
||||||
|
t 'task_requests.create.success_message'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user