name: zab/cards-fees
title: "Cards Fees"
description: "Block card with options (color, layout - 50/50, 70/30, 100)"
group: Content Elements
priority: -3
prefixFields: true
prefixType: full
fields:
  - identifier: Zab/GeneralRow
    type: Basic

  - identifier: tab_content
    type: Tab
    label: "Content"
  - identifier: row_1
    type: Palette
    fields:
      - identifier: title
        type: TextInput
        label: "Title"
      - identifier: cta
        type: Link
        label: "Button"
        allowedTypes:
          - page
          - url
          - file

  - identifier: tab_cards
    type: Tab
    label: "Cards"
  - identifier: opt_layout
    label: "Cards Layout"
    type: Select
    renderType: selectSingle
    itemsProcFunc: 'Zab\ZabSite\Utility\ContentOptions->getLayoutOptions'
    description: "This option only works for 2 cards"
  - identifier: cards
    type: Collection
    label: " "
    minitems: 0
    maxitems: 10
    appearance:
      levelLinksPosition: bottom
    fields:
      - identifier: row_2
        type: Palette
        fields:
          - identifier: opt_color
            label: "Card Color"
            type: Select
            renderType: selectSingle
            items:
              - label: "White"
                value: white
            itemsProcFunc: 'Zab\ZabSite\Utility\ContentOptions->getColors'
      - identifier: info
        type: Textarea
        enableRichtext: true
