Task me upstream sync
This commit is contained in:
@@ -5,4 +5,6 @@ class TaskRequest < ApplicationRecord
|
||||
enum status: [:pending, :completed, :cancelled]
|
||||
|
||||
scope :order_by_recent, -> { order(created_at: :desc) }
|
||||
|
||||
validates :time_allowed, numericality: { only_integer: true, greater_than_or_equal_to: 2 }
|
||||
end
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<%= errors_summary_for task_request %>
|
||||
|
||||
<%= bootstrap_form_with model: model, url: [@project, @task_request, show_chat: true], local: true do |form| %>
|
||||
<div class="alert alert-notice text-center pl-0 text-md-left mt-4">
|
||||
<div class="alert alert-info text-center text-md-left">
|
||||
<%= fa_icon "info-circle" %>
|
||||
<strong><%= t '.info_message' %></strong>
|
||||
</div>
|
||||
|
||||
@@ -2,7 +2,11 @@
|
||||
<%= 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();
|
||||
window.hsConversationsOnReady = [
|
||||
function() {
|
||||
window.HubSpotConversations.widget.open();
|
||||
}
|
||||
]
|
||||
});
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user