# ===================================
#  Field Definitions
# ===================================

fields:
  id:
    label: ID
    disabled: true
  name:
    label: Name

  url_alias:
    label: URL alias

#  image_entities:
#    label: Images
#    type: fileupload
#    mode: image
#    imageHeight: 260
#    imageWidth: 260

  city_id:
    label: Country
    type: dropdown
    options: listCountries
    emptyOption: -- choose country --

  description:
    label: Description

  about_block:
    label: Full description
    type: richeditor
    size: huge

  info_blocks:
    label: Info blocks
    type: repeater
    titleFrom: Additional info element
    form:
      fields:
        label:
          label: Additional info title
        content:
          label: Additional info content
          type: richeditor
          size: huge

# @TODO: remove this fields
  activities_title:
    label: Known for block title
    default: "Known for:"
#
  activities_description:
    label: Known for block description
    type: richeditor
    size: huge

  activities_cards:
    label: Known for cards
    type: repeater
    titleFrom: Known for card
    form:
      fields:
        activity_card:
          label: Override label (leave empty to use default)
          type: dropdown
          options: listActivitiesCards
          emptyOption: -- choose activity card --

        title:
          label: Override title (leave empty to use default)
        short_description:
          label: Override short description (leave empty to use default)
        description:
          label: Override description (leave empty to use default)

  latitude:
    label: Latitude
  longitude:
    label: Longitude

  reviews_info:
    label: Reviews Info
    type: repeater
    titleFrom: Review Info Element
    form:
      fields:
        review_info:
          label: Review Info Card
          type: dropdown
          options: listAmenity
          emptyOption: -- choose review info card --
          span: auto
        rating:
          label: Rating
          type: text
          span: auto

  additional_info:
    label: Additional info
    type: repeater
    titleFrom: Additional info element
    form:
      fields:
        label:
          label: Additional info title
        content:
          label: Additional info content
          type: richeditor
          size: huge

  faqs:
    label: Island FAQs
    type: repeater
    titleFrom: FAQ
    form:
      fields:
        q:
          label: Question
          type: text
        a:
          label: Answer
          type: textarea

  additional_html:
    label: Additional Html
    type: textarea
    size: huge

  active:
    label: active
    type: checkbox
    default: 1
    conditions: active <> true
    
  image_entities:
    label: 'Island Images'
    span: 100
    mode: image
    useCaption: true
    thumbOptions:
        mode: crop
        extension: auto
    imageWidth: '260'
    imageHeight: '260'
    type: fileupload