Sha256: 5cd85581c4e8928a5bbdbc1640b7c48c37ef1801330b2f2b7b1bdfe9e3006941
Contents?: true
Size: 1.06 KB
Versions: 4
Compression:
Stored size: 1.06 KB
Contents
.actions.top - if resource.persisted? - if resource.lead? = link_to 'Back to Leads', leads_path - else = link_to_destroy_resource(resource, :remote => false) .field = f.label :name, nil, :class => :req = f.text_field :name .field.select = f.label :category = f.select :category, MenuOption.options_for('Deal Category'), :include_blank => 'No Category' .field = f.label :info = f.text_area :info .field = f.label :custom_info = f.text_area :custom_info .field = f.label :value, nil, :class => :req = f.text_field :value .field.select = f.label :owner = f.collection_select :contact_id, Contact.all, :id, :name, :prompt => true .field.select = f.label :contacts %select.list{'data-iname' => resource_instance_name, 'data-field' => '[contact_ids]'} = deal_contact_select_options %ul.select - f.object.contacts.each do |contact| %li %span= contact.name %input{:type => :hidden, :name => "contact[contact_ids][]", :value => contact.id} %a{:class => :remove, :title => "Remove", :alt => "Remove"} Remove
Version data entries
4 entries across 4 versions & 1 rubygems