Sha256: f016f1202c08400689d860d3337a2d1c937d166cecc23207dae309a56e1c3023

Contents?: true

Size: 1.9 KB

Versions: 3

Compression:

Stored size: 1.9 KB

Contents

<div class='container'>
  <% if flash[:error] %>
    <div class='alert'>
      <span class='closebtn' onclick="this.parentElement.style.display='none';">&times;</span>
      <%= flash[:error] %>
    </div>
  <% end %>

  <div class='template-form'>
    <h3>Create New Event Template:</h3>

    <%= form_for :event_template, url: create_path do |form| %>

      <div class='form-groups'>
        <%= 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' %>
      </div>

      <pre>
        <h4> What will happen if you press the button:</h4>
        <p> 1) New event template will be created</p>
        <p> 2) Object timeline will be populated with a new event (specified above)</p>
      </pre>

      <%= form.submit 'Render Timeline Event' %>
    <% end  %>
  </div>

  <% if @contacts_url %>
    <h3>The result of creating timeline event:</h3>
    <pre>
      <p>In order to see your newly created timeline events:</p>

      <p> 1) Click on the "Filter activity".</p>
      <p> 2) Find and choose your app in "Integrations" section.</p>
      <p> 3) After that you will be able to see the list of your events.</p>
    </pre>

    <div class='contacts-iframe'>
      <iframe src= <%= @contacts_url %> ></iframe>
    </div>
  <% end %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hubspot-api-client-9.0.0 sample-apps/timeline-events-app/app/views/timeline_events/index.html.erb
hubspot-api-client-8.0.1 sample-apps/timeline-events-app/app/views/timeline_events/index.html.erb
hubspot-api-client-8.0.0 sample-apps/timeline-events-app/app/views/timeline_events/index.html.erb