[
  { "name": "products[]", "label": "Products",
    "type": "select", "dropdown": true, "multiple": true,
    "width": 3
  },
  { "name": "categories[]", "label": "Categories",
    "type": "select", "dropdown": true, "multiple": true,
    "width": 3
  },
  { "name": "groups[]", "label": "Groups",
    "type": "select", "dropdown": true, "multiple": true,
    "width": 3
  },
  { "name": "tags[]", "label": "Tags",
    "type": "select", "dropdown": true, "multiple": true,
    "width": 3
  },
  { "name": "start", "label": "From",
    "type": "date",
    "width": 2
  },
  { "name": "end", "label": "To",
    "type": "date",
    "width": 2
  },
  { "name": "unit_volume", "label": "Unit (vol.)",
    "type": "select", "multiple": false, "dropdown": true,
    "width": 2
  },
  { "name": "unit_mass", "label": "Unit (mass)",
    "type": "select", "multiple": false, "dropdown": true,
    "width": 2
  },
  { "name": "unit_count[]", "label": "Unit (count)",
    "type": "select", "multiple": true, "dropdown": true,
    "width": 2
  },
  { "name": "log_scale", "label": "Log Scale", "value": "true",
    "type": "checkbox",
    "width": 2
  },
  { "name": "apply", "label": "", "value": "Apply",
    "type": "submit",  "formaction": "/grocery/internal/apply.sql",
    "width": 2
  },
  { "name": "clear", "label": "", "value": "Clear",
    "type": "submit", "formaction": "/grocery/internal/clear.sql",
    "width": 2
  }
]