Sha256: eb89a37307e6adced3efda446bce09313ea908819ec176199cde4a75b7609e02

Contents?: true

Size: 1.14 KB

Versions: 17

Compression:

Stored size: 1.14 KB

Contents

- collapsed = session[:contact_show_general].nil? # && contact.errors.empty?
= section_title :contact_show_general, collapsed, t(:general_info), t('show_general_info_small')
.show_fields
  #contact_show_general{ hidden_if(collapsed) }
    %table.asset_attributes
      %tr
        = col(t(:first_name), contact.first_name)
        = col(t(:last_name), contact.last_name)
      %tr
        = col(t(:email), contact.email, false, true)
        = col(t(:phone), contact.phone)
      %tr
        = col(t(:account)) do
          = account_with_url_for(contact)
        - assigned_to_user = User.find_by_id(contact.assigned_to)
        = col(t(:assigned_to)) do
          = link_to(assigned_to_user.name, url_for(assigned_to_user)) if assigned_to_user
      %tr
        = col(t(:tags)) do
          .tags= tags_for_index(contact)

    -# Show custom fields that are in the default field group
    - custom_field_group = contact.field_groups.select{|f| f.name == 'custom_fields'}.first
    - if custom_field_group.present?
      - fields = custom_field_group.fields.without_pairs
      = render("fields/group_view", :fields => fields, :entity => contact) unless fields.nil?

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 app/views/contacts/_section_general.html.haml
fat_free_crm-0.15.2 app/views/contacts/_section_general.html.haml
fat_free_crm-0.16.4 app/views/contacts/_section_general.html.haml
fat_free_crm-0.14.1 app/views/contacts/_section_general.html.haml
fat_free_crm-0.15.1 app/views/contacts/_section_general.html.haml
fat_free_crm-0.16.3 app/views/contacts/_section_general.html.haml
fat_free_crm-0.16.2 app/views/contacts/_section_general.html.haml
fat_free_crm-0.16.1 app/views/contacts/_section_general.html.haml
fat_free_crm-0.16.0 app/views/contacts/_section_general.html.haml
fat_free_crm-0.15.0 app/views/contacts/_section_general.html.haml
fat_free_crm-0.15.0.beta.2 app/views/contacts/_section_general.html.haml
fat_free_crm-0.15.0.beta app/views/contacts/_section_general.html.haml
fat_free_crm-0.14.0 app/views/contacts/_section_general.html.haml
reduced_fat_crm-0.15.0.beta app/views/contacts/_section_general.html.haml
reduced_fat_crm-0.14.0 app/views/contacts/_section_general.html.haml
fat_free_crm-0.13.6 app/views/contacts/_section_general.html.haml
fat_free_crm-0.13.5 app/views/contacts/_section_general.html.haml