<% if flash[:error] %>
× <%= flash[:error] %>
<% end %>

Create New Event Template:

<%= form_for :event_template, url: create_path do |form| %>
<%= form.label :target_record_type, 'Target record type:' %> <%= form.select :target_record_type, ['Contact'], {}, disabled: true %> <%= form.hidden_field :target_record_type, value: 'contacts' %> <%= form.label :header_template, 'Header template:' %> <%= form.text_area :header_template, placeholder: 'Set a header tempalte for this event', class: 'textarea' %> <%= form.label :detail_template, 'Details template:' %> <%= form.text_area :detail_template, placeholder: 'Set a details template for this event', class: 'textarea' %> <%= form.label :email, 'Email of the contact on whose timeline you want to render the event:' %> <%= form.email_field :email, required: true, placeholder: 'Email' %>
        

What will happen if you press the button:

1) New event template will be created

2) Object timeline will be populated with a new event (specified above)

<%= form.submit 'Render Timeline Event' %> <% end %>
<% if @contacts_url %>

The result of creating timeline event:

      

In order to see your newly created timeline events:

1) Click on the "Filter activity".

2) Find and choose your app in "Integrations" section.

3) After that you will be able to see the list of your events.

<% end %>