Sha256: 34082d754e8439c1a812ce9c9f8b49f2d30115a7df7f78ba7f3b281ba9fd55c2

Contents?: true

Size: 1.02 KB

Versions: 13

Compression:

Stored size: 1.02 KB

Contents

= styles_for :fields

.title
  %span#create_field_title= t(:admin_tab_fields)

.info= t(:admin_fields_info)

.info2= t(:admin_fields_info2)

.inline_tabs
  %ul
    - list_of_entities.each do |entity|
      - asset = entity.downcase
      %li{ "data-tab-class" => asset, class: ("selected" if entity == 'Contact') }
        = link_to t(entity), "#"

- list_of_entities.each do |entity|
  - asset = entity.downcase
  - klass = asset.classify.constantize
  .fields{ id: "#{asset}_section", style: ("display: none;" if asset != 'contact') }

    - create_form_id = "#{asset}_create_field_group"

    .title_tools
      = link_to_inline(create_form_id, new_admin_field_group_path(klass_name: klass.name), text: t(:create_field_group))

    .title
      = t(asset)

    .list{ id: "#{asset}_field_groups", 'data-sortable' =>  sort_admin_field_groups_path(asset: asset) }
      = render partial: "admin/field_groups/field_group", collection: klass.field_groups, locals: {asset: asset, klass: klass}

    .remote{ hidden.merge(id: create_form_id) }

Version data entries

13 entries across 13 versions & 1 rubygems

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