Sha256: cfa501ecd3266e6c5e833b21a5dcea113d8dd7306f4ac60f0e8b443cf85dbc6d
Contents?: true
Size: 803 Bytes
Versions: 1
Compression:
Stored size: 803 Bytes
Contents
module E9Crm::ContactsHelper def link_to_contact_search(attribute, query, text = nil) link_to(text || query, contacts_path(attribute => query), :class => "contact-search contact-#{attribute.to_s.dasherize}-search") end def contact_email_template_select_options options_for_select( EmailTemplate.order('name').map {|e| [e.name, e.id] }) end def contact_newsletter_select_options options_for_select( UserEmail.pending.order('name').map {|e| [e.name, e.id] }) end def records_table_field_map_for_contact { :fields => { :avatar => proc {|r| }, :details => proc {|r| render('details', :record => r) } }, :links => proc {|r| [link_to_show_resource(r), link_to_edit_resource(r), link_to_destroy_resource(r)] } } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
e9_crm-0.1.1 | app/helpers/e9_crm/contacts_helper.rb |