Sha256: 1de983e7e641f5436055ab3cf7fa1fe695589241db9eef4dad4d53b30a2011a6

Contents?: true

Size: 1.2 KB

Versions: 22

Compression:

Stored size: 1.2 KB

Contents

<div class="container">
  <% if flash[:error] %>
    <div class="error"><%= flash[:error] %></div>
  <% end %>
  <div class="row">
    <div class="column">
      <pre>
        <p>Show</p>
        <p># app/lib/services/hubspot/contacts/show.rb</p>
      </pre>
      <h3>Properties</h3>
      <%= form_for :contact, url: "/contacts/#{params[:id]}", method: 'put' do |form| %>
        <% @contact.properties.each do |property_key, property_value| %>
          <%= label(:contact, property_key, property_key) %>
          <% if property_key == 'hubspot_owner_id' %>
            <%= select(
              :contact,
              property_key,
              @owners.collect { |owner| [[owner.first_name, owner.last_name].join(' '), owner.id] },
              include_blank: 'Not assigned',
              selected: property_value
            ) %>
          <% else %>
            <%= text_field(:contact, property_key, value: property_value) %>
          <% end %>
        <% end %>

        <pre>
          <p>Update</p>
          <p># app/lib/services/hubspot/contacts/update.rb</p>
        </pre>
        <%= submit_tag("Save", class: 'button-primary') %>
      <% end %>
    </div>
    <div class="column">
      </div>
  </div>
</div>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
hubspot-api-client-9.0.0 sample-apps/oauth-app/app/views/contacts/show.html.erb
hubspot-api-client-8.0.1 sample-apps/oauth-app/app/views/contacts/show.html.erb
hubspot-api-client-8.0.0 sample-apps/oauth-app/app/views/contacts/show.html.erb
hubspot-api-client-7.3.0 sample-apps/oauth-app/app/views/contacts/show.html.erb
hubspot-api-client-7.2.0 sample-apps/oauth-app/app/views/contacts/show.html.erb
hubspot-api-client-7.1.1 sample-apps/oauth-app/app/views/contacts/show.html.erb
hubspot-api-client-7.1.0 sample-apps/oauth-app/app/views/contacts/show.html.erb
hubspot-api-client-7.0.0 sample-apps/oauth-app/app/views/contacts/show.html.erb
hubspot-api-client-6.0.0 sample-apps/oauth-app/app/views/contacts/show.html.erb
hubspot-api-client-5.0.0 sample-apps/oauth-app/app/views/contacts/show.html.erb
hubspot-api-client-4.0.0 sample-apps/oauth-app/app/views/contacts/show.html.erb
hubspot-api-client-3.3.0 sample-apps/oauth-app/app/views/contacts/show.html.erb
hubspot-api-client-3.2.0 sample-apps/oauth-app/app/views/contacts/show.html.erb
hubspot-api-client-3.1.1 sample-apps/oauth-app/app/views/contacts/show.html.erb
hubspot-api-client-3.1.0.pre.beta sample-apps/oauth-app/app/views/contacts/show.html.erb
hubspot-api-client-3.0.0.pre.beta sample-apps/oauth-app/app/views/contacts/show.html.erb
hubspot-api-client-2.3.2 sample-apps/oauth-app/app/views/contacts/show.html.erb
hubspot-api-client-2.3.1 sample-apps/oauth-app/app/views/contacts/show.html.erb
hubspot-api-client-2.2.0 sample-apps/oauth-app/app/views/contacts/show.html.erb
hubspot-api-client-2.1.0 sample-apps/oauth-app/app/views/contacts/show.html.erb