{
 "$formkit": "group",
 "children": [
  {
   "$formkit": "group",
   "children": [
    {
     "$formkit": "select",
     "id": "district",
     "key": "district",
     "label": "$gettext(Municipality)",
     "name": "district",
     "options": "$getLocations()"
    },
    {
     "$formkit": "select",
     "id": "administrative_post",
     "if": "$get(district).value",
     "key": "administrative_post",
     "label": "$gettext(\"Administrative Post\")",
     "name": "administrative_post",
     "options": "$getLocations($get(district).value)"
    },
    {
     "$formkit": "select",
     "id": "suco",
     "if": "$get(administrative_post).value",
     "key": "suco",
     "label": "$gettext(Suco)",
     "name": "suco",
     "options": "$getLocations($get(district).value, $get(administrative_post).value)"
    },
    {
     "$formkit": "select",
     "id": "aldeia",
     "if": "$get(suco).value",
     "key": "aldeia",
     "label": "$gettext(Aldeia)",
     "name": "aldeia",
     "options": "$getLocations($get(district).value, $get(administrative_post).value, $get(suco).value)"
    }
   ],
   "icon": "las la-map-marked-alt",
   "id": "meetinginformation",
   "title": "Location"
  },
  {
   "$formkit": "group",
   "children": [
    {
     "$formkit": "datepicker",
     "_maxDateSource": "date_finish",
     "calendarIcon": "calendar",
     "disabledDays": "$setDisabledDays",
     "format": "DD/MM/YY",
     "label": "$gettext(\"Date start estimated\")",
     "name": "date_start",
     "nextIcon": "angleRight",
     "prevIcon": "angleLeft"
    },
    {
     "$formkit": "datepicker",
     "_minDateSource": "date_start",
     "calendarIcon": "calendar",
     "disabledDays": "$setDisabledDays",
     "format": "DD/MM/YY",
     "label": "$gettext(\"Date finish estimated\")",
     "name": "date_finish",
     "nextIcon": "angleRight",
     "prevIcon": "angleLeft"
    }
   ],
   "icon": "las la-clock",
   "id": "projecttimeframe",
   "title": "Project time frame"
  },
  {
   "$formkit": "group",
   "children": [
    {
     "$formkit": "select",
     "id": "project_status",
     "key": "project_status",
     "label": "$gettext(\"Project Status\")",
     "name": "project_status",
     "options": "$ida(subprojectstatus1)",
     "placeholder": "$gettext(\"Please select\")"
    },
    {
     "$formkit": "select",
     "id": "project_sector",
     "key": "project_sector",
     "label": "$gettext(\"Project Sector\")",
     "name": "project_sector",
     "options": "$ida(sector)",
     "placeholder": "$gettext(\"Please select\")"
    },
    {
     "$formkit": "select",
     "id": "project_sub_sector",
     "if": "$get(\"project_sector\").value && $ida(subsector, \"sector_id=\"+$get(project_sector).value)",
     "key": "project_sub_sector",
     "label": "$gettext(\"Project Sub-Sector\")",
     "name": "project_sub_sector",
     "options": "$ida(subsector, \"sector_id=\"+$get(project_sector).value)",
     "placeholder": "$gettext(\"Please select\")"
    },
    {
     "$formkit": "select",
     "id": "project_name",
     "if": "$get(\"project_sub_sector\").value",
     "key": "project_name",
     "label": "$gettext(\"Project name\")",
     "name": "project_name",
     "options": "$ida(output, \"subsector_id=\"+$get(project_sub_sector).value)",
     "placeholder": "$gettext(\"Please select\")"
    },
    {
     "$formkit": "select",
     "help": "$gettext(\"Please select sector, sub sector and project name\")",
     "id": "objective",
     "if": "$get(\"project_sub_sector\").value && $get(\"project_name\").value && $get(\"project_sector\").value",
     "key": "objective",
     "label": "$gettext(\"Objective\")",
     "name": "objective",
     "options": "$ida(objective, \"output_ids=\"+$get(project_name).value)",
     "placeholder": "$gettext(\"Please select\")"
    },
    {
     "$formkit": "text",
     "label": "$gettext(\"GPS Coordinate - LATITUDE\")",
     "name": "latitude"
    },
    {
     "$formkit": "text",
     "label": "$gettext(\"GPS Coordinate - LONGITUDE\")",
     "name": "longitude"
    },
    {
     "$formkit": "select",
     "key": "woman_priority",
     "label": "$gettext(\"Is a women priority?\")",
     "name": "women_priority",
     "options": "$ida(yesno)"
    }
   ],
   "icon": "las la-info-circle",
   "id": "projectdetails",
   "title": "Project details"
  },
  {
   "$formkit": "group",
   "children": [
    {
     "$formkit": "number",
     "label": "$gettext(\"Number of households\")",
     "min": 0,
     "name": "number_of_households",
     "placeholder": "$gettext(\"Please enter\")",
     "validation": "shouldNotAcceptNegativeValue"
    },
    {
     "$formkit": "number",
     "label": "$gettext(\"No. of women\")",
     "min": 0,
     "name": "no_of_women",
     "placeholder": "$gettext(\"Please enter\")",
     "validation": "shouldNotAcceptNegativeValue"
    },
    {
     "$formkit": "number",
     "label": "$gettext(\"No. of men\")",
     "min": 0,
     "name": "no_of_men",
     "placeholder": "$gettext(\"Please enter\")",
     "validation": "shouldNotAcceptNegativeValue"
    },
    {
     "$formkit": "number",
     "label": "$gettext(\"No. of people with disability - male\")",
     "min": 0,
     "name": "no_of_pwd_male",
     "placeholder": "$gettext(\"Please enter\")",
     "validation": "shouldNotAcceptNegativeValue"
    },
    {
     "$formkit": "number",
     "label": "$gettext(\"No. of people with disability - female\")",
     "min": 0,
     "name": "no_of_pwd_female",
     "placeholder": "$gettext(\"Please enter\")",
     "validation": "shouldNotAcceptNegativeValue"
    }
   ],
   "icon": "las la-info-circle",
   "id": "projectbeneficiaries",
   "title": "Project beneficiaries"
  },
  {
   "$formkit": "group",
   "children": [
    {
     "$formkit": "repeater",
     "addLabel": "$gettext(\"Add output\")",
     "children": [
      {
       "$formkit": "uuid",
       "name": "uuid",
       "readonly": true
      },
      {
       "$el": "div",
       "attrs": {
        "class": "rounded-full px-5 py-2 bg-zinc-400 text-lg font-bold mb-5"
       },
       "children": [
        "Output ",
        {
         "$el": "span",
         "children": [
          "$: ($index + 1)"
         ]
        }
       ]
      },
      {
       "$formkit": "select",
       "id": "output",
       "if": "$ida(output, \"subsector_id=\"+$get(\"project_sub_sector\").value).length",
       "key": "output",
       "label": "$gettext(\"Project output\")",
       "name": "output",
       "options": "$ida(output, \"subsector_id=\"+$get(\"project_sub_sector\").value)",
       "placeholder": "$gettext(\"Please select\")"
      },
      {
       "$formkit": "select",
       "id": "activity",
       "key": "activity",
       "label": "$gettext(\"Project activity\")",
       "name": "activity",
       "options": "$ida(activity)",
       "placeholder": "$gettext(\"Please select\")"
      },
      {
       "$formkit": "number",
       "label": "$gettext(\"Quantity\")",
       "min": 0,
       "name": "quantity",
       "validation": "shouldNotAcceptNegativeValue"
      },
      {
       "$formkit": "dropdown",
       "key": "unit",
       "label": "$gettext(\"Unit\")",
       "name": "unit",
       "options": "$ida(unit)",
       "placeholder": "$gettext(\"Please select\")",
       "selectIcon": "angleDown"
      },
      {
       "$formkit": "select",
       "key": "woman_priority",
       "label": "$gettext(\"Is it identified by women?\")",
       "name": "woman_priority",
       "options": "$ida(yesno)"
      }
     ],
     "downControl": false,
     "id": "repeaterProjectOutput",
     "itemClass": "repeater-children-index",
     "itemsClass": "repeater",
     "name": "repeaterProjectOutput",
     "removeAction": "$repeaterRemoveAction",
     "removeLabel": "$gettext(\"Remove\")",
     "sectionsSchema": {
      "remove": {
       "children": [
        {
         "$el": "button",
         "attrs": {
          "class": "disabled:hidden cursor-pointer flex items-center justify-center flex-row-reverse h-[50px] rounded-2.5xl px-4 w-full bg-white border-2 border-solid border-emerald-600 text-zinc-900 hover:bg-emerald-600 hover:text-white font-bold text-base",
          "data-index": "$index",
          "data-repeaterid": "$id",
          "onClick": "$attrs.removeAction"
         },
         "children": [
          "$attrs.removeLabel"
         ],
         "if": "$value.length > 1"
        }
       ]
      }
     },
     "upControl": false
    }
   ],
   "icon": "las la-users-cog",
   "id": "projectoutput",
   "title": "Project outputs"
  }
 ],
 "name": "TF_6_1_1"
}