Sha256: 190702b55f400ec18693a6e98d1d1c82478c749acee4ab0dce57686b07d24b7c
Contents?: true
Size: 1.35 KB
Versions: 20
Compression:
Stored size: 1.35 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| %> <% next if @properties.find { |p| p.name == property_key }.modification_metadata.read_only_value %> <%= label(:contact, property_key, @properties.find { |p| p.name == property_key }.label) %> <% 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
20 entries across 20 versions & 1 rubygems