Sha256: 6f0de749de50e3c8270a2bbe1570934e73e03e4c5eb66dbfa502810cb0d7a097
Contents?: true
Size: 1.73 KB
Versions: 13
Compression:
Stored size: 1.73 KB
Contents
.actions.top - if resource.persisted? = 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 = help_label(f, :info, :key => :markdown_help, :header => 'Markdown Help') = f.text_area :info .field = f.label :value, nil, :class => :req = f.text_field :value, :value => f.object.value.to_s .field.select = f.label :campaign, :for => 'deal_campaign_select', :class => 'req' = f.collection_select :campaign_id, Campaign.ordered.all, :id, :to_s, {:prompt => true}, :id => 'deal_campaign_select' .field.select = f.label :status = f.select :status, Deal::Status::HUMAN_OPTIONS.map {|d| [d, d.downcase] } .field.select = f.label :contacts %input#contact_autocomplete.list{:type => 'text', 'data-values' => resource.contact_ids.join(','), 'data-iname' => resource_instance_name, 'data-field' => '[contact_ids]'} %ul.select - f.object.contacts.each do |contact| %li.ui-state-default %span.content= contact.name %input{:type => :hidden, :name => "#{resource_instance_name}[contact_ids][]", :value => contact.id} %a{:class => :remove, :title => "Remove", :alt => "Remove"} Remove .field.select = f.label :owner = f.select :contact_id, deal_contacts_array, { :prompt => true }, :id => :deal_owner .debug-fields .field.date-picker = f.label :created_at = f.text_field :created_at, :class => 'date-picker', :value => l(resource.created_at.try(:to_date)) .field.date-picker = f.label :closed_at = f.text_field :closed_at, :class => 'date-picker', :value => l(resource.closed_at.try(:to_date))
Version data entries
13 entries across 13 versions & 1 rubygems