Sha256: 30e9f0add8800b5d3da18da85aed43823061524465d2a6414debbac85e29c320

Contents?: true

Size: 646 Bytes

Versions: 13

Compression:

Stored size: 646 Bytes

Contents

- entity_show = "#{entity.class.to_s.downcase}_show"
- entity.field_groups.each do |field_group|
  - if (fields = field_group.fields.without_pairs).any?
    - unless field_group.name == 'custom_fields'
      -# add a new section
      %div[field_group]
        - collapsed = session[dom_id(field_group, entity_show)].nil?
        = section_title dom_id(field_group, entity_show), collapsed, field_group.label_i18n, t('show_tag_info_small', tag: field_group.label_i18n)
        .show_fields
          %div{ hidden_if(collapsed).merge(id: dom_id(field_group, entity_show)) }
            = render "fields/group_view", fields: fields, entity: entity

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fat_free_crm-0.22.1 app/views/entities/_section_custom_fields.html.haml
fat_free_crm-0.22.0 app/views/entities/_section_custom_fields.html.haml
fat_free_crm-0.21.0 app/views/entities/_section_custom_fields.html.haml
fat_free_crm-0.20.1 app/views/entities/_section_custom_fields.html.haml
fat_free_crm-0.20.0 app/views/entities/_section_custom_fields.html.haml
fat_free_crm-0.19.2 app/views/entities/_section_custom_fields.html.haml
fat_free_crm-0.19.0 app/views/entities/_section_custom_fields.html.haml
fat_free_crm-0.18.2 app/views/entities/_section_custom_fields.html.haml
fat_free_crm-0.17.3 app/views/entities/_section_custom_fields.html.haml
fat_free_crm-0.18.1 app/views/entities/_section_custom_fields.html.haml
fat_free_crm-0.18.0 app/views/entities/_section_custom_fields.html.haml
fat_free_crm-0.17.2 app/views/entities/_section_custom_fields.html.haml
fat_free_crm-0.17.1 app/views/entities/_section_custom_fields.html.haml